summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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)
* bpo-40107: Switch to using io.open() for pathlib.Path.open() (GH-25240)Barney Gale2021-04-091-7/+3
| | | Previously we had identical behaviour but only allowed accessors to override os.open(). This change allows the override to also construct the IO wrapper as well.
* bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)Christian Heimes2021-04-091-2/+2
| | | | | | ripemd160 is not available in OpenSSL 3.0.0's default crypto provider. It's only present in legacy provider. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)Christian Heimes2021-04-094-1/+20
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43682: @staticmethod inherits attributes (GH-25268)Victor Stinner2021-04-098-22/+133
| | | | | | | | | | Static methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (__module__, __name__, __qualname__, __doc__, __annotations__) and have a new __wrapped__ attribute. Changes: * Add a repr() method to staticmethod and classmethod types. * Add tests on the @classmethod decorator.
* bpo-43788: Generate version specific _ssl_data.h (GH-25300)Christian Heimes2021-04-097-82/+15092
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)Christian Heimes2021-04-092-0/+7
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case ↵Christian Heimes2021-04-092-0/+9
| | | | (GH-25303)
* bpo-43774: Document the Python Build System (GH-25302)Victor Stinner2021-04-091-7/+116
| | | | * Elaborate PGO and LTO documentaton. * Document MAINCC, PURIFY and LINKCC variables.
* bpo-43774: Doc job of Azure Pipelines uses Doc/requirements.txt (GH-25296)Victor Stinner2021-04-091-1/+2
| | | Don't hardcode the Sphinx version but use Doc/requirements.txt.
* Simplify _PyPegen_fill_token in pegen.c (GH-25295)Pablo Galindo2021-04-091-58/+64
|
* Sanitize macros and debug functions in pegen.c (GH-25291)Pablo Galindo2021-04-093-3/+18
|
* bpo-43774: Enhance configure documentation (GH-25293)Victor Stinner2021-04-081-50/+125
|
* Break down some complex functions in pegen.c for readability (GH-25292)Pablo Galindo2021-04-081-79/+91
|
* Fix possible refleak involving _PyArena_AddPyObject (GH-25289)Erlend Egeberg Aasland2021-04-081-1/+4
|
* bpo-39702: Remove dotted_name from decorator documentation (GH-25234)Saiyang Gou2021-04-081-1/+0
|
* bpo-43778: Fix Sphinx glossary_search extension (GH-25286)Victor Stinner2021-04-082-5/+13
| | | | | Create the _static/ directory if it doesn't exist. Add also constants for the static directory and the JSON filename.
* bpo-43774: Document configure options (GH-25283)Victor Stinner2021-04-0820-47/+678
| | | | | | Add Doc/using/configure.rst documentation to document configure, preprocessor, compiler and linker options. Add a new section about the "Python debug build".
* bpo-43764: Fix `__match_args__` generation logic for dataclasses (GH-25284)Brandt Bucher2021-04-083-1/+11
|
* bpo-43760: Streamline dispatch sequence for machines without computed gotos. ↵Mark Shannon2021-04-081-61/+52
| | | | | | | | (GH-25244) * Do fetch and decode at end of opcode then jump directly to switch. Should allow compilers that don't support computed-gotos, specifically MSVC, to generate better code.
* bpo-43770: _PyTypes_Init() inits _PyAnextAwaitable_Type (GH-25266)Victor Stinner2021-04-083-2/+6
| | | | * Rename PyAnextAwaitable_Type to _PyAnextAwaitable_Type. * Expose the type in the internal C API.
* Fix broken test for MutableSet.pop() (GH-25209)Stepan Sindelar2021-04-071-2/+6
| | | | Changes the test to not assert concrete result of pop, but just that it was an item from the set, and that the set shrunk by one.
* bpo-39899: os.path.expanduser(): don't guess other Windows users' home ↵Barney Gale2021-04-077-68/+63
| | | | | | | directories if the basename of the current user's home directory doesn't match their username. (GH-18841) This makes `ntpath.expanduser()` match `pathlib.Path.expanduser()` in this regard, and is more in line with `posixpath.expanduser()`'s cautious approach. Also remove the near-duplicate implementation of `expanduser()` in pathlib, and by doing so fix a bug where KeyError could be raised when expanding another user's home directory.
* bpo-43770: _PyTypes_Init() inits more static types (GH-25265)Victor Stinner2021-04-071-0/+23
|
* bpo-43770: Sort types in _PyTypes_Init() (GH-25263)Victor Stinner2021-04-071-71/+76
|
* bpo-42923: Fix _Py_DumpExtensionModules() for NULL sysdict (GH-25262)Victor Stinner2021-04-071-6/+8
| | | Fix Py_FatalError() is called before interp->sysdict is set.
* bpo-43244: Rename pycore_ast.h functions to _PyAST_xxx() (GH-25252)Victor Stinner2021-04-079-900/+851
| | | | | | Rename AST functions of pycore_ast.h to use the "_PyAST_" prefix. Remove macros creating aliases without prefix. For example, Module() becomes _PyAST_Module(). Update Grammar/python.gram to use _PyAST_xxx() functions.
* bpo-36540: Improve doc of function definition regarding positional-only ↵Saiyang Gou2021-04-071-2/+8
| | | | arguments (GH-25235)
* bpo-39659: Route calls from pathlib.Path to os.getcwd() via the path ↵Barney Gale2021-04-071-4/+6
| | | | accessor (GH-18834)
* bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)Barney Gale2021-04-072-15/+28
|