summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43428: Sync with importlib_metadata 3.7. (GH-24782)Jason R. Coombs2021-03-138-43/+343
| | | | | | | * bpo-43428: Sync with importlib_metadata 3.7.2 (67234b6) * Add blurb * Reformat blurb to create separate paragraphs for each change included.
* bpo-43444: Move sqlite3 MODULE_NAME from setup.py to module.h (GH-24801)Erlend Egeberg Aasland2021-03-135-10/+3
|
* bpo-43441: Fix _PyType_ClearCache() for subinterpreters (GH-24822)junyixie2021-03-131-5/+10
| | | | | _PyType_ClearCache() now only resets next_version_tag in the main interpreter. Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40521: Make dtoa bigint free list per-interpreter (GH-24821)junyixie2021-03-133-17/+39
|
* Update link to Django's Context class. (#24805)Mariusz Felisiak2021-03-132-2/+2
| | | | * Update link to Django's Context class. * Update link to get-pip.py.
* Update client.py (GH-24827)Géry Ogam2021-03-131-3/+0
|
* bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118)Pandu E POLUAN2021-03-123-3/+65
| | | | | | * Fix auth_login logic (bpo-27820) * Also fix a longstanding bug in the SimSMTPChannel.found_terminator() method that causes inability to test SMTP AUTH with initial_response_ok=False.
* bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)Antoine Pitrou2021-03-1111-64/+209
| | | | Also introduce a new C API ``PyErr_SetInterruptEx(int signum)``.
* bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)Chris Griffith2021-03-112-4/+4
| | | | | Check to make sure stdout and stderr are not empty before selecting an item from them in Windows subprocess._communicate. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-43311: Create GIL autoTSSkey ealier (GH-24819)Victor Stinner2021-03-103-7/+28
| | | | | | At Python startup, call _PyGILState_Init() before PyInterpreterState_New() which calls _PyThreadState_GET(). When Python is built using --with-experimental-isolated-subinterpreters, _PyThreadState_GET() uses autoTSSkey.
* bpo-43287: Use PEP 590 vectorcall to speed up filter() (GH-24611)Dong-hee Na2021-03-102-2/+37
|
* Fix error in documentation for ast.match_case (GH-24807)Adrian Freund2021-03-101-1/+1
|
* bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815)Victor Stinner2021-03-101-3/+13
| | | | | | | Fix a race condition of test_stress_modifying_handlers() of test_signal: only raise signals while we are in the catch_unraisable_exception() context manager. Moreover, don't check if we received at least one signal if at least one signal got ignored.
* bpo-43456: Remove _xxsubinterpreters from sys.stdlib_module_names (GH-24814)Victor Stinner2021-03-102-1/+1
|
* Fix typo in compile.c (GH-24812)Ikko Ashimine2021-03-101-1/+1
| | | guranteed -> guaranteed
* bpo-43445: Add frozen modules to sys.stdlib_module_names (GH-24798)Victor Stinner2021-03-105-4/+53
| | | | | | Add frozen modules to sys.stdlib_module_names. For example, add "_frozen_importlib" and "_frozen_importlib_external" names. Add "list_frozen" command to Programs/_testembed.
* bpo-43439: Add audit hooks for gc functions (GH-24794)Pablo Galindo2021-03-106-0/+56
|
* bpo-43446: Fix markup in sqlite3 footnote (GH-24806)Kamil Turek2021-03-091-1/+1
|
* bpo-43440 : Enable SQLite R*Tree support for windows builds (GH-24797)Erlend Egeberg Aasland2021-03-092-1/+3
|
* bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)Victor Stinner2021-03-091-1/+1
|
* bpo-43415: Fix typo on dataclasses.rst (#24789)Guilherme Martins Crocetti2021-03-081-1/+1
|
* bpo-37146: Move _PyEval_DeactivateOpCache() to the internal C API (GH-24786)Victor Stinner2021-03-082-2/+2
| | | Don't export the symbol anymore.
* bpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159)Desmond Cheong2021-03-085-939/+1020
| | | Added an invalidate_caches() method to the zipimport.zipimporter class based on the implementation of importlib.FileFinder.invalidate_caches(). This was done by adding a get_files() method and an _archive_mtime attribute to zipimport.zipimporter to check for updates or cache invalidation whenever the cache of files and toc entry information in the zipimporter is accessed.
* bpo-43353: Document that logging.getLevelName() accepts string ↵Mariusz Felisiak2021-03-082-10/+23
| | | | | | | representation of logging level. (GH-24693) [bpo-43353]() Automerge-Triggered-By: GH:vsajip
* bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)Gregory P. Smith2021-03-083-10/+32
| | | | | | We now buffer the CONNECT request + tunnel HTTP headers into a single send call. This prevents the OS from generating multiple network packets for connection setup when not necessary, improving efficiency.
* bpo-43319: Fixed the tutorial on venv about standard library (GH-24740)cmhzc2021-03-071-1/+1
| | | | | | | | | In the [official tutorial on virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments) > This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, **the standard library**, and various supporting files. According to the actual behavior of `venv` and [PEP 405](https://www.python.org/dev/peps/pep-0405/#id15)'s description about virtual environment, no standard library file is included in the virtual environment's directory. Automerge-Triggered-By: GH:vsajip
* bpo-43405: Fix DeprecationWarnings in test_unicode (GH-24754)Zackery Spytz2021-03-071-20/+24
| | | | DeprecationWarnings were being raised in the test_encode_decimal() and test_transform_decimal() methods after 91a639a0949.
* bpo-43372: Use _freeze_importlib for regen-frozen. (GH-24759)Neil Schemenauer2021-03-065-23/+30
| | | | | | | This approach ensures the code matches the interpreter version. Previously, PYTHON_FOR_REGEN was used to generate the code, which might be wrong. The marshal format for code objects has changed with bpo-42246, commit 877df851. Update the code and the expected code sizes in ctypes test_frozentable.
* Put contextvars docs into the concurrency category (GH-24760)Brett Cannon2021-03-062-1/+1
|
* bpo-43407: Clarify comparisons of time.monotonic() et al results (GH-24757)Alex Willmer2021-03-062-4/+8
| | | | Previous wording implied that only the result of call N and N+1 could be meaningfully compared, whereas comparing call N and N+M is fine.
* Make tracing info (bounds, and previous instruction offset) a bit more ↵Mark Shannon2021-03-051-52/+72
| | | | robust. (GH-24726)
* bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to ↵Antoine Pitrou2021-03-053-1/+77
| | | | | | execute a non-Python signal handler (GH-24756) We can receive signals (at the C level, in `trip_signal()` in signalmodule.c) while `signal.signal` is being called to modify the corresponding handler. Later when `PyErr_CheckSignals()` is called to handle the given signal, the handler may be a non-callable object and would raise a cryptic asynchronous exception.
* bpo-43390: Set SA_ONSTACK in PyOS_setsig (GH-24730)Gregory P. Smith2021-03-052-1/+10
| | | | | | | | This is friendlier to other in-process code that an extension module or embedding use could pull in such as CGo where tiny stacks are the norm and sigaltstack() has been used to provide for signal handlers. Without this, signals received by a process using tiny stacks may lead to stack overflow crashes.
* bpo-43400: Remove "easy to use" from mock docs (GH-24752)Eddie Peters2021-03-041-1/+1
|
* bpo-42129: Add support for resources in namespaces (GH-24670)Jason R. Coombs2021-03-0421-920/+1319
| | | | | * Unify behavior in ResourceReaderDefaultsTests and align with the behavior found in importlib_resources. * Equip NamespaceLoader with a NamespaceReader. * Apply changes from importlib_resources 5.0.4
* Revert "bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)" (#24753)Jason R. Coombs2021-03-042-23/+1
| | | This reverts commit cb7bc7640935f6b05e9d2acfe4b33d496e8f8666.
* bpo-43391: Remove the broken Python 2.4 link from the comment (GH-24736)Kamil Turek2021-03-041-1/+0
|
* bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)Adrian Vladu2021-03-042-1/+23
| | | | | | | | | | | | | | | | | | | | | | | The following changes are required: * add a new platform win-arm64 * replace the emulated compiler executable paths * bump the linker base addressed as ARM64 requires more memory this change might not be needed (investigation required) On Windows 10 ARM64, VS compiler paths look like this: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\ARM64\cl.exe Note that the cl.exe for ARM64 is an x32 binary, which can run emulated on Windows 10 ARM64 (it has builtin emulation for x32). The rc.exe and mc.exe paths have to also be changed, as the initial discovery has to be fixed. Work in progress to remove the hardcoded bits and to change the path query fixes to the proper location. Automerge-Triggered-By: GH:jaraco
* bpo-43396: Normalise naming in sqlite3 doc examples (GH-24746)Erlend Egeberg Aasland2021-03-041-25/+25
|
* bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723)Erlend Egeberg Aasland2021-03-043-11/+48
|
* bpo-43394: Fix -Wstrict-prototypes warnings (GH-24737)Brandt Bucher2021-03-042-6/+6
|
* bpo-43271: Re-enable ceval.c optimizations for Windows debug builds (GH-24739)db3l2021-03-042-1/+3
| | | | | | Partially reverts commit b74396c3167cc780f01309148db02709bc37b432 The optimizations are necessary to prevent the interpreter from crashing in a number of tests involving recursion.
* Improve the description of the improvements in bpo-42202 (GH-24738)Pablo Galindo2021-03-041-2/+3
|
* bpo-42128: Add __match_args__ to structseq-based classes (GH-24732)Pablo Galindo2021-03-043-0/+48
|
* bpo-40701: tempfile mixes str and bytes in an inconsistent manner (GH-20442)Eric L2021-03-034-10/+98
| | | | | | | | | | | The case of tempfile.tempdir variable being bytes is now handled consistently. The getters return the right type and no more error of mixing str and bytes unless explicitly caused by the user. Adds a regression test. Expands the documentation to clarify the behavior. Co-authored-by: Eric L <ewl+git@lavar.de> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Add an attribution to the Green Tree Snakes in the AST docs (GH-24727)Pablo Galindo2021-03-031-0/+5
|
* bpo-43162: [Enum] update docs, renable doc tests (GH-24487)Ethan Furman2021-03-033-9/+10
| | | | * update docs, renable doc tests * make deprecation warning active for two releases
* bpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627)Noor Michael2021-03-033-1/+4
| | | | | | | | | | | | | Previously, `datetime.strptime` would match `'z'` with the format string `'%z'` (for UTC offsets), throwing an `IndexError` by erroneously trying to parse `'z'` as a timestamp. As a special case, `'%z'` matches the string `'Z'` which is equivalent to the offset `'+00:00'`, however this behavior is not defined for lowercase `'z'`. This change ensures a `ValueError` is thrown when encountering the original example, as follows: ``` >>> from datetime import datetime >>> datetime.strptime('z', '%z') ValueError: time data 'z' does not match format '%z' ``` Automerge-Triggered-By: GH:pganssle
* bpo-43368: Fix fetching empty bytes in sqlite3 (GH-24706)Mariusz Felisiak2021-03-033-6/+8
| | | Regression introduced in 47feb1feb28631b6647699b7633109aa85340966.
* missing multiply symbol in the documentation (GH-24686)Alperen Serkan Aksöz2021-03-031-1/+1
|