summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-43163: Handle unclosed parentheses in codeop (GH-24483)Pablo Galindo2021-02-093-1/+16
|
* bpo-43166: Disable ceval.c optimisations for Windows debug builds (GH-24485)Steve Dower2021-02-091-3/+3
| | | | This ensures that ceval.c can be debugged. Also remove some irrelevant options from the pragma.
* bpo-41824: Add versionadded for typing.ForwardRef docs (#24224)Ken Jin2021-02-091-0/+2
|
* Improve docs of PEP 604 Union (#24301)Ken Jin2021-02-093-19/+20
|
* bpo-43162: [Enum] deprecate enum member.member access (GH-24486)Ethan Furman2021-02-093-4/+39
| | | | | | | In 3.5 (?) a speed optimization made it possible to access members as attributes of other members, i.e. ``Color.RED.BLUE``. This was always discouraged in the docs, and other recent optimizations has made that one no longer necessary. Because some may be relying on it anyway, it is being deprecated in 3.10, and will be removed in 3.11.
* bpo-13501: allow choosing between readline and libedit (GH-24189)Roland Hieber2021-02-096-207/+275
| | | | | | | | | | | | | | | | | | | | | | | In contrast to macOS, libedit is available as its own include file and library on Linux systems to prevent file name clashes. So if both libraries are available on the system, readline is currently chosen by default; and if only libedit is available, it is not found at all. This patch adds a way to link against libedit by adding the following arguments to configure: --with-readline link against libreadline (the default) --with-readline=editline link against libeditline --with-readline=no disable building the readline module --without-readline (same) The runtime detection of libedit vs. readline was already done in commit 7105319ada2e66365902 (2019-12-04, serge-sans-paille: "bpo-38634: Allow non-apple build to cope with libedit (GH-16986)"). Fixes: GH-12076 ("bpo-13501 Build or disable readline with Editline") Fixes: bpo-13501 ("Make libedit support more generic; port readline / libedit to FreeBSD") Co-authored-by: Enji Cooper (ngie-eign) Co-authored-by: Martin Panter (vadmium) Co-authored-by: Robert Marshall (kellinm)
* bpo-40692: Run more test_concurrent_futures tests (GH-20239)Asheesh Laroia2021-02-086-10/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of multiprocessing.synchronize() being missing, the test_concurrent_futures test suite now skips only the tests that require multiprocessing.synchronize(). Validate that multiprocessing.synchronize exists as part of _check_system_limits(), allowing ProcessPoolExecutor to raise NotImplementedError during __init__, rather than crashing with ImportError during __init__ when creating a lock imported from multiprocessing.synchronize. Use _check_system_limits() to disable tests of ProcessPoolExecutor on systems without multiprocessing.synchronize. Running the test suite without multiprocessing.synchronize reveals that Lib/compileall.py crashes when it uses a ProcessPoolExecutor. Therefore, change Lib/compileall.py to call _check_system_limits() before creating the ProcessPoolExecutor. Note that both Lib/compileall.py and Lib/test/test_compileall.py were attempting to sanity-check ProcessPoolExecutor by expecting ImportError. In multiprocessing.resource_tracker, sem_unlink() is also absent on platforms where POSIX semaphores aren't available. Avoid using sem_unlink() if it, too, does not exist. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43147: Remove archaic terminology. (GH-24462)Raymond Hettinger2021-02-082-10/+8
|
* bpo-43149: Improve error message for exception group without parentheses ↵Pablo Galindo2021-02-074-352/+611
| | | | (GH-24467)
* bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)Terry Jan Reedy2021-02-071-1/+2
| | | These 3 statements cannot be used at module scope -- nor in exec with one namespace.
* Simple typo fix (GH-24448)Andrew Tennikoff2021-02-051-1/+1
|
* Fix a typo in a deprecation warning (GH-24423)Zackery Spytz2021-02-051-1/+1
|
* bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo ↵Zackery Spytz2021-02-051-6/+17
| | | | | | | (GH-24450) PyObject_RichCompareBool() returns -1 on error, but this case is not handled by the find_in_strong_cache() function. Any exception raised by PyObject_RichCompareBool() should be propagated.
* Minor readability improvements. Also note performance impact of __slots__. ↵Raymond Hettinger2021-02-051-8/+11
| | | | (GH-24456)
* Reduce overhead on random timings (GH-24455)Raymond Hettinger2021-02-051-1/+1
|
* bpo-35295: Remove outdated comment. (GH-24453)Inada Naoki2021-02-051-7/+0
|
* bpo-43102: Set namedtuple __new__'s internal builtins to a dict. (GH-24439)Raymond Hettinger2021-02-043-1/+8
|
* bpo-42882: Fix MSVC warnings in pystate.c (GH-24440)Ken Jin2021-02-041-1/+1
| | | _PyRuntimeState.unicode_ids.next_index type is Py_ssize_t.
* Fix signed/unsigned comparison to avoid compilation warning (GH-24441)Ken Jin2021-02-041-1/+1
|
* build(deps): bump actions/cache from v2.1.3 to v2.1.4 (#24446)dependabot[bot]2021-02-042-2/+2
| | | | | | | | | Bumps [actions/cache](https://github.com/actions/cache) from v2.1.3 to v2.1.4. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.3...26968a09c0ea4f3e233fdddbafd1166051a095f6) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix dependabot.yml file (GH-24443)Mariatta Wijaya2021-02-041-4/+0
| | | | The `target-branch` field doesn't seem to support array. Since it defaults to the default branch anyway, we should just remove the `target-branch` field from the config.
* bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428)Dong-hee Na2021-02-034-1/+28
|
* bpo-43121: Fix incorrect SyntaxError message for missing comma (GH-24436)Pablo Galindo2021-02-034-8/+29
|
* Fix typo (GH-23019)Harry2021-02-031-1/+1
| | | Fixed possible typo in comment
* build(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)dependabot[bot]2021-02-031-1/+1
| | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.1 to v2.2.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.1...e448a9b857ee2131e752b06002bf0e093c65e571) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Post 3.10.0a5Pablo Galindo2021-02-031-1/+1
|
* Merge tag 'v3.10.0a5'Pablo Galindo2021-02-0371-147/+716
|\ | | | | | | Python 3.10.0a5
| * Fix Sphynx syntax in the memory.rst documentv3.10.0a5Pablo Galindo2021-02-024-12/+46
| |
| * Python 3.10.0a5Pablo Galindo2021-02-0267-135/+670
| |
* | bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394)diegoe2021-02-031-1/+1
| |
* | Add link to Microsoft docs for limitations in Windows Store package (GH-24422)Steve Dower2021-02-031-0/+5
| |
* | bpo-8264: Document hasattr and getattr behavior for private attributes ↵Ken Jin2021-02-022-0/+16
|/ | | | | | | | (GH-23513) Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
* bpo-43108: Fix a reference leak in the curses module (GH-24420)Pablo Galindo2021-02-022-1/+4
|
* bpo-41149: Fix a bug in threading that causes fals-y threads callables to ↵BarneyStratford2021-02-023-1/+22
| | | | fail to start. (GH-21201)
* bpo-42997: Improve error message for missing : before suites (GH-24292)Pablo Galindo2021-02-0211-428/+1219
| | | | | | | | * Add to the peg generator a new directive ('&&') that allows to expect a token and hard fail the parsing if the token is not found. This allows to quickly emmit syntax errors for missing tokens. * Use the new grammar element to hard-fail if the ':' is missing before suites.
* Only eliminate jumps to successor block if jump is unconditional. (GH-24417)Mark Shannon2021-02-022-17/+20
| | | | * Prevents elimination of the sole test of a value in statements like: if x or True: ...
* bpo-41748: Handles unquoted attributes with commas (#24072)Karl Dubost2021-02-013-37/+59
| | | | | | | | | | | | | | | | | | * bpo-41748: Adds tests for unquoted attributes with comma * bpo-41748: Handles unquoted attributes with comma * bpo-41748: Addresses review comments * bpo-41748: Addresses review comments * Adds more test cases * Simplifies the regex for handling spaces * bpo-41748: Moves attributes tests under the right class * bpo-41748: Addresses review about duplicate attributes * bpo-41748: Adds NEWS.d entry for this patch
* bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)Aviral Srivastava2021-02-015-35/+56
| | | | | | | | For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42834: Fix _json internal caches for subinterpreters (GH-24121)Ken Jin2021-02-012-38/+40
| | | | Make internal caches of the _json extension module compatible with subinterpreters.
* Fix typo in Lib/trace.py (GH-24309)Yonatan Goldschmidt2021-02-011-1/+1
|
* bpo-42990: Further refactoring of PyEval_ functions. (GH-24368)Mark Shannon2021-02-019-245/+247
| | | | | | | | | | * Further refactoring of PyEval_EvalCode and friends. Break into make-frame, and eval-frame parts. * Simplify function vector call using new _PyEval_Vector. * Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEval_EvalCode. * Don't use legacy function PyEval_EvalCodeEx.
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a ↵Ronald Oussoren2021-02-016-6/+21
| | | | | string (GH-24341) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
* bpo-42927: Update the What's new entry for LOAD_ATTR optimizations (GH-24383)Pablo Galindo2021-01-311-4/+4
|
* bpo-43017: Improve error message for unparenthesised tuples in ↵Pablo Galindo2021-01-315-251/+343
| | | | comprehensions (GH24314)
* bpo-42986: Fix parser crash when reporting syntax errors in f-string with ↵Pablo Galindo2021-01-313-1/+6
| | | | newlines (GH-24279)
* bpo-43016: Fix test_curses on platform without cursesw (GH-24405)Serhiy Storchaka2021-01-311-5/+23
|
* bpo-41604: Don't decrement the reference count of the previous user_ptr when ↵Anonymous Maarten2021-01-312-1/+5
| | | | set_panel_usertpr fails (GH-21933)
* bpo-43083: Fix error handling in _sqlite3 (GH-24395)Serhiy Storchaka2021-01-312-7/+19
|
* bpo-43016: Rewrite tests for curses (GH-24312)Serhiy Storchaka2021-01-311-215/+787
|
* bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed ↵Serhiy Storchaka2021-01-312-1/+3
| | | | wchar_t (GH-24350)