summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)Christian Heimes2022-01-2542-23/+139
|
* bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864)Gregory Beauregard2022-01-253-4/+13
| | | | | We treat Annotated type arg as class-level annotation. This exempts it from checks against Final and ClassVar in order to allow using them in any nesting order. Automerge-Triggered-By: GH:gvanrossum
* bpo-41841: update idlelib News up to 3.10.0. (GH-30868)Terry Jan Reedy2022-01-253-3/+34
|
* bpo-46503: Prevent an assert from firing when parsing some invalid \N ↵Eric V. Smith2022-01-253-2/+19
| | | | | | | sequences in f-strings. (GH-30865) * bpo-46503: Prevent an assert from firing. Also fix one nearby tiny PEP-7 nit. * Added blurb.
* bpo-46504: faster code for trial quotient in x_divrem() (GH-30856)Tim Peters2022-01-251-1/+8
| | | | | | | | | | * bpo-46504: faster code for trial quotient in x_divrem() This brings x_divrem() back into synch with x_divrem1(), which was changed in bpo-46406 to generate faster code to find machine-word division quotients and remainders. Modern processors compute both with a single machine instruction, but convincing C to exploit that requires writing _less_ "clever" C code.
* bpo-46431: Add example of subclassing ExceptionGroup. Document the message ↵Irit Katriel2022-01-241-31/+55
| | | | and exceptions attributes (GH-30852)
* bpo-46431: improve error message on invalid calls to ↵Irit Katriel2022-01-243-2/+6
| | | | BaseExceptionGroup.__new__ (GH-30854)
* fixed flaky test (GH-30845)Kumar Aditya2022-01-241-5/+7
|
* bpo-40280: Get help() working and more (GH-30858)Christian Heimes2022-01-243-13/+20
|
* bpo-45711: move whatsnew entries which are incorrectly listed under New ↵Irit Katriel2022-01-241-10/+11
| | | | Features (GH-30849)
* bpo-46470: remove unused branch from `typing._remove_dups_flatten` (GH-30780)Nikita Sobolev2022-01-242-2/+1
| | | The branch was a remnant of old 3.6 typing.Union implementation.
* bpo-41906: Accept built filters in dictConfig (GH-30756)Mario Corchero2022-01-244-1/+55
| | | | | | | When configuring the logging stack, accept already built filters (or just callables) in the filters array of loggers and handlers. This facilitates passing quick callables as filters. Automerge-Triggered-By: GH:vsajip
* bpo-46422: use `dis.Positions` in `dis.Instruction` (GH-30716)Nikita Sobolev2022-01-244-14/+42
| | | Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* bpo-43683: Streamline YIELD_VALUE and SEND (GH-30723)Mark Shannon2022-01-249-43/+72
| | | | | | | | * Split YIELD_VALUE into ASYNC_GEN_WRAP; YIELD_VALUE for async generators. * Split SEND into SEND; YIELD_VALUE. * Document new opcodes.
* fix typo in typing.rst (#30841)Jelle Zijlstra2022-01-231-1/+1
|
* bpo-46486: Fixed misspelled name DesciptorClassificationKumar Aditya2022-01-231-8/+8
|
* Improve grouper() recipe to demonstrate all forms of zip() (GH-30837)Raymond Hettinger2022-01-232-9/+41
|
* bpo-41403: Improve error message for invalid mock target (GH-30833)Irit Katriel2022-01-233-5/+13
|
* bpo-46471: Use single byte singletons (GH-30781)Kumar Aditya2022-01-232-0/+3
|
* bpo-46103: Fix inspect.getmembers to only get __bases__ from class (GH-30147)Weipeng Hong2022-01-233-13/+20
|
* bpo-46481: Implement vectorcall for weakref.ref.__call__ method. (GH-30820)Dong-hee Na2022-01-234-52/+35
|
* bpo-46483: change `PurePath.__class_getitem__` to return `GenericAlias` ↵Nikita Sobolev2022-01-233-5/+13
| | | | (GH-30822)
* bpo-46406: Faster single digit int division. (#30626)Gregory P. Smith2022-01-232-10/+29
| | | | | | | | | * bpo-46406: Faster single digit int division. This expresses the algorithm in a more basic manner resulting in better instruction generation by todays compilers. See https://mail.python.org/archives/list/python-dev@python.org/thread/ZICIMX5VFCX4IOFH5NUPVHCUJCQ4Q7QM/#NEUNFZU3TQU4CPTYZNF3WCN7DOJBBTK5
* bpo-29882: Fix portability bug introduced in GH-30774 (#30794)Mark Dickinson2022-01-232-4/+15
|
* bpo-46474: Avoid REDoS in EntryPoint.pattern (sync with importlib_metadata ↵Jason R. Coombs2022-01-232-2/+4
| | | | 4.10.1) (GH-30803)
* bpo-45382: test.pythoninfo logs more Windows versions (GH-30817)Victor Stinner2022-01-231-0/+39
| | | | | | | Add the following info to test.pythoninfo: * windows.ver: output of the shell "ver" command * windows.version and windows.version_caption: output of the "wmic os get Caption,Version /value" command.
* This localization technique is no longer cost effective. (GH-30818)Raymond Hettinger2022-01-231-12/+12
|
* bpo-46474: Apply changes from importlib_metadata 4.10.0 (GH-30802)Jason R. Coombs2022-01-233-28/+3
|
* bpo-46425: Partially revert "bpo-46425: fix direct invocation of ↵Jason R. Coombs2022-01-2310-40/+22
| | | | | `test_importlib` (GH-30682)" (GH-30799) This reverts commit 57316c52bae5d6420f5067f3891ec328deb97305 for files pertaining to importlib.metadata and importlib.resources.
* bpo-46477: [Enum] ensure Flag subclasses have correct bitwise methods (GH-30816)Ethan Furman2022-01-232-39/+48
|
* bpo-46417: _PyList_Fini() clears indexerr (GH-30815)Victor Stinner2022-01-231-2/+6
| | | _PyList_Fini() now clears the 'indexerr' error message.
* Minor code rearrangement to group related methods together. (GH-30813)Raymond Hettinger2022-01-231-40/+38
| | | | * Make example more focused with math.prod() * Move comparison tests to the multiset operations section
* bpo-46417: Fix _PyStaticType_Dealloc() (GH-30810)Victor Stinner2022-01-221-3/+11
| | | | _PyStaticType_Dealloc() now only calls PyObject_ClearWeakRefs() if the call is not going to fail.
* bpo-46417: Clear symtable identifiers at exit (GH-30809)Victor Stinner2022-01-224-3/+25
| | | | | | Add _PySymtable_Fini() function, called by finalize_interp_clear(). Update test_cmd_line.test_showrefcount() to tolerate negative reference count.
* bpo-41682: Skip unstable test_asyncio sendfile test on Windows (GH-30801)Nikita Sobolev2022-01-221-0/+2
|
* bpo-46417: Clear _io module static objects at exit (GH-30807)Victor Stinner2022-01-222-44/+99
| | | | Add _PyIO_Fini() function, called by finalize_interp_clear(). It clears static objects used by the _io extension module.
* bpo-46417: Clear Unicode static types at exit (GH-30806)Victor Stinner2022-01-226-22/+25
| | | | | | | | | | | Add _PyUnicode_FiniTypes() function, called by finalize_interp_types(). It clears these static types: * EncodingMapType * PyFieldNameIter_Type * PyFormatterIter_Type _PyStaticType_Dealloc() now does nothing if tp_subclasses is not NULL.
* bpo-46417: Py_Finalize() clears static exceptioins (GH-30805)Victor Stinner2022-01-221-1/+26
| | | | | | The Py_Finalize() function now clears exceptions implemented as static types. Add _PyExc_FiniTypes() function, called by _PyExc_Fini().
* bpo-46417: Factorize _PyExc_InitTypes() code (GH-30804)Victor Stinner2022-01-225-190/+150
| | | | | | | | Add 'static_exceptions' list to factorize code between _PyExc_InitTypes() and _PyBuiltins_AddExceptions(). _PyExc_InitTypes() does nothing if it's not the main interpreter. Sort exceptions in Lib/test/exception_hierarchy.txt.
* bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)Jason R. Coombs2022-01-222-1/+6
|
* bpo-46417: _PyTypes_FiniTypes() clears object and type (GH-30798)Victor Stinner2022-01-221-15/+11
|
* bpo-45200: GHA Address Sanitizer skips 3 slowest tests (GH-30797)Victor Stinner2022-01-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skip the 3 slowest tests of the Address Sanitizer CI of GitHub Actions: * test_tools * test_peg_generator * test_concurrent_futures These tests take between 5 and 20 minutes on this CI which makes this CI job the slowest. Making this CI job faster makes the whole Python workflow faster. These tests are run on all others CIs. Example of Address Sanitizer output: 10 slowest tests: - test_peg_generator: 17 min 33 sec - test_tools: 8 min 27 sec - test_concurrent_futures: 5 min 24 sec - test_zipfile: 2 min 41 sec - test_compileall: 2 min 21 sec - test_asyncio: 2 min 17 sec - test_gdb: 1 min 43 sec - test_weakref: 1 min 35 sec - test_pickle: 1 min 18 sec - test_subprocess: 1 min 12 sec Moreover, test_concurrent_futures also seems to be affected by bpo-45200 bug: libasan dead lock in pthread_create().
* bpo-46417: Cleanup typeobject.c code (GH-30795)Victor Stinner2022-01-221-159/+164
| | | | | | | | | | | | | | | | | | | | | | * Add comment to recurse_down_subclasses() explaining why it's safe to use a borrowed reference to tp_subclasses. * remove_all_subclasses() no longer accept NULL cases * type_set_bases() now relies on the fact that new_bases is not NULL. * type_dealloc_common() avoids PyErr_Fetch/PyErr_Restore if tp_bases is NULL. * remove_all_subclasses() makes sure that no exception is raised. * Don't test at runtime if tp_mro only contains types: rely on _PyType_CAST() assertion for that. * _PyStaticType_Dealloc() no longer clears tp_subclasses which is already NULL. * mro_hierarchy() avoids calling _PyType_GetSubclasses() if tp_subclasses is NULL. Coding style: * Use Py_NewRef(). * Add braces and move variable declarations to the first variable assignement. * Rename a few variables and parameters to use better names.
* bpo-46417: Clear more static types (GH-30796)Victor Stinner2022-01-227-54/+30
| | | | | | | * Move PyContext static types into object.c static_types list. * Rename PyContextTokenMissing_Type to _PyContextTokenMissing_Type and declare it in pycore_context.h. * _PyHamtItems types are no long exported: replace PyAPI_DATA() with extern.
* bpo-46425: fix direct invocation of `test_fileutils` and `test_zoneinfo` ↵Nikita Sobolev2022-01-222-3/+7
| | | | (GH-30792)
* bpo-46425: fix direct invocation of `test_importlib` (GH-30682)Nikita Sobolev2022-01-2239-61/+74
|
* bpo-46425: use absolute imports in `test_sqlite3` (GH-30676)Nikita Sobolev2022-01-224-6/+5
|
* bpo-46425: fix direct invocation of `test_traceback` (GH-30746)Nikita Sobolev2022-01-221-2/+3
|
* bpo-46417: remove_subclass() clears tp_subclasses (GH-30793)Victor Stinner2022-01-222-9/+32
| | | | | | | | | The remove_subclass() function now deletes the dictionary when removing the last subclass (if the dictionary becomes empty) to save memory: set PyTypeObject.tp_subclasses to NULL. remove_subclass() is called when a type is deallocated. _PyType_GetSubclasses() no longer holds a reference to tp_subclasses: its loop cannot modify tp_subclasses.
* bpo-46417: Fix race condition on setting type __bases__ (GH-30788)Victor Stinner2022-01-222-11/+21
| | | | | | | Fix a race condition on setting a type __bases__ attribute: the internal function add_subclass() now gets the PyTypeObject.tp_subclasses member after calling PyWeakref_NewRef() which can trigger a garbage collection which can indirectly modify PyTypeObject.tp_subclasses.