summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* bpo-43772: Fix TypeVar.__ror__ (GH-25339)Jelle Zijlstra2021-04-113-2/+13
|
* bpo-43783: Add ParamSpecArgs/Kwargs (GH-25298)Jelle Zijlstra2021-04-115-11/+91
|
* bpo-43764: Add match_args=False parameter to dataclass decorator and to ↵Eric V. Smith2021-04-114-19/+81
| | | | | make_dataclasses function. (GH-25337) Add match_args=False parameter to dataclass decorator and to make_dataclass function.
* Fix typo about line number in the 3.10 What's New document (GH-25328)Antti Haapala2021-04-111-1/+1
| | | This was a typo copied from PEP 626.
* bpo-41974: Remove part of the note regarding complex.__float__ (GH-25197)DevilXD2021-04-101-4/+1
| | | (The deleted example no longer works and is thus irrelevant.)
* bpo-43753: Add Py_Is() and Py_IsNone() functions (GH-25227)Victor Stinner2021-04-109-38/+198
| | | | | | | Add the Py_Is(x, y) function to test if the 'x' object is the 'y' object, the same as "x is y" in Python. Add also the Py_IsNone(), Py_IsTrue(), Py_IsFalse() functions to test if an object is, respectively, the None singleton, the True singleton or the False singleton.
* bpo-43478: Fix formatting of NEWS entry (GH-25335)Pablo Galindo2021-04-101-1/+6
|
* bpo-43770: Refactor type_new() function (GH-25325)Victor Stinner2021-04-102-395/+734
| | | | | | | | | | | | * Split type_new() into into many small functions. * Add type_new_ctx structure to pass variables between subfunctions. * Initialize some PyTypeObject and PyHeapTypeObject members earlier in type_new_alloc(). * Rename variables to more specific names. * Add "__weakref__" identifier for type_new_visit_slots(). * Factorize code to convert a method to a classmethod (__init_subclass__ and __class_getitem__). * Add braces to respect PEP 7. * Move variable declarations where the variables are initialized.
* bpo-43798: Add source location attributes to alias (GH-25324)Matthew Suozzo2021-04-1011-19/+199
| | | | | | | * Add source location attributes to alias. * Move alias star construction to pegen helper. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-40701: doc typo historcal -> historical (GH-25334)Gregory P. Smith2021-04-101-1/+1
|
* bpo-43739: Add type declaration Doc/extending/extending.rst exampleShreyan Avigyan2021-04-102-1/+2
|
* bpo-43478: Restrict use of Mock objects as specs (GH-25326)Matthew Suozzo2021-04-104-8/+65
| | | | * Restrict using Mock objects as specs as this is always a test bug where the resulting mock is misleadingly useless. * Skip a broken test that exposes a bug elsewhere in mock (noted in the original issue).
* bpo-39899: Don't double-check directory name if we're requesting the current ↵Barney Gale2021-04-091-8/+9
| | | | user's home directory in ntpath.expanduser() (GH-25277)