summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* bpo-39906: Add follow_symlinks parameter to pathlib.Path.stat() and chmod() ↵Barney Gale2021-04-074-17/+49
| | | | (GH-18864)
* bpo-43495 : Push missing frame block in compile.c (GH-24865)tomKPZ2021-04-071-1/+10
|
* Improve CDN purge script (GH-25251)Steve Dower2021-04-071-0/+3
|
* bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391)Yeting Li2021-04-072-1/+2
| | | | | | | Fix Regular Expression Denial of Service (ReDoS) vulnerability in urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex has quadratic worst-case complexity and it allows cause a denial of service when identifying crafted invalid RFCs. This ReDoS issue is on the client side and needs remote attackers to control the HTTP server.
* bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243)Victor Stinner2021-04-078-325/+319
| | | | | | | | * pycore_ast.h no longer defines the Yield macro. * Fix a compiler warning on Windows: "warning C4005: 'Yield': macro redefinition". * Python-ast.c now defines directly functions with their real _Py_xxx() name, rather than xxx(). * Remove "#undef Yield" in C files including pycore_ast.h.
* Correct micro release number and add a couple of asserts. (GH-25224)Mark Shannon2021-04-072-4/+4
|
* bpo-38605: Update "Future statements" docs since PEP 563 is always enabled ↵Saiyang Gou2021-04-071-5/+2
| | | | | (GH-25236) Update documentation section for "Future statements" to reflect that `from __future__ import annotations` is on by default, and no features require using the future statement now.