summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)Dong-hee Na2021-01-012-3/+9
|
* bpo-42781: Document the mechanics of cached_property from a user viewpoint ↵Raymond Hettinger2021-01-011-4/+14
| | | | (GH-24031)
* bpo-37193: Remove thread objects which finished process its request (GH-23127)Jason R. Coombs2020-12-313-12/+64
| | | This reverts commit aca67da4fe68d5420401ac1782203d302875eb27.
* Fixes a typo in importlib.metadata. (#23921)Tao He2020-12-311-2/+2
| | | Signed-off-by: Tao He <sighingnow@gmail.com>
* bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but ↵Jason R. Coombs2020-12-313-2/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processor) (#23010) * Add test capturing missed expectation with uname_result._replace. * bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'. * Replace hard-coded length with one derived from the definition. * Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189). * bpo-42189: Exclude processor parameter when constructing uname_result. * In _make, rely on __new__ to strip processor. * Add blurb. * iter is not necessary here. * Rely on num_fields in __new__ * Add test for slices on uname * Add test for copy and pickle. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` ↵Jason R. Coombs2020-12-317-154/+286
| | | | | | | | | | | | | | (#23758) * bpo-42382: In importlib.metadata, `EntryPoint` objects now expose a `.dist` object referencing the `Distribution` when constructed from a `Distribution`. Also, sync importlib_metadata 3.3: - Add support for package discovery under package normalization rules. - The object returned by `metadata()` now has a formally-defined protocol called `PackageMetadata` with declared support for the `.get_all()` method. * Add blurb * Remove latent footnote.
* bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in ↵Erlend Egeberg Aasland2020-12-315-42/+30
| | | | socket.ntohs and socket.htons (GH-23980)
* bpo-39068: Fix race condition in base64 (GH-17627)Brandon Stansbury2020-12-313-2/+5
| | | | There was a race condition in base64 in lazy initialization of multiple globals.
* Minor improvements to the convolve() recipe (GH-24012)Raymond Hettinger2020-12-301-2/+2
| | | | * Minor improvement to speed and space efficiency for the convolve() recipe * Don't require convolve's kernel to be a sequence.
* bpo-42773: fix tests not being run on pushes (GH-24004)Filipe Laíns2020-12-301-1/+1
| | | | | | | | There was a typo, we were checking if the "GITHUB_BASE_REF" string literal was empty instead of the $GITHUB_BASE_REF value. When $GITHUB_BASE_REF is empty, the action that triggered the run was not a pull request, so we always run the full test suite. Signed-off-by: Filipe Laíns <lains@riseup.net>
* bpo-27640: Add --disable-test-modules configure option (GH-23886)pxinwr2020-12-306-41/+116
| | | | | | | | | Added --disable-test-modules option to the configure script: don't build nor install test modules. Patch by Xavier de Gaye, Thomas Petazzoni and Peixing Xin. Co-Authored-By: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
* bpo-27794: Add `name` attribute to `property` class (GH-23967)Yurii Karabas2020-12-305-11/+118
|
* bpo-40137: Fix refleak in _functools_exec() (GH-24006)Victor Stinner2020-12-301-0/+1
|
* bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999)Petr Viktorin2020-12-293-4/+7
| | | | | | | | | | | | | | | ``` In file included from /usr/include/python3.8/Python.h:147: In file included from /usr/include/python3.8/abstract.h:837: /usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *' (aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)') increases required alignment from 1 to 8 [-Werror,-Wcast-align] ptr = (vectorcallfunc*)(((char *)callable) + offset); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ``` Co-Authored-By: Andreas Schneider <asn@cryptomilk.org> Co-Authored-By: Antoine Pitrou <antoine@python.org>
* bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861)Andre Delfino2020-12-291-0/+2
|
* bpo-40956: Convert _sqlite3.Row to Argument Clinic (GH-23964)Erlend Egeberg Aasland2020-12-292-21/+86
|
* bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)Jakub Kulík2020-12-294-11/+9
|
* bpo-40137: Convert _functools module to use PyType_FromModuleAndSpec. (GH-23405)Hai Shi2020-12-293-224/+255
|
* bpo-42700: Swap descriptions in pyexpat.errors (GH-23876)Michael Wayne Goodman2020-12-291-2/+2
| | | | | | The descriptions of the `codes` and `messages` dictionaries in `xml.parsers.expat.errors` were swapped, and this commit swaps them back. For example, `codes` maps string descriptions of errors to numeric error codes, not the other way around.
* Fix minor typo in comments in readline.c (GH-23911)Jero Bado2020-12-291-1/+1
|
* Allow / character in username,password fields in _PROXY envvars. (#23973)Senthil Kumaran2020-12-293-2/+15
|
* bpo-41781: Fix typo in internal function name in typing (GH-23957)Ross2020-12-291-3/+3
|
* Fix typo in NEWS (GH23958)Zackery Spytz2020-12-291-1/+1
|
* bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968)Serhiy Storchaka2020-12-295-11/+27
| | | | Objects which belong to different Tcl interpreters are now always different, even if they have the same name.
* bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)Serhiy Storchaka2020-12-291-1/+1
| | | | Tk can internally support bignum even if Tkinter is built without support of bignum.
* bpo-42770: Fix a typo in the email.headerregistry docs (GH-23982)Zackery Spytz2020-12-291-1/+1
| | | Automerge-Triggered-By: GH:zware
* bpo-42740: Support PEP 604, 612 for typing.py get_args and get_origin (GH-23942)Ken Jin2020-12-293-1/+15
|
* Fix compiler warnings regarding loss of data (GH-23983)Pablo Galindo2020-12-292-2/+2
|
* Use Py_NewRef in Modules/_struct.c (GH-23981)Pablo Galindo2020-12-281-2/+1
|
* bpo-42740: Fix get_args for PEP 585 collections.abc.Callable (GH-23963)Ken Jin2020-12-282-3/+6
| | | PR 1/2. Needs backport to 3.9.
* bpo-42222: Modernize integer test/conversion in randrange() (#23064)Raymond Hettinger2020-12-284-11/+81
|
* [workflow] Use MSVC problem matcher for Windows action build (GH-18532)Ammar Askar2020-12-282-0/+21
| | | | | | | This makes warnings and errors from the compiler very prominent so this should help prevent warnings from sneaking into the code base and catch them in review. See https://discuss.python.org/t/using-github-problem-matchers-to-catch-warnings-early/4254 for more details You can see a demo of this in action here: https://github.com/ammaraskar/cpython/pull/15/files#diff-9ba2eeca0f254ece0a9df4d7cb68e870 GCC and Sphinx matchers have previously been added in GH-18567 and GH-20325, respectively.
* bpo-40077: Fix typo in simplequeue_get_state_by_type() (GH-23975)Erlend Egeberg Aasland2020-12-281-1/+1
| | | | | | | | The typo did no damage, but it looks suspicious and confusing. Introduced by GH-23136. Skip news. Automerge-Triggered-By: GH:pitrou
* bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972)Erlend Egeberg Aasland2020-12-281-1/+0
|
* bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)Erlend Egeberg Aasland2020-12-271-1/+1
| | | The `pages` argument default value now reflects the implementation.
* bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170)Erlend Egeberg Aasland2020-12-277-82/+45
|
* bpo-40956: Convert _sqlite3.Connection to Argument Clinic, part 2 (GH-23838)Erlend Egeberg Aasland2020-12-274-77/+297
|
* bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic ↵Serhiy Storchaka2020-12-271-4/+8
| | | | linked with Tk >= 8.5 (GH-23955)
* bpo-42745: finalize_interp_types() calls _PyType_Fini() (GH-23953)Victor Stinner2020-12-263-8/+7
| | | | | Call _PyType_Fini() in subinterpreters. Fix reference leaks in subinterpreters.
* Add small validator utility for PEG grammars (GH-23519)Pablo Galindo2020-12-263-0/+106
|
* bpo-16396: fix BPO number in changelog (GH-23951)Shantanu2020-12-261-1/+1
| | | Automerge-Triggered-By: GH:jaraco
* bpo-42748: test_asdl_parser now uses exec_module instead of load_module (#23954)Dong-hee Na2020-12-261-1/+5
|
* bpo-40521: Per-interpreter interned strings (GH-20085)Victor Stinner2020-12-265-83/+43
| | | | | | | | | | | Make the Unicode dictionary of interned strings compatible with subinterpreters. Remove the INTERN_NAME_STRINGS macro in typeobject.c: names are always now interned (even if EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined). _PyUnicode_ClearInterned() now uses PyDict_Next() to no longer allocate memory, to ensure that the interned dictionary is cleared.
* bpo-42694: Prevent creating _curses_panel.panel (GH-23948)Victor Stinner2020-12-261-1/+2
| | | | | Fix regression introduced in commit 1baf030a902392fe92d934ed0fb6a385cf7d8869: restore removed code to prevent creating a _curses_panel.panel instance directly.
* bpo-42745: Make the type cache per-interpreter (GH-23947)Victor Stinner2020-12-267-82/+128
| | | | | | | | | | | Make the type attribute lookup cache per-interpreter. Add private _PyType_InitCache() function, called by PyInterpreterState_New(). Continue to share next_version_tag between interpreters, since static types are still shared by interpreters. Remove MCACHE macro: the cache is no longer disabled if the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined.
* Add convolve() to the itertools recipes (GH-23928)Raymond Hettinger2020-12-261-0/+12
|
* bpo-39465: Fix _PyUnicode_FromId() for subinterpreters (GH-20058)Victor Stinner2020-12-256-37/+102
| | | | | | | | | | | | | | | | | Make _PyUnicode_FromId() function compatible with subinterpreters. Each interpreter now has an array of identifier objects (interned strings decoded from UTF-8). * Add PyInterpreterState.unicode.identifiers: array of identifiers objects. * Add _PyRuntimeState.unicode_ids used to allocate unique indexes to _Py_Identifier. * Rewrite the _Py_Identifier structure. Microbenchmark on _PyUnicode_FromId(&PyId_a) with _Py_IDENTIFIER(a): [ref] 2.42 ns +- 0.00 ns -> [atomic] 3.39 ns +- 0.00 ns: 1.40x slower This change adds 1 ns per _PyUnicode_FromId() call in average.
* Sync what's new in 3.9 with 3.9 branch (GH-23943)Ken Jin2020-12-251-1/+34
|
* bpo-36876: [c-analyzer tool] Additional CLI updates for "capi" command. ↵Eric Snow2020-12-253-93/+380
| | | | | (gh-23929) https://bugs.python.org/issue36876
* Rename Tkinter tests for widget options (GH-23944)Serhiy Storchaka2020-12-253-210/+212
| | | | Every test for widget option starts now with "test_configure_" to distinguish it from tests for widget commands.