summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43505: Explicitly initialize and shutdown sqlite3 (GH-25404)Erlend Egeberg Aasland2021-04-141-11/+14
|
* bpo-41282: setup.py ignores distutils DeprecationWarning (GH-25405)Victor Stinner2021-04-141-8/+14
|
* bpo-43795: Sort PC/python3dll.c (GH-25312)Petr Viktorin2021-04-141-7/+7
| | | | | | Each section is sorted to reduce diffs (review effort) when the file becomes generated. Sort is done with key=str.lower to preserve most of the original order (underscored items first). https://bugs.python.org/issue43795
* bpo-38530: Offer suggestions on NameError (GH-25397)Pablo Galindo2021-04-148-10/+287
| | | | | | | | | | | When printing NameError raised by the interpreter, PyErr_Display will offer suggestions of simmilar variable names in the function that the exception was raised from: >>> schwarzschild_black_hole = None >>> schwarschild_black_hole Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'schwarschild_black_hole' is not defined. Did you mean: schwarzschild_black_hole?
* Fix typo in the What's New for 3.10 (GH-25396)Pablo Galindo2021-04-142-2/+2
|
* bpo-20364: Improve sqlite3 placeholder docs (GH-25003)Erlend Egeberg Aasland2021-04-143-48/+48
|
* bpo-43265: Improve sqlite3.Connection.backup error handling (GH-24586)Erlend Egeberg Aasland2021-04-143-49/+38
|
* bpo-43825: Fix deprecation warnings in test_cmd_line and test_collections ↵Karthikeyan Singaravelan2021-04-142-2/+2
| | | | | | (GH-25380) * Fix deprecation warnings due to invalid escape sequences. * Use self.assertEqual instead of deprecated self.assertEquals.
* bpo-43752: Fix sqlite3 regression for zero-sized blobs with converters ↵Erlend Egeberg Aasland2021-04-143-12/+20
| | | | (GH-25228)
* bpo-43712 : fileinput: Add encoding parameter (GH-25272)Inada Naoki2021-04-146-38/+119
|
* bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)Bob Kline2021-04-141-13/+2
|
* bpo-38530: Offer suggestions on AttributeError (#16856)Pablo Galindo2021-04-1412-15/+470
| | | | | | | | | When printing AttributeError, PyErr_Display will offer suggestions of similar attribute names in the object that the exception was raised from: >>> collections.namedtoplo Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'collections' has no attribute 'namedtoplo'. Did you mean: namedtuple?
* bpo-43680: Deprecate io.OpenWrapper (GH-25357)Victor Stinner2021-04-144-15/+44
| | | | | | | | Deprecate io.OpenWrapper and _pyio.OpenWrapper: use io.open and _pyio.open instead. Until Python 3.9, _pyio.open was not a static method and builtins.open was set to OpenWrapper to not become a bound method when set to a class variable. _io.open is a built-in function whereas _pyio.open is a Python function. In Python 3.10, _pyio.open() is now a static method, and builtins.open() is now io.open().
* bpo-43080: pprint for dataclass instances (GH-24389)Lewis Gaul2021-04-135-14/+133
| | | * Added pprint support for dataclass instances which don't have a custom __repr__.
* bpo-43785: Update bz2 document (GH-25351)Inada Naoki2021-04-133-4/+12
|
* bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360)Christian Heimes2021-04-133-2/+66
| | | | | The new checks are only executed when one or more OpenSSL-related files are modified. The checks run a handful of networking and hashing test suites. All SSL checks are optional. This PR also introduces ccache to speed up compilation. In common cases it speeds up configure and compile time from about 90 seconds to less than 30 seconds. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43797: Handle correctly invalid assignments inside function calls and ↵Pablo Galindo2021-04-134-9/+21
| | | | generators (GH-25390)
* Doc: Try to enhance wording on circular imports. (GH-24705)Julien Palard2021-04-131-10/+10
|
* bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)Karthikeyan Singaravelan2021-04-131-1/+1
|
* bpo-43770: Cleanup type_ready() (GH-25388)Victor Stinner2021-04-131-119/+153
| | | | | | * Rename functions * Only pass type parameter to "add_xxx" functions. * Clarify the role of the type_ready_inherit_as_structs() function. * Move type_dict_set_doc() code to call it in type_ready_fill_dict().
* bpo-43770: Reorder type_ready() (GH-25373)Victor Stinner2021-04-131-48/+56
| | | | | | | Add type_ready_create_dict() sub-function. * Start with type_ready_create_dict(). * Call type_ready_mro() earlier, before type_ready_add_attrs(). * Call type_ready_inherit_special() earlier, in type_ready_inherit().
* bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365)Andrew V. Jones2021-04-131-0/+6
| | | Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
* bpo-43760: Speed up check for tracing in interpreter dispatch (#25276)Mark Shannon2021-04-136-35/+61
| | | | | | | | | * Remove redundant tracing_possible field from interpreter state. * Move 'use_tracing' from tstate onto C stack, for fastest possible checking in dispatch logic. * Add comments stressing the importance stack discipline when dealing with CFrames. * Add NEWS
* bpo-43731: Add an `encoding` parameter to logging.fileConfig() (GH-25273)Inada Naoki2021-04-133-3/+10
|
* bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329)Christian Heimes2021-04-133-24/+26
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353)Inada Naoki2021-04-134-0/+15
|
* Ensure that early = are not matched by the parser as invalid comparisons ↵Pablo Galindo2021-04-133-319/+423
| | | | (GH-25375)
* Remove an unnecessary copy of the 'namespace' parameter to make_dataclass(). ↵Eric V. Smith2021-04-132-8/+15
| | | | (GH-25372)
* bpo-43774: Add more links to configure options (GH-25363)Victor Stinner2021-04-1210-32/+45
|
* Fix Sphinx errors in the documentation and re-activate the suspicious check ↵Pablo Galindo2021-04-124-3/+4
| | | | | | | (GH-25368) The suspicious check is still executed as part of the release process and release managers have been lately fixing some actual errors that the suspicious target can find. For this reason, reactivate the suspicious until we decide what to do in a coordinated fashion.
* bpo-41515: Fix KeyError raised in get_type_hints (GH-25352)Karthikeyan Singaravelan2021-04-123-1/+12
| | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: efahl <36704995+efahl@users.noreply.github.com>
* bpo-42904: Fix get_type_hints for class local namespaces (GH-24201)Ken Jin2021-04-123-2/+12
|
* Use double quotes over single quotes for match statement grammar (GH-24943)Ken Jin2021-04-121-2/+2
|
* bpo-43797: Improve syntax error for invalid comparisons (#25317)Pablo Galindo2021-04-1212-665/+1261
| | | | | | | | | | | | | * bpo-43797: Improve syntax error for invalid comparisons * Update Lib/test/test_fstring.py Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> * Apply review comments * can't -> cannot Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* bpo-43774: Remove --without-cycle-gc doc (GH-25364)Victor Stinner2021-04-121-6/+1
| | | | | The configure --without-cycle-gc option has been removed in Python 2.3 by the commit cccd1e72481106b0a373117f32fda6261f3141a7. It's now time to remove the last reference to it in the documentation.
* bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released ↵Ethan Furman2021-04-123-19/+57
| | | | (GH-25350)
* bpo-41661: Document os.path.relpath() exception on Windows with different ↵Zackery Spytz2021-04-121-1/+2
| | | | drives (GH-25346)
* bpo-34311: Add locale.localize (GH-15275)Cédric Krier2021-04-124-3/+51
| | | | * Add method localize to the locale module * Update the documentation of the locale module
* bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)Christian Heimes2021-04-124-7/+7
|
* bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)Christian Heimes2021-04-121-1/+4
| | | Signed-off-by: Christian Heimes <christian@python.org>
* try and get a peak at mock-related PRs before they land (#25356)Chris Withers2021-04-121-0/+4
|
* bpo-43680: _pyio.open() becomes a static method (GH-25354)Victor Stinner2021-04-123-14/+18
| | | | | | | | | | | The Python _pyio.open() function becomes a static method to behave as io.open() built-in function: don't become a bound method when stored as a class variable. It becomes possible since static methods are now callable in Python 3.10. Moreover, _pyio.OpenWrapper becomes a simple alias to _pyio.open. init_set_builtins_open() now sets builtins.open to io.open, rather than setting it to io.OpenWrapper, since OpenWrapper is now an alias to open in the io and _pyio modules.
* bpo-43723: Deprecate camelCase aliases from threading (GH-25174)Jelle Zijlstra2021-04-127-20/+159
| | | | | | The snake_case names have existed since Python 2.6, so there is no reason to keep the old camelCase names around. One similar method, threading.Thread.isAlive, was already removed in Python 3.9 (bpo-37804).
* bpo-43785: Improve BZ2File performance by removing RLock (GH-25299)Inada Naoki2021-04-122-59/+48
| | | | | | Remove `RLock` from `BZ2File`. It makes `BZ2File` to thread unsafe, but gzip and lzma don't use it too. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-43682: Make staticmethod objects callable (GH-25117)Victor Stinner2021-04-117-14/+32
| | | Static methods (@staticmethod) are now callable as regular functions.
* bpo-43770: Refactor PyType_Ready() function (GH-25336)Victor Stinner2021-04-112-154/+274
| | | | | | * Split PyType_Ready() into sub-functions. * type_ready_mro() now checks if bases are static types earlier. * Check tp_name earlier, in type_ready_checks(). * Add _PyType_IsReady() macro to check if a type is ready.
* bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (#24818)Ken Jin2021-04-113-0/+8
| | | | | | | * coerce bytes separator to string * Add news * Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
* Fix typo in 3.10.0a7.rst (GH-25340)Sergey B Kirpichev2021-04-111-1/+1
|
* Fix description of behaviour of an exception class in 'from' clause (GH-24303)Mark Dickinson2021-04-111-4/+7
|
* bpo-43751: Fix anext() bug where it erroneously returned None (GH-25238)Dennis Sweeney2021-04-113-6/+182
|