summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-114099: Additions to standard library to support iOS (GH-117052)Russell Keith-Magee2024-03-2822-48/+474
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Ned Deily <nad@python.org>
* gh-89739: gh-77140: Support zip64 in zipimport (GH-94146)Tim Hatch2024-03-286-39/+154
| | | | | | | | | | | | | | | * Reads zip64 files as produced by the zipfile module * Include tests (somewhat slow, however, because of the need to create "large" zips) * About the same amount of strictness reading invalid zip files as zipfile has * Still works on files with prepended data (like pex) There are a lot more test cases at https://github.com/thatch/zipimport64/ that give me confidence that this works for real-world files. Fixes #89739 and #77140. --------- Co-authored-by: Itamar Ostricher <itamarost@gmail.com> Reviewed-by: Gregory P. Smith <greg@krypto.org>
* Revert "gh-116886: Temporarily disable CIfuzz (memory) (GH-117018)" (GH-117289)Illia Volochii2024-03-281-2/+1
| | | | | | | This reverts commit 1ab0d0b1167d78bf19661a3b5e533a2b68a57604. This reverts #117018. I expect the issue to be fixed based on https://github.com/google/oss-fuzz/pull/11708#issuecomment-2006442396 and https://github.com/actions/runner-images/issues/9491.
* gh-108277: Make test_os tolerate 10 ms diff for timerfd on Android emulators ↵Malcolm Smith2024-03-271-13/+20
| | | | (#117223)
* gh-113317: Change how Argument Clinic lists converters (#116853)Victor Stinner2024-03-272-32/+55
| | | | | | | | | | * Add a new create_parser_namespace() function for PythonParser to pass objects to executed code. * In run_clinic(), list converters using 'converters' and 'return_converters' dictionarties. * test_clinic: add 'object()' return converter. * Use also create_parser_namespace() in eval_ast_expr(). Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-99108: Update and check HACL* version information (GH-117295)Seth Michael Larson2024-03-272-4/+18
| | | * Update and check HACL* version information
* gh-117288: Allocate fewer label IDs in _PyCfg_ToInstructionSequence (#117290)Irit Katriel2024-03-274-6/+37
|
* gh-71042: Add `platform.android_ver` (#116674)Malcolm Smith2024-03-279-16/+164
|
* gh-117225: doctest: only print "and X failed" when non-zero, don't pluralise ↵Hugo van Kemenade2024-03-274-48/+69
| | | | "1 items" (#117228)
* Add statistics recipe for sampling from an estimated probability density ↵Raymond Hettinger2024-03-271-0/+58
| | | | distribution (#117221)
* gh-113548: Allow CLI arguments to `pdb -m` (#113557)Tian Gao2024-03-273-9/+25
|
* Change links on the index page (#117230)Adorilson Bezerra2024-03-261-2/+2
|
* gh-104242: Enable test_is_char_device_true in pathlib test on all platform ↵AN Long2024-03-261-5/+5
| | | | (GH-116983)
* gh-115775: Compiler adds __static_attributes__ field to classes (#115913)Irit Katriel2024-03-2613-11/+136
|
* gh-97901 add missing text/rtf to mimetypes (GH-97902)Antonio2024-03-263-0/+3
| | | | Co-authored-by: Noam Cohen <noam@noam.me>
* gh-115538: Use isolate mode when running venv ↵AN Long2024-03-261-1/+1
| | | | | test_multiprocessing_recursion() (#117116) Co-authored-by: Victor Stinner <vstinner@python.org>
* pre-commit: add `check-case-conflict` and `check-merge-conflict` (#117259)Hugo van Kemenade2024-03-261-1/+3
|
* gh-98966: Handle stdout=subprocess.STDOUT (GH-98967)Paulo Neves2024-03-263-0/+12
| | | | | | | Explicitly handle the case where stdout=STDOUT as otherwise the existing error handling gets confused and reports hard to understand errors. Signed-off-by: Paulo Neves <ptsneves@gmail.com>
* gh-66543: Fix mimetype.guess_type() (GH-117217)Serhiy Storchaka2024-03-264-9/+45
| | | | | | | | | | Fix parsing of the following corner cases: * URLs with only a host name * URLs containing a fragment * URLs containing a query * filenames with only a UNC sharepoint on Windows Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* GH-117108: Set the "old space bit" to "visited" for all young objects (#117213)Mark Shannon2024-03-265-43/+56
| | | | Change old space bit of young objects from 0 to gcstate->visited_space. This ensures that any object created *and* collected during cycle GC has the bit set correctly.
* GH-116422: Tier2 hot/cold splitting (GH-116813)Mark Shannon2024-03-2621-1001/+1660
| | | | | Splits the "cold" path, deopts and exits, from the "hot" path, reducing the size of most jitted instructions, at the cost of slower exits.
* bpo-24612: Improve syntax error for 'not' after an operator (GH-28170)Pablo Galindo Salgado2024-03-264-594/+1022
| | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* gh-83845: Add tests for operator module (#115883)Hugo van Kemenade2024-03-261-0/+47
| | | | Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
* gh-115627: Fix PySSL_SetError handling SSL_ERROR_SYSCALL (GH-115628)yevgeny hong2024-03-263-43/+35
| | | | | | | | | | | | | | | | | Python 3.10 changed from using SSL_write() and SSL_read() to SSL_write_ex() and SSL_read_ex(), but did not update handling of the return value. Change error handling so that the return value is not examined. OSError (not EOF) is now returned when retval is 0. According to *recent* man pages of all functions for which we call PySSL_SetError, (in OpenSSL 3.0 and 1.1.1), their return value should be used to determine whether an error happened (i.e. if PySSL_SetError should be called), but not what kind of error happened (so, PySSL_SetError shouldn't need retval). To get the error, we need to use SSL_get_error. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-83434: Disable XML in regrtest when -R option is used (#117232)Victor Stinner2024-03-263-1/+34
|
* gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203)Sebastian Pipping2024-03-263-9/+9
| | | | | | | | | | | This fixes XML unittest fallout from the https://github.com/python/cpython/issues/115398 security fix. When configured using `--with-system-expat` on systems with older pre 2.6.0 versions of libexpat, our unittests were failing. * sax|etree: Simplify Expat version guard where simplifiable Idea by Matěj Cepl * sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0 This *does not fix* the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix. (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package)
* gh-99108: Refresh HACL*; update modules accordingly; fix namespacing (GH-117237)Jonathan Protzenko2024-03-2623-1845/+1605
| | | Pulls in a new update from https://github.com/hacl-star/hacl-star and fixes our C "namespacing" done by `Modules/_hacl/refresh.sh`.
* gh-109870: Dataclasses: batch up exec calls (gh-110851)Eric V. Smith2024-03-252-144/+185
| | | Instead of calling `exec()` once for each function added to a dataclass, only call `exec()` once per dataclass. This can lead to speed improvements of up to 20%.
* Sync main docs and docstring for median_grouped(). (gh-117214)Raymond Hettinger2024-03-251-38/+39
|
* gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)Nice Zombies2024-03-255-57/+39
|
* Add information about negative indexes to sequence datamodel doc (#110903)Adorilson Bezerra2024-03-251-3/+6
| | | Co-authored by Terry Jan Reedy
* A few minor tweaks to get stats working and compiling cleanly. (#117219)Mark Shannon2024-03-253-8/+5
| | | | Fixes a compilation error when configured with `--enable-pystats`, an array size issue, and an unused variable.
* gh-116936: Add PyType_GetModuleByDef() to the limited C API (#116937)Victor Stinner2024-03-258-1/+14
|
* gh-87193: Support bytes objects with refcount > 1 in _PyBytes_Resize() ↵Serhiy Storchaka2024-03-2511-30/+123
| | | | | (GH-117160) Create a new bytes object and destroy the old one if it has refcount > 1.
* gh-112948: Make pdb completion similar to repl completion (#112950)Tian Gao2024-03-253-15/+80
|
* Minor markup and grammar fixes in the statistics docs (gh-117216)Raymond Hettinger2024-03-251-3/+3
|
* gh-117176: Fix compiler warning in Python/optimizer_bytecodes.c (GH-117199)Kirill Podoprigora2024-03-242-2/+2
|
* gh-112571: Move fish venv activation script into the common folder (GH-117169)Totally a booplicate2024-03-241-0/+0
| | | | | | | pythongh-112571: allow using fish venv activation script on windows The fish shell can be used on windows under cygwin or msys2. This change moves the script to the common folder so the venv module will install it on both posix and nt systems (like the bash script).
* gh-117194: Properly format 'base64' header in What's New (#117198)Terry Jan Reedy2024-03-241-1/+1
| | | It needs 6, not 3, '-'s.
* GH-115986 Docs: promote pprint.pp usage as a default (#116614)Kerim Kabirov2024-03-241-15/+18
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-101760: Improve the imaplib.IMAP4 example (#101764)LilKS2024-03-241-1/+1
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Add cumulative option for the new statistics.kde() function. (#117033)Raymond Hettinger2024-03-243-21/+75
|
* gh-112383: teach dis how to interpret ENTER_EXECUTOR (#117171)Irit Katriel2024-03-237-50/+120
|
* gh-117180: Complete call sequence when trace stack overflow (GH-117184)Ken Jin2024-03-232-0/+27
| | | | | | | --------- Co-authored-by: Peter Lazorchak <lazorchakp@gmail.com> Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() (#32011)Erik Soma2024-03-235-12/+174
|
* gh-117008: Fix functools test_recursive_pickle() (#117009)Victor Stinner2024-03-232-2/+6
| | | | | | | Use support.infinite_recursion() in test_recursive_pickle() of test_functools to prevent a stack overflow on "ARM64 Windows Non-Debug" buildbot. Lower Py_C_RECURSION_LIMIT to 1,000 frames on Windows ARM64.
* GH-106747: Document another difference between `glob` and `pathlib`. (#116518)Barney Gale2024-03-221-0/+4
| | | | | Document that `path.glob()` might return *path*, whereas `glob.glob(root_dir=path)` will never return an empty string corresponding to *path*.
* GH-117108: Change the size of the GC increment to about 1% of the total heap ↵Mark Shannon2024-03-226-28/+47
| | | | size. (GH-117120)
* gh-113024: C API: Add PyObject_GenericHash() function (GH-113025)Serhiy Storchaka2024-03-2214-13/+51
|
* gh-117084: Fix ZIP file extraction for directory entry names with ↵Serhiy Storchaka2024-03-224-1/+27
| | | | backslashes on Windows (GH-117129)