summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-43244: Add pycore_ast.h header file (GH-24908)Victor Stinner2021-03-178-21/+37
| | | | | | | | Move _PyAST_GetDocString() and _PyAST_ExprAsUnicode() functions the internal C API: from Include/ast.h to a new Include/internal/pycore_ast.h header file. Don't export these functions anymore: replace PyAPI_FUNC() with extern. Remove also unused includes.
* bpo-43244: Rename pycore_ast.h to pycore_ast_state.h (GH-24907)Victor Stinner2021-03-178-16/+21
|
* Remove unnecessary imports in the grammar parser (GH-24904)Elisha Hollander2021-03-172-8/+2
|
* bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843)Victor Stinner2021-03-174-69/+148
| | | | | | | | | | Python no longer fails at startup with a fatal error if a command line argument contains an invalid Unicode character. The Py_DecodeLocale() function now escapes byte sequences which would be decoded as Unicode characters outside the [U+0000; U+10ffff] range. Use MAX_UNICODE constant in unicodeobject.c.
* Add PEP 626 to what's new in 3.10. (#24892)Mark Shannon2021-03-161-0/+8
|
* bpo-43497: Emit SyntaxWarnings for assertions with tuple constants. (GH-24867)tsukasa-au2021-03-163-6/+37
| | | | | | | | | | | | | | | | | | | * bpo-43497: Emit SyntaxWarnings for assertions with tuple constants. Add a test that shows that a tuple constant (a tuple, where all of its members are also compile-time constants) produces a SyntaxWarning. Then fix this failure. * Make SyntaxWarnings also work when "optimized". * Split tests for SyntaxWarning to SyntaxError conversion SyntaxWarnings emitted by the compiler when configured to be errors are actually raised as SyntaxError exceptions. Move these tests into their own method and add a test to ensure they are raised. Previously we only tested that they were not raised for a "valid" assertion statement.
* bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)Inada Naoki2021-03-161-11/+15
| | | See PEP 624.
* bpo-41361: Optimized argument parsing for deque_rotate (GH-24796)Dennis Sweeney2021-03-162-1/+13
|
* Minor updates to the vector demo (GH-24853)Raymond Hettinger2021-03-161-5/+25
|
* bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570)Chavdar Yotov2021-03-152-2/+3
|
* bpo-43285 Make ftplib not trust the PASV response. (GH-24838)Gregory P. Smith2021-03-153-3/+43
| | | | | | | | | | | | | | | bpo-43285: Make ftplib not trust the PASV response. The IPv4 address value returned from the server in response to the PASV command should not be trusted. This prevents a malicious FTP server from using the response to probe IPv4 address and port combinations on the client network. Instead of using the returned address, we use the IP address we're already connected to. This is the strategy other ftp clients adopted, and matches the only strategy available for the modern IPv6 EPSV command where the server response must return a port number and nothing else. For the rare user who _wants_ this ugly behavior, set a `trust_server_pasv_ipv4_address` attribute on your `ftplib.FTP` instance to True.
* Fix typo in the word "spaghetti" (GH-24866)Kazantcev Andrey2021-03-151-1/+1
| | | Automerge-Triggered-By: GH:Mariatta
* Mark POP_TOP at end of expression statement as artificial, to conform to PEP ↵Mark Shannon2021-03-152-0/+10
| | | | 626. (GH-24860)
* bpo-43428: Improve documentation for importlib.metadata changes. (GH-24858)Jason R. Coombs2021-03-153-3/+73
| | | | | | | * bpo-43428: Sync with importlib_metadata 3.7.3 (16ac3a95) * Add 'versionadded' for importlib.metadata.packages_distributions * Add section in what's new for Python 3.10 highlighting most salient changes and relevant backport.
* bpo-43199: Briefly explain why no goto (GH-24852)Terry Jan Reedy2021-03-142-1/+10
| | | | Answer "Why is there no goto?" in the Design and History FAQ.
* bpo-29982: Add "ignore_cleanup_errors" param to ↵CAM Gerlach2021-03-144-15/+117
| | | | tempfile.TemporaryDirectory() (GH-24793)
* bpo-39316: Make sure that attribute accesses and stores, including method ↵Mark Shannon2021-03-145-6/+70
| | | | calls, conform to PEP 626. (GH-24859)
* bpo-43410: Fix crash in the parser when producing syntax errors when reading ↵Pablo Galindo2021-03-145-31/+76
| | | | from stdin (GH-24763)
* bpo-43245: Add keyword argument support to ChainMap.new_child() (GH-24788)Kamil Turek2021-03-144-6/+18
|
* bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836)Pablo Galindo2021-03-141-2/+2
|
* Fix some minor errors in the docs (GH-24834)Zackery Spytz2021-03-145-5/+5
|
* bpo-43427: Separte the method overview from the static method specifics. ↵Raymond Hettinger2021-03-131-2/+6
| | | | (GH-24787)
* 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.