summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths ↵Barney Gale2024-01-139-33/+51
| | | | | | | | | | | | | (#113829) On Windows, `os.path.isabs()` now returns `False` when given a path that starts with exactly one (back)slash. This is more compatible with other functions in `os.path`, and with Microsoft's own documentation. Also adjust `pathlib.PureWindowsPath.is_absolute()` to call `ntpath.isabs()`, which corrects its handling of partial UNC/device paths like `//foo`. Co-authored-by: Jon Foster <jon@jon-foster.co.uk>
* GH-111798: skip `test_super_deep()` from `test_call` under pydebug builds on ↵Brett Cannon2024-01-132-6/+6
| | | | WASI (GH-114010)
* gh-89159: Document missing TarInfo members (#91564)Stanley2024-01-121-0/+30
|
* GH-111801: set a lower recursion limit for `test_infintely_many_bases()` in ↵Brett Cannon2024-01-122-1/+4
| | | | `test_isinstance` (#113997)
* datamodel: Fix a typo in ``object.__init_subclass__`` (#111599)InSync2024-01-121-1/+1
|
* Link to the glossary for "magic methods" in ``MagicMock`` (#111292)Pierre Equoy2024-01-121-4/+4
| | | | | The MagicMock documentation mentions magic methods several times without actually pointing to the term in the glossary. This can be helpful for people to fully understand what those magic methods are.
* Tutorial: Clarify 'nonzero exit status' in the appendix (#112039)Andrew Zipperer2024-01-121-1/+1
|
* Fix a grammatical error in `pycore_pymem.h` (#112993)Joseph Pearson2024-01-121-1/+1
|
* gh-101100: Fix Sphinx Lint warnings in `Misc/` (#113946)Hugo van Kemenade2024-01-1243-332/+332
| | | Fix Sphinx Lint warnings in Misc/
* gh-95649: Document that asyncio contains uvloop code (#107536)Alois Klink2024-01-127-0/+49
| | | | | | | | Some of the asyncio SSL changes in GH-31275 [1] were taken from v0.16.0 of the uvloop project [2]. In order to comply with the MIT license, we need to just need to document the copyright information. [1]: https://github.com/python/cpython/pull/31275 [2]: https://github.com/MagicStack/uvloop/tree/v0.16.0
* GH-111802: set a low recursion limit for `test_bad_getattr()` in ↵Brett Cannon2024-01-122-1/+4
| | | | `test.pickletester` (GH-113996)
* gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` ↵Gregory P. Smith2024-01-124-11/+40
| | | | | | | | | | | (#113969) Make zipfile.ZipInfo.compress_level public. A property is used to retain the behavior of the ._compresslevel. People constructing zipfile.ZipInfo instances to pass into existing APIs to control per-file compression levels already treat this as public, there was never a reason for it not to be. I used the more modern name compress_level instead of compresslevel as the keyword argument on other ZipFile APIs is called to be consistent with compress_type and a general long term preference of not runningwordstogether without a separator in names.
* gh-113710: Add types to the interpreter DSL (#113711)Ken Jin2024-01-1214-138/+227
| | | | Co-authored-by: Jules <57632293+JuliaPoo@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-113868: Add a number of MAP_* flags from macOS to module mmap (#113869)Ronald Oussoren2024-01-123-6/+63
| | | | | The new flags were extracted from the macOS 14.2 SDK. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107901: duplicate blocks with no lineno that have an eval break and ↵Irit Katriel2024-01-123-10/+38
| | | | multiple predecessors (#113950)
* gh-113980: Fix resource warnings in test_asyncgen (GH-113984)Serhiy Storchaka2024-01-121-2/+19
|
* gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)Steve Dower2024-01-123-6/+72
|
* Docs: Amend codeobject.co_lines docs; end number is exclusive (#113970)Ned Batchelder2024-01-121-3/+3
| | | The end number should be exclusive, not inclusive.
* GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954)Brandt Bucher2024-01-1212-67/+35
|
* gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835)Pablo Galindo Salgado2024-01-121-1/+1
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-108364: In sqlite3, disable foreign keys before dumping SQL schema (#113957)Mariusz Felisiak2024-01-123-3/+18
| | | | | | | sqlite3.Connection.iterdump now ensures that foreign key support is disabled before dumping the database schema, if there is any foreign key violation. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-113858: Cut down ccache size (GH-113945)Petr Viktorin2024-01-122-3/+4
| | | | | | | | | | Cut down ccache size - Only save the ccache in the main reusable builds, not on builds that don't use special build options: - Generated files check - OpenSSL tests - Hypothesis tests - Halve the max cache size, to 200M
* gh-113937 Fix failures in type cache tests due to re-running (GH-113953)Peter Lazorchak2024-01-121-14/+14
|
* gh-113903: Fix an IDLE configdialog test (#113973)Terry Jan Reedy2024-01-123-16/+16
| | | | | | | | | | | test_configdialog.HighPageTest.test_highlight_target_text_mouse fails if a line of the Highlight tab text sample is not visible. If so, bbox() in click_char() returns None and the unpacking iteration fails. This occurred on a Devuan Linux system. Fix by moving the 'see character' call inside click_char, just before the bbox call. Also, reduce the click_char calls to just one per tag name and replace the other nested function with a dict comprehension.
* gh-111968: Explicit handling for finalized freelist (gh-113929)Donghee Na2024-01-122-19/+7
|
* Improve kde graph with better caption and number formatting (gh-113967)Raymond Hettinger2024-01-121-0/+0
|
* GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (#107679)Adam Turner2024-01-111-92/+145
|
* gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)Zackery Spytz2024-01-115-25/+23
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Update KDE recipe to match the standard use of the h parameter (gh-#113958)Raymond Hettinger2024-01-111-7/+5
|
* gh-111968: Use per-thread freelists for tuple in free-threading (gh-113921)Donghee Na2024-01-118-70/+45
|
* gh-113845: Fix a compiler warning in Python/suggestions.c (GH-113949)Serhiy Storchaka2024-01-111-2/+0
|
* GH-113853: Guarantee forward progress in executors (GH-113854)Mark Shannon2024-01-115-74/+121
|
* gh-107901: jump leaving an exception handler doesn't need an eval break ↵Irit Katriel2024-01-113-3/+4
| | | | check (#113943)
* gh-91960: Remove Cirrus CI configuration (#113938)Victor Stinner2024-01-111-29/+0
| | | | | Remove .cirrus.yml which was already disabled by being renamed to .cirrus-DISABLED.yml. In total, Cirrus CI only run for less than one month.
* gh-113932: assert ``SyntaxWarning`` in test_compile.TestSpecifics.test_… ↵Kirill Podoprigora2024-01-111-1/+2
| | | | (#113933)
* gh-112419: Document removal of sys.meta_path's 'find_module' fallback (#112421)AN Long2024-01-111-4/+7
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-112640: Add `kwdefaults` parameter to `types.FunctionType.__new__` (#112641)Nikita Sobolev2024-01-118-13/+76
|
* gh-89811: Check for valid tp_version_tag in specializer (GH-113558)Peter Lazorchak2024-01-114-3/+243
|
* gh-111968: Unify naming scheme for freelist (gh-113919)Donghee Na2024-01-102-3/+3
|
* gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (#113897)Kirill Podoprigora2024-01-101-2/+2
| | | | | Fix DeprecationWarning in test___ne__(). Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-87868: Skip `test_one_environment_variable` in `test_subprocess` when the ↵AN Long2024-01-101-3/+12
| | | | | | | | | | | platform or build cannot do that (#113867) * improve the assert for test_one_environment_variable * skip some test in test_subprocess when python is configured with shared * also skip the test if AddressSanitizer is enabled --------- Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* gh-77046: os.pipe() sets _O_NOINHERIT flag on fds (#113817)Victor Stinner2024-01-105-6/+68
| | | | | | | | On Windows, set _O_NOINHERIT flag on file descriptors created by os.pipe() and io.WindowsConsoleIO. Add test_pipe_spawnl() to test_os. Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* gh-112302: Point core developers to SBOM devguide on errors (#113490)Seth Michael Larson2024-01-101-9/+44
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-113753: Clear finalized bit when putting PyAsyncGenASend back into free ↵Sam Gross2024-01-104-0/+16
| | | | list (#113754)
* gh-113625: Align object addresses in the Descriptor HowTo Guide (#113894)Raymond Hettinger2024-01-101-1/+1
|
* Add @requires_zlib() decorator for gh-109858 tests (GH-113918)Serhiy Storchaka2024-01-101-0/+2
|
* gh-111968: Use per-thread freelists for float in free-threading (gh-113886)Donghee Na2024-01-109-59/+43
|
* GH-113860: All executors are now defined in terms of micro ops. Convert ↵Mark Shannon2024-01-109-139/+125
| | | | counter executor to use uops. (GH-113864)
* gh-111139: Optimize math.gcd(int, int) (#113887)Victor Stinner2024-01-101-5/+9
| | | | | | | | | | | | | Add a fast-path for the common case. Benchmark: python -m pyperf timeit \ -s 'import math; gcd=math.gcd; x=2*3; y=3*5' \ 'gcd(x,y)' Result: 1.07x faster (-3.4 ns) Mean +- std dev: 52.6 ns +- 4.0 ns -> 49.2 ns +- 0.4 ns: 1.07x faster
* gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016)Serhiy Storchaka2024-01-103-0/+73
| | | | | Raise BadZipFile when try to read an entry that overlaps with other entry or central directory.