summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-99108: Import SHA2-384/512 from HACL* (#101707)Jonathan Protzenko2023-02-1416-434/+1259
| | | | | | Replace the builtin hashlib implementations of SHA2-384 and SHA2-512 originally from LibTomCrypt with formally verified, side-channel resistant code from the [HACL*](https://github.com/hacl-star/hacl-star/) project. The builtins remain a fallback only used when OpenSSL does not provide them.
* gh-101857: Allow xattr detection on musl libc (#101858)Sam James2023-02-142-1/+3
| | | | | | | | | | Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-74895: getaddrinfo no longer raises OverflowError (#2435)Radek Smejkal2023-02-145-6/+68
| | | `socket.getaddrinfo()` no longer raises `OverflowError` based on the **port** argument. Error reporting (or not) for its value is left up to the underlying C library `getaddrinfo()` implementation.
* gh-101849: Add upgrade codes for old versions of launcher that ended up with ↵Steve Dower2023-02-133-1/+23
| | | | later version numbers (GH-101877)
* gh-101810: Remove duplicated st_ino calculation (GH-101811)James Lee2023-02-131-2/+0
|
* gh-92547: Purge sqlite3_enable_shared_cache() detection from configure (#101873)Erlend E. Aasland2023-02-132-52/+0
|
* GH-100987: Refactor `_PyInterpreterFrame` a bit, to assist generator ↵Mark Shannon2023-02-131-4/+2
| | | | | improvement. (GH-100988) Refactor _PyInterpreterFrame a bit, to assist generator improvement.
* GH-87849: Simplify stack effect of SEND and specialize it for generators and ↵Mark Shannon2023-02-1315-99/+185
| | | | coroutines. (GH-101788)
* Correct trivial grammar in reset_mock docs (#101861)Steve Kowalik2023-02-131-3/+3
|
* gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)Jean Abou-Samra2023-02-121-9/+11
| | | | | | | | | | pyspecific: Fix i18n for availability directive If the directive has content, the previous code would nest paragraph nodes from that content inside a general paragraph node, which confuses Sphinx and leads it to drop the content when translating. Instead, use a container node for the body. Also use set_source_info so that any warnings have location info.
* gh-89792: Limit test_tools freeze test build parallelism based on the number ↵Gregory P. Smith2023-02-122-6/+16
| | | | | of cores (#101841) unhardcode freeze test build parallelism. base it on the number of cpus, don't use more than max(2, os.cpu_count()/3).
* gh-85984: Utilize new "winsize" functions from termios in pty tests. (#101831)Soumendra Ganguly2023-02-122-69/+28
| | | | | | Utilize new functions termios.tcgetwinsize() and termios.tcsetwinsize in test_pty.py. Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-89792: Prevent test_tools from copying 1000M of "source" in freeze test ↵Gregory P. Smith2023-02-122-1/+16
| | | | | | | | | (#101837) Prevent test_tools from copying 1000M of "source" It doesn't need a git repo, just the checkout. We skip .git metadata, Doc/build, Doc/venv, and `__pycache__` subdirs, that developers often have in their clients to reduce the size of the source tree copy ten-fold. This should significantly reduce IO and presumably time on buildbots during this long test.
* Fix typo in test_fstring.py (#101823)mjoerg2023-02-111-1/+1
|
* GH-101797: allocate `PyExpat_CAPI` capsule on heap (#101798)Kumar Aditya2023-02-111-27/+45
|
* gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call ↵busywhitespace2023-02-101-1/+1
| | | | it a class method (GH-101391)
* Docs: Fix getstatus() -> getcode() typos (#101296)Hugo van Kemenade2023-02-102-2/+2
|
* Docs: use parameter list for sqlite3.Cursor.execute* (#101782)Erlend E. Aasland2023-02-101-12/+33
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101763: Update bundled copy of libffi to 3.4.4 on Windows (GH-101784)Steve Dower2023-02-103-3/+4
|
* gh-101517: make bdb avoid looking up in linecache with lineno=None (#101787)Irit Katriel2023-02-103-3/+11
|
* gh-101759: Update Windows installer to SQLite 3.40.1 (#101762)Erlend E. Aasland2023-02-104-3/+4
|
* gh-101277: Finalise isolating itertools (GH-101305)Erlend E. Aasland2023-02-104-344/+220
| | | | | Add repeat, islice, chain, tee, teedataobject, and batched types to module state. Automerge-Triggered-By: GH:erlend-aasland
* gh-101759: Update macOS installer to SQLite 3.40.1 (#101761)Erlend E. Aasland2023-02-102-3/+4
|
* Fix some typos in asdl_c.py (GH-101757)abel15022023-02-101-2/+2
|
* gh-101747: Fix refleak in new `OrderedDict` repr (GH-101748)Nikita Sobolev2023-02-101-0/+1
|
* gh-101430: Update tracemalloc to handle presize properly. (gh-101745)Dong-hee Na2023-02-093-23/+12
|
* GH-101228: Fix typo in docstring for read method of `_io.TextIOWrapper` ↵Partha P. Mukherjee2023-02-091-3/+3
| | | | class (#101227)
* Fix typo in `test_fstring.py` (#101600)Ikko Eltociear Ashimine2023-02-091-1/+1
|
* gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727)Gregory P. Smith2023-02-099-17/+21
| | | | Fixes CVE-2023-0286 (High) and a couple of Medium security issues. https://www.openssl.org/news/secadv/20230207.txt
* gh-101283: Fix 'versionchanged' for the shell=True fallback on Windows in ↵Oleg Iarygin2023-02-091-5/+5
| | | | 3.12 (GH-101728)
* LibFFI build requires x64 Cygwin, and skip the ARM build (GH-101743)Steve Dower2023-02-091-2/+2
|
* gh-101670: typo fix in PyImport_ExtendInittab() (#101723)Sergey B Kirpichev2023-02-091-1/+1
| | | Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* GH-99293: Document that `Py_TPFLAGS_VALID_VERSION_TAG` shouldn't be used. ↵Mark Shannon2023-02-092-0/+12
| | | | | | | | (#GH-101736) Document that Py_TPFLAGS_VALID_VERSION_TAG shouldn't be used.
* no-issue: Add Dong-hee Na as the cjkcodecs codeowner (gh-101731)Dong-hee Na2023-02-091-0/+2
|
* gh-101678: Merge math_1_to_whatever() and math_1() (#101730)Sergey B Kirpichev2023-02-091-10/+2
| | | | | | `math_1_to_whatever()` is no longer useful, since all existing uses of it convert to `float`. Earlier versions of Python used `math_1_to_whatever` with an integer target; see gh-16991 for the PR where that use was removed.
* gh-101678: refactor the math module to use special functions from c11 ↵Sergey B Kirpichev2023-02-092-184/+8
| | | | | | | (GH-101679) Shouldn't affect users, hence no news. Automerge-Triggered-By: GH:mdickinson
* gh-85984: Remove legacy Lib/pty.py code. (#92365)Soumendra Ganguly2023-02-093-13/+15
| | | | | | | | | | Refactored the implementation of pty.fork to use os.login_tty. A DeprecationWarning is now raised by pty.master_open() and pty.slave_open(). They were undocumented and deprecated long long ago in the docstring in favor of pty.openpty. Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-98831: Use opcode metadata for stack_effect() (#101704)Guido van Rossum2023-02-094-256/+88
| | | | | | | | | | * Write output and metadata in a single run This halves the time to run the cases generator (most of the time goes into parsing the input). * Declare or define opcode metadata based on NEED_OPCODE_TABLES * Use generated metadata for stack_effect() * compile.o depends on opcode_metadata.h * Return -1 from _PyOpcode_num_popped/pushed for unknown opcode
* gh-101283: Version was just released, so should be changed in 3.11.3 (GH-101719)Steve Dower2023-02-081-5/+5
|
* gh-101283: Fix use of unbound variable (GH-101712)Steve Dower2023-02-081-0/+2
|
* gh-101283: Improved fallback logic for subprocess with shell=True on Windows ↵Oleg Iarygin2023-02-083-1/+58
| | | | (GH-101286)
* gh-101277: Port more itertools static types to heap types (#101304)Erlend E. Aasland2023-02-082-327/+200
| | | | Add accumulate, compress, count, filterfalse, pairwise, product, and zip_longest types to module state.
* gh-98831: Modernize CALL and family (#101508)Guido van Rossum2023-02-086-588/+646
| | | Includes a slight improvement to `DECREF_INPUTS()`.
* GH-101696: invalidate type version tag in `_PyStaticType_Dealloc` (#101697)Kumar Aditya2023-02-082-0/+3
|
* gh-100221: Fix creating dirs in `make sharedinstall` (GH-100329)Michał Górny2023-02-082-12/+11
| | | | | Fix creating install directories in `make sharedinstall` if they exist already outside `DESTDIR`. The previous make rules assumed that the directories would be created via a dependency on a rule for `$(DESTSHARED)` that did not fire if the directory did exist outside `$(DESTDIR)`. While technically `$(DESTDIR)` could be prepended to the rule name, moving the rules for creating directories straight into the `sharedinstall` rule seems to fit the common practices better. Since the rule explicitly checks whether the individual directories exist anyway, there seems to be no reason to rely on make determining that implicitly as well.
* gh-101670: typo fix in PyImport_AppendInittab() (GH-101672)Sergey B Kirpichev2023-02-081-1/+1
|
* gh-101196: Make isdir/isfile/exists faster on Windows (GH-101324)Michael Droettboom2023-02-089-34/+624
| | | Co-authored-by: Eryk Sun <eryksun@gmail.com>
* gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension ↵David Hewitt2023-02-082-4/+6
| | | | modules for incompatibility (GH-101615)
* gh-100933: Improve `check_element` helper in `test_xml_etree` (#100934)Nikita Sobolev2023-02-081-23/+4
| | | Items checked by this test are always `str` and `dict` instances.
* GH-101578: Normalize the current exception (GH-101607)Mark Shannon2023-02-0829-171/+476
| | | | | | | | | | * Make sure that the current exception is always normalized. * Remove redundant type and traceback fields for the current exception. * Add new API functions: PyErr_GetRaisedException, PyErr_SetRaisedException * Add new API functions: PyException_GetArgs, PyException_SetArgs