summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46431: improve error message on invalid calls to ↵Irit Katriel2022-01-241-0/+1
| | | | BaseExceptionGroup.__new__ (GH-30854)
* bpo-46470: remove unused branch from `typing._remove_dups_flatten` (GH-30780)Nikita Sobolev2022-01-241-0/+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-241-0/+2
| | | | | | | 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-241-0/+1
| | | Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* bpo-43683: Streamline YIELD_VALUE and SEND (GH-30723)Mark Shannon2022-01-241-0/+3
| | | | | | | | * Split YIELD_VALUE into ASYNC_GEN_WRAP; YIELD_VALUE for async generators. * Split SEND into SEND; YIELD_VALUE. * Document new opcodes.
* bpo-41403: Improve error message for invalid mock target (GH-30833)Irit Katriel2022-01-231-0/+3
|
* bpo-46471: Use single byte singletons (GH-30781)Kumar Aditya2022-01-231-0/+1
|
* bpo-46103: Fix inspect.getmembers to only get __bases__ from class (GH-30147)Weipeng Hong2022-01-231-0/+2
|
* bpo-46481: Implement vectorcall for weakref.ref.__call__ method. (GH-30820)Dong-hee Na2022-01-231-0/+2
|
* bpo-46483: change `PurePath.__class_getitem__` to return `GenericAlias` ↵Nikita Sobolev2022-01-231-0/+2
| | | | (GH-30822)
* bpo-46406: Faster single digit int division. (#30626)Gregory P. Smith2022-01-231-0/+3
| | | | | | | | | * 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-46474: Avoid REDoS in EntryPoint.pattern (sync with importlib_metadata ↵Jason R. Coombs2022-01-231-0/+2
| | | | 4.10.1) (GH-30803)
* bpo-46474: Apply changes from importlib_metadata 4.10.0 (GH-30802)Jason R. Coombs2022-01-231-0/+2
|
* bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)Jason R. Coombs2022-01-221-0/+1
|
* bpo-46417: Fix race condition on setting type __bases__ (GH-30788)Victor Stinner2022-01-221-0/+5
| | | | | | | 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.
* bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777)Kumar Aditya2022-01-221-0/+1
| | | | | | | | | | | | * bpo-46469: Make asyncio generic classes return GenericAlias * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46463: Fixes escape4chm.py script used when building the CHM ↵Steve Dower2022-01-211-0/+2
| | | | documentation file (GH-30768)
* bpo-43118: Fix bug in inspect.signature around 'base.__text_signature__' ↵Weipeng Hong2022-01-211-0/+3
| | | | (GH-30285)
* bpo-46124: Update zoneinfo to rely on importlib.resources traversable API. ↵Jason R. Coombs2022-01-211-0/+1
| | | | | (GH-30190) Automerge-Triggered-By: GH:jaraco
* bpo-46434: Handle missing docstrings in pdb help (GH-30705)Tom Sparrow2022-01-212-0/+3
|
* bpo-46417: Call _PyDebug_PrintTotalRefs() later (GH-30744)Victor Stinner2022-01-211-0/+3
| | | | | | | | "python -X showrefcount" now shows the total reference count after clearing and destroyed the main Python interpreter. Previously, it was shown before. Py_FinalizeEx() now calls _PyDebug_PrintTotalRefs() after finalize_interp_delete().
* bpo-30512: Add CAN Socket support for NetBSD (GH-30066)Thomas Klausner2022-01-211-0/+1
|
* bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283)andrei kulakov2022-01-211-0/+2
|
* bpo-46080: fix argparse help generation exception in edge case (GH-30111)Felix Fontein2022-01-201-0/+3
| | | | | Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified.
* bpo-46316: optimize `pathlib.Path.iterdir()` (GH-30501)Barney Gale2022-01-201-0/+1
| | | | `os.listdir()` doesn't return entries for `.` or `..`, so we don't need to check for them here.
* bpo-46429: Merge all deepfrozen files into one (GH-30572)Kumar Aditya2022-01-201-0/+1
|
* bpo-46409: Make generators in bytecode (GH-30633)Mark Shannon2022-01-201-0/+6
| | | | | | | | | | | | * Add RETURN_GENERATOR and JUMP_NO_INTERRUPT opcodes. * Trim frame and generator by word each. * Minor refactor of frame.c * Update test.test_sys to account for smaller frames. * Treat generator functions as normal functions when evaluating and specializing.
* bpo-46443: deepfreeze: use small ints and singleton zero bytes (GH-30715)Kumar Aditya2022-01-201-0/+1
|
* bpo-43869: Time Epoch is the same on all platforms (GH-30664)Victor Stinner2022-01-191-0/+2
|
* bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142)John Marshall2022-01-181-0/+1
| | | | | This addresses [bpo-45554]() by expanding the `exitcode` documentation to also describe what `exitcode` will be in cases of normal termination, `sys.exit()` called, and on uncaught exceptions. Automerge-Triggered-By: GH:pitrou
* bpo-44024: Improve the TypeError message in getattr and hasattr (GH-25863)Géry Ogam2022-01-181-0/+2
| | | | | | Use common error message for non-string attribute name in the builtin functions getattr and hasattr. The special check no longer needed since Python 3.0.
* bpo-46045: Do not use POSIX semaphores on NetBSD (GH-30047)Thomas Klausner2022-01-181-0/+1
| | | This fixes hanging tests test_compileall,, test_multiprocessing_fork and test_concurrent_futures.
* bpo-46028: Calculate base_executable by resolving symlinks in a venv (GH-30144)Steve Dower2022-01-181-0/+3
|
* bpo-44934: Add optional feature AppendPath to Windows MSI installer (GH-27889)bneuburg2022-01-181-0/+1
| | | The option must be enabled from the command line
* bpo-46161: Fix bug in starunpack_helper in compile.c (GH-30235)zq19972022-01-171-0/+1
|
* bpo-40066: [Enum] skip failing doc test (GH-30637)Kumar Aditya2022-01-171-0/+2
|
* bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631)Victor Stinner2022-01-171-0/+3
| | | | | | | | | | Skip test_builtin PTY tests on non-ASCII characters if the readline module is loaded. The readline module changes input() behavior, but test_builtin is not intented to test the readline module. When the readline module is loaded, PyOS_Readline() uses the readline implementation. In some cases, the Python readline callback rlhandler() is called by readline with a string without non-ASCII characters.
* Revert "bpo-40066: [Enum] update str() and format() output (GH-30582)" ↵Victor Stinner2022-01-171-2/+0
| | | | | (GH-30632) This reverts commit acf7403f9baea3ae1119fc6b4a3298522188bf96.
* bpo-40280: Change subprocess imports for cleaner error on wasm32 (GH-30620)Christian Heimes2022-01-171-0/+4
|
* bpo-40280: Add requires_fork test helper (GH-30622)Christian Heimes2022-01-161-0/+2
|
* bpo-46361: Fix "small" `int` caching (GH-30583)Brandt Bucher2022-01-161-0/+2
|
* bpo-40066: [Enum] update str() and format() output (GH-30582)Ethan Furman2022-01-161-0/+2
| | | | | | | | | | | | | | | Undo rejected PEP-663 changes: - restore `repr()` to its 3.10 status - restore `str()` to its 3.10 status New changes: - `IntEnum` and `IntFlag` now leave `__str__` as the original `int.__str__` so that str() and format() return the same result - zero-valued flags without a name have a slightly changed repr(), e.g. `repr(Color(0)) == '<Color: 0>'` - update `dir()` for mixed-in types to return all the methods and attributes of the mixed-in type - added `_numeric_repr_` to `Flag` to control display of unnamed values - enums without doc strings have a more comprehensive doc string added - `ReprEnum` added -- inheriting from this makes it so only `__repr__` is replaced, not `__str__` nor `__format__`; `IntEnum`, `IntFlag`, and `StrEnum` all inherit from `ReprEnum`
* bpo-46258: Streamline isqrt fast path (#30333)Mark Dickinson2022-01-151-0/+2
|
* bpo-46383: Fix signature of zoneinfo module_free function (GH-30607)Christian Heimes2022-01-151-0/+2
|
* bpo-46242: [Enum] better error message for extending `Enum` with members ↵Nikita Sobolev2022-01-141-0/+1
| | | | (GH-30357)
* Merge remote-tracking branch 'upstream/main'Pablo Galindo2022-01-142-0/+7
|\
| * bpo-45569: Change PYLONG_BITS_IN_DIGIT default to 30 (GH-30497)Mark Dickinson2022-01-141-0/+5
| |
| * bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571)neonene2022-01-131-0/+2
| | | | | | This makes ntpath.abspath()/getpath_abspath() follow normpath(), since some WinAPIs such as PathCchSkipRoot() require backslashed paths.
* | Python 3.11.0a4v3.11.0a4Pablo Galindo2022-01-13116-226/+1177
|/
* bpo-46070: _PyGC_Fini() untracks objects (GH-30577)Victor Stinner2022-01-131-0/+5
| | | | | | | Py_EndInterpreter() now explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, calling PyObject_GC_UnTrack() on the object crashed if the previous or the next object of the PyGC_Head structure became a dangling pointer.