summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-108654: restore comprehension locals before handling exception (#108659)Carl Meyer2023-08-301-0/+2
| | | Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* gh-108520: Fix bad fork detection in nested multiprocessing use case (#108568)albanD2023-08-301-0/+3
| | | | | | | | gh-107275 introduced a regression where a SemLock would fail being passed along nested child processes, as the `is_fork_ctx` attribute would be left missing after the first deserialization. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* gh-108590: Revert gh-108657 (commit 400a1cebc) (#108686)Erlend E. Aasland2023-08-301-1/+0
| | | Reverted per Serhiy's request.
* gh-108494: Argument Clinic: Document how to generate code that uses the ↵Victor Stinner2023-08-301-1/+2
| | | | | | limited C API (#108584) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-108590: Fix sqlite3.iterdump for invalid Unicode in TEXT columns (#108657)Corvin2023-08-301-0/+1
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-108278: Deprecate passing the first param of sqlite3.Connection callback ↵Erlend E. Aasland2023-08-291-0/+10
| | | | | | | | | | | | APIs by keyword (#108632) Deprecate passing the callback callable by keyword for the following sqlite3.Connection APIs: - set_authorizer(authorizer_callback) - set_progress_handler(progress_handler, ...) - set_trace_callback(trace_callback) The affected parameters will become positional-only in Python 3.15.
* gh-108488: Initialize JUMP_BACKWARD cache to 0, not 17 (#108591)Guido van Rossum2023-08-291-0/+1
| | | This mis-initialization caused the executor optimization to kick in sooner than intended. It also set the lower 4 bits of the counter to `1` -- those bits are supposed to be reserved (the actual counter is in the upper 12 bits).
* GH-106176, GH-104702: Fix reference leak when importing across multiple ↵Brett Cannon2023-08-291-0/+4
| | | | threads (#108497)
* gh-106670: Allow Pdb to move between chained exceptions (#106676)Matthias Bussonnier2023-08-281-0/+1
|
* gh-108487: Move assert(self != NULL) down beyond DEOPT_IF() (#108510)Guido van Rossum2023-08-281-0/+1
|
* gh-108278: Deprecate passing the three first params as keyword args for ↵Erlend E. Aasland2023-08-281-0/+9
| | | | | | | | | | | sqlite3 UDF creation APIs (#108281) Deprecate passing name, number of arguments, and the callable as keyword arguments, for the following sqlite3.Connection APIs: - create_function(name, nargs, callable, ...) - create_aggregate(name, nargs, callable) The affected parameters will become positional-only in Python 3.15.
* gh-64662: Fix NEWS entry and remove What's New entry (#108565)Erlend E. Aasland2023-08-281-1/+1
|
* gh-64662: Add virtual table support to sqlite3.Connection.iterdump (#108340)Erlend E. Aasland2023-08-271-0/+2
| | | Co-authored-by: Aviv Palivoda <palaviv@gmail.com>
* gh-108542: Fix incorrect module name in NEWS entry for gh-105475 (#108543)Ori Avtalion2023-08-271-1/+1
|
* gh-108322: Optimize statistics.NormalDist.samples() (gh-108324)Raymond Hettinger2023-08-271-0/+2
|
* gh-105052:update timeit function's description (#105060)R2023-08-271-0/+1
| | | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-108295: Fix crashes with TypeVar weakrefs (#108517)Jelle Zijlstra2023-08-271-0/+1
|
* gh-107913: Fix possible losses of OSError error codes (GH-107930)Serhiy Storchaka2023-08-261-0/+3
| | | | | | Functions like PyErr_SetFromErrno() and SetFromWindowsErr() should be called immediately after using the C API which sets errno or the Windows error code.
* gh-107406: Add better `struct.Struct` repr (#107407)denballakh2023-08-261-0/+2
|
* gh-108494: Argument Clinic partial supports of Limited C API (#108495)Victor Stinner2023-08-251-0/+2
| | | | | | | | | | Argument Clinic now has a partial support of the Limited API: * Add --limited option to clinic.c. * Add '_testclinic_limited' extension which is built with the limited C API version 3.13. * For now, hardcode in clinic.py that "_testclinic_limited.c" targets the limited C API.
* GH-106581: Fix instrumentation in tier 2 (GH-108493)Brandt Bucher2023-08-251-0/+2
|
* gh-107932: Fix dis module for bytecode that does not have an associated ↵Corvin2023-08-252-0/+2
| | | | source line (GH-107988)
* gh-103384: Generalize the regex pattern `BaseConfigurator.INDEX_PATTERN` to ↵Peeyush Aggarwal2023-08-251-0/+1
| | | | | | | allow spaces and non-alphanumeric characters in keys. (GH-103391) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-108444: Add PyLong_AsInt() public function (#108445)Victor Stinner2023-08-242-0/+6
| | | | | | * Rename _PyLong_AsInt() to PyLong_AsInt(). * Add documentation. * Add test. * For now, keep _PyLong_AsInt() as an alias to PyLong_AsInt().
* gh-108447: Detect platform triplets for x86_64 GNU/Hurd (#108045)Samuel Thibault2023-08-242-0/+7
|
* gh-108388: Convert test_concurrent_futures to package (#108401)Victor Stinner2023-08-241-0/+2
| | | Convert test_concurrent_futures to a package of sub-tests.
* gh-108314: Add PyDict_ContainsString() function (#108323)Victor Stinner2023-08-241-0/+4
|
* gh-95855: Refactor platform triplet detection code, add detection for MIPS ↵Jeffery To2023-08-242-0/+257
| | | | | | | | | | | | | | | | | soft float and musl libc (#107221) - Move platform triplet detection code into Misc/platform_triplet.c - Refactor MIPS detection, use defined(__mips64) to detect MIPS64 - Compute libc values in separate section - Add detection for MIPS soft float - Add detection for musl musl supports SPE with its soft-float ABI: https://git.musl-libc.org/cgit/musl/commit/?id=7be59733d71ada3a32a98622507399253f1d5e48 Original patch by Christian Heimes. Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-108111: Flush gzip write buffer before seeking, fixing bad writes (#108341)Chris Markiewicz2023-08-242-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-108388: Split test_multiprocessing_spawn (#108396)Victor Stinner2023-08-241-0/+4
| | | | | | Split test_multiprocessing_fork, test_multiprocessing_forkserver and test_multiprocessing_spawn into test packages. Each package is made of 4 sub-tests: processes, threads, manager and misc. It allows running more tests in parallel and so reduce the total test duration.
* gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process ↵albanD2023-08-231-0/+1
| | | | | | | | | | | | before serializing it (#107275) Ensure multiprocessing SemLock is valid for spawn Process before serializing it. Creating a multiprocessing SemLock with a fork context, and then trying to pass it to a spawn-created Process, would segfault if not detected early. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* gh-107811: tarfile: treat overflow in UID/GID as failure to set it (#108369)Petr Viktorin2023-08-231-0/+3
|
* gh-105481: remove regen-opcode. Generated _PyOpcode_Caches in regen-cases. ↵Irit Katriel2023-08-231-0/+2
| | | | (#108367)
* gh-107298: Fix a few more refs in the C API docs (GH-108361)Serhiy Storchaka2023-08-233-4/+4
| | | gh-107298: Fix few more refs in the C API docs
* gh-50002: xml.dom.minidom now preserves whitespaces in attributes (GH-107947)Serhiy Storchaka2023-08-232-0/+2
| | | | Also double quotes (") are now only quoted in attributes.
* gh-108294: Add time.sleep audit event (GH-108298)Petr Viktorin2023-08-231-0/+1
|
* gh-105776: Fix test_cppext when CC contains -std=c11 option (#108343)Victor Stinner2023-08-231-0/+2
| | | | Fix test_cppext when the C compiler command has the "-std=c11" option. Remove "-std=" options from the compiler command.
* gh-108310: Fix CVE-2023-40217: Check for & avoid the ssl pre-close flaw ↵Łukasz Langa2023-08-221-0/+7
| | | | | | | | | | | | | | | | (#108315) Instances of `ssl.SSLSocket` were vulnerable to a bypass of the TLS handshake and included protections (like certificate verification) and treating sent unencrypted data as if it were post-handshake TLS encrypted data. The vulnerability is caused when a socket is connected, data is sent by the malicious peer and stored in a buffer, and then the malicious peer closes the socket within a small timing window before the other peers’ TLS handshake can begin. After this sequence of events the closed socket will not immediately attempt a TLS handshake due to not being connected but will also allow the buffered data to be read as if a successful TLS handshake had occurred. Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258)Serhiy Storchaka2023-08-226-18/+18
|
* gh-105539: Emit ResourceWarning if sqlite3 database is not closed explicitly ↵Erlend E. Aasland2023-08-221-0/+3
| | | | (#108015)
* gh-106242: Make ntpath.realpath errors consistent with abspath when there ↵Steve Dower2023-08-221-0/+4
| | | | | | | | | | | | | are embedded nulls (GH-108248) * gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls * Update 2023-08-22-00-36-57.gh-issue-106242.q24ITw.rst mention Windows and the former incorrect ValueError. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop ↵Irit Katriel2023-08-211-0/+1
| | | | (#108242)
* gh-107298: Fix references to deprecated and removed PyUnicode C API (GH-108077)Serhiy Storchaka2023-08-211-3/+3
|
* gh-108113: Make it possible to create an optimized AST (#108154)Irit Katriel2023-08-211-0/+8
|
* Run sphinx-lint on Misc/NEWS.d/next/ (#108212)Hugo van Kemenade2023-08-2113-17/+17
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485)balmeida-nokia2023-08-211-0/+1
| | | | | | | | | | | In the stack call of: _init_read_gz() ``` _read, tarfile.py:548 read, tarfile.py:526 _init_read_gz, tarfile.py:491 ``` a try;except exists that uses `self.exception`, so it needs to be set before calling _init_read_gz().
* gh-107916: Save the error code before decoding the filename in ↵Serhiy Storchaka2023-08-211-0/+4
| | | | PyErr_SetFromErrnoWithFilename() etc (GH-107929)
* gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)Petr Viktorin2023-08-211-0/+3
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
* gh-105736: Sync pure python version of OrderedDict with the C version (#108098)Raymond Hettinger2023-08-211-0/+3
|
* gh-107526: Revert "gh-100357: Convert several functions in bltinsmodule to ↵Nikita Sobolev2023-08-211-0/+2
| | | | AC" (#107542)