summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-40334: Suppress all output in test_peg_generator (GH-19675)Lysandros Nikolaou2020-04-232-5/+1
|
* bpo-40334: Fix build errors and warnings in test_peg_generator (GH-19672)Pablo Galindo2020-04-234-2/+17
|
* bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671)Pablo Galindo2020-04-232-22/+22
|
* Compile extensions in test_peg_generator with C99 (GH-19668)Pablo Galindo2020-04-232-14/+13
|
* bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670)Victor Stinner2020-04-2326-54/+83
| | | | | | | | | | | * Rename PyConfig.use_peg to _use_peg_parser * Document PyConfig._use_peg_parser and mark it a deprecated * Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated in the documentation. * Add use_old_parser() and skip_if_new_parser() to test.support * Remove sys.flags.use_peg: use_old_parser() uses _testinternalcapi.get_configs() instead. * Enhance test_embed tests * subprocess._args_from_interpreter_flags() copies -X oldparser
* bpo-40334: Fix builds outside the source directory and regenerate autoconf ↵Pablo Galindo2020-04-234-7/+76
| | | | files (GH-19667)
* Add @pablogsal as code owner for pegen-related files (GH-19665)Pablo Galindo2020-04-231-0/+2
|
* bpo-40334: Fix errors in parse_string.c with old compilers (GH-19666)Pablo Galindo2020-04-231-10/+14
|
* PEP 617: Only run the CI with the new parser (GH-19664)Pablo Galindo2020-04-232-46/+0
|
* bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)Pablo Galindo2020-04-2291-147/+27058
| | | | Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-39939: Add str.removeprefix and str.removesuffix (GH-18939)sweeneyde2020-04-2213-6/+597
| | | | | Added str.removeprefix and str.removesuffix methods and corresponding bytes, bytearray, and collections.UserString methods to remove affixes from a string if present. See PEP 616 for a full description.
* bpo-40260: Remove unnecessary newline in compile() call (GH-19641)Anthony Sottile2020-04-221-1/+1
| | | Because some people subclass this class and call undocumented methods, and we don't want to break them.
* bpo-39562: Prevent collision of future and compiler flags (GH-19230)Batuhan Taşkaya2020-04-226-22/+49
| | | | | | The constant values of future flags in the __future__ module is updated in order to prevent collision with compiler flags. Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing with CO_FUTURE_DIVISION.
* bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)Steve Dower2020-04-221-5/+3
|
* bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19637)Victor Stinner2020-04-224-40/+87
| | | | | | | | Fix the Windows implementation of os.waitpid() for exit code larger than "INT_MAX >> 8". The exit status is now interpreted as an unsigned number. os.waitstatus_to_exitcode() now accepts wait status larger than INT_MAX.
* bpo-38329: python.org macOS installers now update Current symlink (GH-19650)Ned Deily2020-04-222-6/+4
| | | | | | | Previously, python.org macOS installers did not alter the Current version symlink in /Library/Frameworks/Python.framework/Versions when installing a version of Python 3.x, only when installing 2.x. Now that Python 2 is retired, it's time to change that. This should make it a bit easier to embed Python 3 into other macOS applications.
* bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)Joshua Root2020-04-225-16/+79
| | | | | | | It is possible to use either '-isysroot /some/path' (with a space) or '-isysroot/some/path' (no space in between). Support both forms in places where special handling of -isysroot is done, rather than just the first form. Co-authored-by: Ned Deily <nad@python.org>
* bpo-38439: Add 256px IDLE icon (GH-17473)Miro Hrončok2020-04-226-2/+19
| | | | Icon author: Andrew Clover, bpo-1490384
* bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642)Ned Deily2020-04-212-3/+4
|
* bpo-40327: Improve atomicity, speed, and memory efficiency of the items() ↵Raymond Hettinger2020-04-211-1/+1
| | | | loop (GH-19628)
* Small improvements to the recipes and examples. (GH-19635)Raymond Hettinger2020-04-211-30/+26
| | | | | * Add underscores to long numbers to improve readability * Use bigger dataset in the bootstrapping example * Convert single-server queue example to more useful multi-server queue
* bpo-34037: Add Python API whatsnew for loop.shutdown_default_executor() (#19634)Kyle Stanley2020-04-211-0/+5
| | | | Co-Authored-By: Victor Stinner <vstinner@python.org>
* bpo-40335: Correctly handle multi-line strings in tokenize error scenarios ↵Pablo Galindo2020-04-213-23/+37
| | | | | (GH-19619) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* bpo-40313: speed up bytes.hex() (GH-19594)sweeneyde2020-04-202-12/+50
| | | Automerge-Triggered-By: @gpshead
* Fix uninitialized struct member (GH-19589)Raymond Hettinger2020-04-201-0/+1
|
* bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)HongWeipeng2020-04-203-1/+13
| | | https://bugs.python.org/issue39942
* bpo-40330: Fix utf-8 size check in ShareableList (GH-19606)Antoine Pitrou2020-04-203-6/+22
| | | | | The item size must be checked after encoding to bytes, not before. Automerge-Triggered-By: @pitrou
* bpo-39849: Enable assertions in _testcapimodule.c and _testinternalcapi.c ↵Hai Shi2020-04-212-0/+6
| | | | (GH-19623)
* bpo-40260: Revert breaking changes made in modulefinder (GH-19595)Barry2020-04-202-12/+24
|
* Fix typo in Lib/tracepack.py (GH-19605)Galden2020-04-191-1/+1
| | | Typo fix: "emites" -> "emit".
* ignore Modules/python.exp on AIX (autogenerated) (GH-19607)Batuhan Taşkaya2020-04-191-0/+1
|
* bpo-40148: Add PurePath.with_stem() (GH-19295)Tim Hoffmann2020-04-194-0/+60
| | | | Add PurePath.with_stem()
* bpo-38891: avoid quadratic item access performance of ShareableList (GH-18996)Thomas Krennwallner2020-04-192-30/+48
| | | | | | | | Avoid linear runtime of ShareableList.__getitem__ and ShareableList.__setitem__ by storing running allocated bytes in ShareableList._allocated_bytes instead of the number of bytes for a particular stored item. Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-39207: Spawn workers on demand in ProcessPoolExecutor (GH-19453)Kyle Stanley2020-04-194-6/+63
| | | | | Roughly based on https://github.com/python/cpython/commit/904e34d4e6b6007986dcc585d5c553ee8ae06f95, but with a few substantial differences. /cc @pitrou @brianquinlan
* bpo-39285: Clarify example for PurePath.match (GH-19458)Tim Lo2020-04-191-1/+3
| | | | | | | | | | | Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou
* bpo-40325: Deprecate set object support in random.sample() (GH-19591)Raymond Hettinger2020-04-194-2/+17
|
* bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)Furkan Önder2020-04-182-3/+5
| | | Automerge-Triggered-By: @pitrou
* bpo-35113: Fix inspect.getsource to return correct source for inner classes ↵Karthikeyan Singaravelan2020-04-185-23/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#10307) * Use ast module to find class definition * Add NEWS entry * Fix class with multiple children and move decorator code to the method * Fix PR comments 1. Use node.decorator_list to select decorators 2. Remove unwanted variables in ClassVisitor 3. Simplify stack management as per review * Add test for nested functions and async calls * Fix pydoc test since comments are returned now correctly * Set event loop policy as None to fix environment related change * Refactor visit_AsyncFunctionDef and tests * Refactor to use local variables and fix tests * Add patch attribution * Use self.addCleanup for asyncio * Rename ClassVisitor to ClassFinder and fix asyncio cleanup * Return first class inside conditional in case of multiple definitions. Remove decorator for class source. * Add docstring to make the test correct * Modify NEWS entry regarding decorators * Return decorators too for bpo-15856 * Move ast and the class source code to top. Use proper Exception.
* Add spaces around the ":=" operator in ast_unparse.c (GH-19568)Hakan Çelik2020-04-182-3/+3
|
* bpo-40178: Convert the remaining os functions to Argument Clinic. (GH-19360)Serhiy Storchaka2020-04-183-126/+716
| | | | | Convert os.getgrouplist(), os.initgroups(), os.sendfile() and os.get_terminal_size().
* bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364)Serhiy Storchaka2020-04-184-24/+125
| | | | Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* bpo-35967: Skip test with `uname -p` on Android (GH-19577)Chih-Hsuan Yen2020-04-181-2/+5
| | | | | | | | | | | | | | | | | | | The uname binary on Android does not support -p [1]. Here is a sample log: ``` 0:06:03 load avg: 0.56 [254/421/8] test_platform failed -- running: test_asyncio (5 min 53 sec) uname: Unknown option p (see "uname --help") test test_platform failed -- Traceback (most recent call last): File "/data/local/tmp/lib/python3.9/test/test_platform.py", line 170, in test_uname_processor proc_res = subprocess.check_output(['uname', '-p'], text=True).strip() File "/data/local/tmp/lib/python3.9/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/data/local/tmp/lib/python3.9/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['uname', '-p']' returned non-zero exit status 1. ``` [1] https://android.googlesource.com/platform/external/toybox/+/refs/heads/master/toys/posix/uname.c Automerge-Triggered-By: @jaraco
* bpo-40257: Improve help for the typing module (GH-19546)Serhiy Storchaka2020-04-185-4/+24
| | | | | | * Show docstring for special forms. * Show docstring for special generic aliases. * Show documentation for __origin__ for generic aliases.
* Fix two typos in multiprocessing (GH-19571)Galden2020-04-181-2/+2
|
* bpo-40286: Use random.randbytes() in tests (GH-19575)Victor Stinner2020-04-175-28/+9
|
* bpo-40286: Makes simpler the relation between randbytes() and getrandbits() ↵Serhiy Storchaka2020-04-172-16/+26
| | | | (GH-19574)
* bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the ↵Barney Gale2020-04-171-1/+1
| | | | path accessor (GH-18836)
* bpo-39897: Remove needless `Path(self.parent)` call, which makes ↵Barney Gale2020-04-171-3/+2
| | | | `is_mount()` misbehave in `Path` subclasses. (GH-18839)
* bpo-40282: Allow random.getrandbits(0) (GH-19539)Antoine Pitrou2020-04-175-44/+42
|
* bpo-40302: UTF-32 encoder SWAB4() macro use a|b rather than a+b (GH-19572)Victor Stinner2020-04-171-1/+1
|