summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-114490: Add check for Mach-O linkage in Lib/platform.py (#114491)Aiden Fox Ivey2024-01-262-0/+3
| | | | | ``platform.architecture()`` now returns the format of binaries (e.g. Mach-O) instead of the default empty string. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-114494: Change logging docstring to bool for exec_info (GH=114558)Tristan Pank2024-01-261-6/+6
|
* Add More Entries to CODEOWNERS (#114617)Eric Snow2024-01-261-1/+40
|
* gh-88569: add `ntpath.isreserved()` (#95486)Barney Gale2024-01-268-72/+154
| | | | | | | | | | | Add `ntpath.isreserved()`, which identifies reserved pathnames such as "NUL", "AUX" and "CON". Deprecate `pathlib.PurePath.is_reserved()`. --------- Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* Docs: rework the dbm.dumb introduction (#114550)Erlend E. Aasland2024-01-261-30/+36
| | | | | | | - consistently use correct parameter markup - consistently use submodule name as database name - improve accuracy of the dbm.dumb.open() spec - remove dumbdbm class refs and replace them with generic "database object" - use parameter list for dbm.dumb.open()
* Document PyOS_strtoul and PyOS_strtol (GH-114048)Sergey B Kirpichev2024-01-261-0/+36
|
* gh-114435: Allow test_stat_inaccessible_file() to have matching ino/dev ↵Steve Dower2024-01-261-4/+3
| | | | | (GH-114571) This may occur if Windows allows reading stat information from a file even if the current user does not have access.
* Use Unicode unconditionally for _winapi.CreateFile (GH-114611)Steve Dower2024-01-262-13/+17
| | | Currently it switches based on build settings, but argument clinic does not handle it correctly.
* gh-112087: Make list_repr and list_length to be thread-safe (gh-114582)Donghee Na2024-01-262-10/+21
|
* gh-111968: Unify freelist naming schema to Eric's suggestion (gh-114581)Donghee Na2024-01-268-25/+25
|
* gh-77749: Fix inconsistent behavior of non-ASCII handling in ↵Rito Takeuchi2024-01-263-1/+27
| | | | | | | EmailPolicy.fold() (GH-6986) It now always encodes non-ASCII characters in headers if utf8 is false. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Docs: mark up dbm.open() with param list (#114601)Erlend E. Aasland2024-01-261-26/+26
| | | Also consolidate following paragraphs regarding database objects.
* gh-114272: Allow _wmi audit test to succeed even if it times out (GH-114602)Steve Dower2024-01-261-1/+7
|
* Docs: 'still' is a better word than 'nonetheless' (#114598)Ned Batchelder2024-01-263-3/+3
|
* Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() (#114594)Erlend E. Aasland2024-01-261-5/+5
|
* Docs: reword dbm.ndbm introduction (#114549)Erlend E. Aasland2024-01-261-21/+26
| | | | | | | - add abbreviation directives for NDBM and GDBM - consistently spell NDBM as NDBM - silence broken ndbm class refs - improve accuracy of dbm.ndbm.open() spec - use replacement text for NDBM/GDBM file format incompatibility note
* Docs: rework dbm introduction (#114551)Erlend E. Aasland2024-01-261-10/+11
| | | | | - add refs to other parts of the docs (dict, bytes, etc.) - clarify whichdb() return value by using list markup - silence refs to example or generic submodule methods (keys, get, etc.)
* gh-114569: Use PyMem_* APIs for most non-PyObject uses (#114574)Erlend E. Aasland2024-01-267-33/+36
| | | Fix usage in Modules, Objects, and Parser subdirectories.
* gh-114312: Fix rare event counter tests on aarch64 (GH-114554)Michael Droettboom2024-01-261-5/+5
|
* Docs: reword dbm.gnu introduction (#114548)Erlend E. Aasland2024-01-261-20/+21
| | | | | | Also... - consistently spell GDBM as GDBM - silence gdbm class refs - improve accuracy of dbm.gdbm.open() spec
* gh-101100: Fix sphinx warnings in `c-api/file.rst` (#114546)Nikita Sobolev2024-01-263-4/+15
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-114250: Fetch metadata for pip and its vendored dependencies from PyPI ↵Seth Michael Larson2024-01-262-50/+837
| | | | (#114450)
* gh-112451: Prohibit subclassing of datetime.timezone. (#114190)Mariusz Felisiak2024-01-263-0/+9
| | | This is consistent with C-extension datetime.timezone.
* GH-73435: Add `pathlib.PurePath.full_match()` (#114350)Barney Gale2024-01-266-72/+155
| | | | | | | | | | | | | | | | In 49f90ba we added support for the recursive wildcard `**` in `pathlib.PurePath.match()`. This should allow arbitrary prefix and suffix matching, like `p.match('foo/**')` or `p.match('**/foo')`, but there's a problem: for relative patterns only, `match()` implicitly inserts a `**` token on the left hand side, causing all patterns to match from the right. As a result, it's impossible to match relative patterns from the left: `PurePath('foo/bar').match('bar/**')` is true! This commit reverts the changes to `match()`, and instead adds a new `full_match()` method that: - Allows empty patterns - Supports the recursive wildcard `**` - Matches the *entire* path when given a relative pattern
* Add CODEOWNERS for dbm (gh-114555)Donghee Na2024-01-251-0/+3
|
* gh-107901: compiler replaces POP_BLOCK instruction by NOPs before ↵Irit Katriel2024-01-251-1/+2
| | | | optimisations (#114530)
* gh-114561: Mark some tests in ``test_wincosoleio`` with ↵Kirill Podoprigora2024-01-251-1/+4
| | | | `requires_resource('console')` decorator (GH-114565)
* gh-114315: Make `threading.Lock` a real class, not a factory function (#114479)Nikita Sobolev2024-01-255-14/+52
| | | | | | | | | | `threading.Lock` is now the underlying class and is constructable rather than the old factory function. This allows for type annotations to refer to it which had no non-ugly way to be expressed prior to this. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-112529: Implement GC for free-threaded builds (#114262)Sam Gross2024-01-2518-22/+1952
| | | | | | | * gh-112529: Implement GC for free-threaded builds This implements a mark and sweep GC for the free-threaded builds of CPython. The implementation relies on mimalloc to find GC tracked objects (i.e., "containers").
* gh-112075: Add try-incref functions from nogil branch for use in dict thread ↵Dino Viehland2024-01-251-0/+136
| | | | | | | | | | | | | | | | | | | | safety (#114512) * Bring in a subset of biased reference counting: https://github.com/colesbury/nogil/commit/b6b12a9a94e The NoGIL branch has functions for attempting to do an incref on an object which may or may not be in flight. This just brings those functions over so that they will be usable from in the dict implementation to get items w/o holding a lock. There's a handful of small simple modifications: Adding inline to the force inline functions to avoid a warning, and switching from _Py_ALWAYS_INLINE to Py_ALWAYS_INLINE as that's available Remove _Py_REF_LOCAL_SHIFT as it doesn't exist yet (and is currently 0 in the 3.12 nogil branch anyway) ob_ref_shared is currently Py_ssize_t and not uint32_t, so use that _PY_LIKELY doesn't exist, so drop it _Py_ThreadLocal becomes _Py_IsOwnedByCurrentThread Add '_PyInterpreterState_GET()' to _Py_IncRefTotal calls. Co-Authored-By: Sam Gross <colesbury@gmail.com>
* gh-111051: Check if file is modifed during debugging in `pdb` (#111052)Tian Gao2024-01-253-0/+103
|
* Doc/library/sys.monitoring.rst: remove contradictory paragraph. (GH-113619)Ned Batchelder2024-01-251-3/+0
|
* gh-77465: Increase test coverage for the numbers module (GH-111738)AN Long2024-01-251-1/+157
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-114265: remove i_loc_propagated, jump threading does not consider line ↵Irit Katriel2024-01-252-42/+49
| | | | numbers anymore (#114535)
* gh-114312: Collect stats for unlikely events (GH-114493)Michael Droettboom2024-01-2511-1/+199
|
* gh-114272: Fix or skip tests that fail due to spaces in paths (GH-114451)Steve Dower2024-01-254-25/+45
|
* gh-100107: Make py.exe launcher ignore app aliases that launch Microsoft ↵Vincent Cunningham2024-01-252-0/+70
| | | | Store (GH-114358)
* gh-108731: Add description of __slots__ to MemberDescriptorType docs (GH-108745)plokmijnuhby2024-01-241-0/+4
|
* Update outdated comment in ``Python/bytecodes.c`` (#114522)Kirill Podoprigora2024-01-241-2/+2
|
* GH-112354: `END_FOR` instruction to only pop one value. (GH-114247)Mark Shannon2024-01-2416-184/+238
| | | | * Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops.
* Docs: mark up the FTP_TLS() docs with param list (#114510)Erlend E. Aasland2024-01-241-10/+46
| | | Also turn sentence about prot_p() into a note.
* gh-104360: remove reference to removed module-level wrap_socket (GH-104361)Thomas Grainger2024-01-241-5/+1
| | | | * remove reference to removed module-level wrap_socket * drive by typo fix
* gh-101100: Fix Sphinx warnings in `c-api/structures.rst` (#113564)Hugo van Kemenade2024-01-242-10/+10
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-101100: Fix sphinx warnings in `concurrent.futures.rst` (#114521)Nikita Sobolev2024-01-242-21/+22
|
* GH-113710: Add a tier 2 peephole optimization pass. (GH-114487)Mark Shannon2024-01-247-6/+66
| | | | | * Convert _LOAD_CONST to inline versions * Remove PEP 523 checks
* gh-101100: Fix sphinx warnings in `asyncio-task.rst` (#114469)Nikita Sobolev2024-01-242-18/+16
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start ↵Serhiy Storchaka2024-01-241-0/+1
| | | | (GH-114249)
* Fix a typo in the contextlib documentation (#114507)Daniel Hollas2024-01-241-1/+1
|
* GH-114456: lower the recursion limit under WASI for debug builds (GH-114457)Brett Cannon2024-01-234-6/+13
| | | Testing under wasmtime 16.0.0 w/ code from https://github.com/python/cpython/issues/114413 is how the value was found.
* gh-112075: Adapt more dict methods to Argument Clinic (#114256)Dino Viehland2024-01-232-81/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move more dict objects to argument clinic * Improve doc strings * More doc string improvements * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Update Objects/dictobject.c Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> --------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>