Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix typo about line number in the 3.10 What's New document (GH-25328) | Antti Haapala | 2021-04-11 | 1 | -1/+1 | |
| | | | This was a typo copied from PEP 626. | |||||
* | bpo-41974: Remove part of the note regarding complex.__float__ (GH-25197) | DevilXD | 2021-04-10 | 1 | -4/+1 | |
| | | | (The deleted example no longer works and is thus irrelevant.) | |||||
* | bpo-43753: Add Py_Is() and Py_IsNone() functions (GH-25227) | Victor Stinner | 2021-04-10 | 9 | -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 Galindo | 2021-04-10 | 1 | -1/+6 | |
| | ||||||
* | bpo-43770: Refactor type_new() function (GH-25325) | Victor Stinner | 2021-04-10 | 2 | -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 Suozzo | 2021-04-10 | 11 | -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. Smith | 2021-04-10 | 1 | -1/+1 | |
| | ||||||
* | bpo-43739: Add type declaration Doc/extending/extending.rst example | Shreyan Avigyan | 2021-04-10 | 2 | -1/+2 | |
| | ||||||
* | bpo-43478: Restrict use of Mock objects as specs (GH-25326) | Matthew Suozzo | 2021-04-10 | 4 | -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 Gale | 2021-04-09 | 1 | -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 Gale | 2021-04-09 | 1 | -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 Heimes | 2021-04-09 | 1 | -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 Heimes | 2021-04-09 | 4 | -1/+20 | |
| | | | Signed-off-by: Christian Heimes <christian@python.org> | |||||
* | bpo-43682: @staticmethod inherits attributes (GH-25268) | Victor Stinner | 2021-04-09 | 8 | -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 Heimes | 2021-04-09 | 7 | -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 Heimes | 2021-04-09 | 2 | -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 Heimes | 2021-04-09 | 2 | -0/+9 | |
| | | | | (GH-25303) | |||||
* | bpo-43774: Document the Python Build System (GH-25302) | Victor Stinner | 2021-04-09 | 1 | -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 Stinner | 2021-04-09 | 1 | -1/+2 | |
| | | | Don't hardcode the Sphinx version but use Doc/requirements.txt. | |||||
* | Simplify _PyPegen_fill_token in pegen.c (GH-25295) | Pablo Galindo | 2021-04-09 | 1 | -58/+64 | |
| | ||||||
* | Sanitize macros and debug functions in pegen.c (GH-25291) | Pablo Galindo | 2021-04-09 | 3 | -3/+18 | |
| | ||||||
* | bpo-43774: Enhance configure documentation (GH-25293) | Victor Stinner | 2021-04-08 | 1 | -50/+125 | |
| | ||||||
* | Break down some complex functions in pegen.c for readability (GH-25292) | Pablo Galindo | 2021-04-08 | 1 | -79/+91 | |
| | ||||||
* | Fix possible refleak involving _PyArena_AddPyObject (GH-25289) | Erlend Egeberg Aasland | 2021-04-08 | 1 | -1/+4 | |
| | ||||||
* | bpo-39702: Remove dotted_name from decorator documentation (GH-25234) | Saiyang Gou | 2021-04-08 | 1 | -1/+0 | |
| | ||||||
* | bpo-43778: Fix Sphinx glossary_search extension (GH-25286) | Victor Stinner | 2021-04-08 | 2 | -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 Stinner | 2021-04-08 | 20 | -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 Bucher | 2021-04-08 | 3 | -1/+11 | |
| | ||||||
* | bpo-43760: Streamline dispatch sequence for machines without computed gotos. ↵ | Mark Shannon | 2021-04-08 | 1 | -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 Stinner | 2021-04-08 | 3 | -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 Sindelar | 2021-04-07 | 1 | -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 Gale | 2021-04-07 | 7 | -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 Stinner | 2021-04-07 | 1 | -0/+23 | |
| | ||||||
* | bpo-43770: Sort types in _PyTypes_Init() (GH-25263) | Victor Stinner | 2021-04-07 | 1 | -71/+76 | |
| | ||||||
* | bpo-42923: Fix _Py_DumpExtensionModules() for NULL sysdict (GH-25262) | Victor Stinner | 2021-04-07 | 1 | -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 Stinner | 2021-04-07 | 9 | -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 Gou | 2021-04-07 | 1 | -2/+8 | |
| | | | | arguments (GH-25235) | |||||
* | bpo-39659: Route calls from pathlib.Path to os.getcwd() via the path ↵ | Barney Gale | 2021-04-07 | 1 | -4/+6 | |
| | | | | accessor (GH-18834) | |||||
* | bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) | Barney Gale | 2021-04-07 | 2 | -15/+28 | |
| | ||||||
* | bpo-39906: Add follow_symlinks parameter to pathlib.Path.stat() and chmod() ↵ | Barney Gale | 2021-04-07 | 4 | -17/+49 | |
| | | | | (GH-18864) | |||||
* | bpo-43495 : Push missing frame block in compile.c (GH-24865) | tomKPZ | 2021-04-07 | 1 | -1/+10 | |
| | ||||||
* | Improve CDN purge script (GH-25251) | Steve Dower | 2021-04-07 | 1 | -0/+3 | |
| | ||||||
* | bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) | Yeting Li | 2021-04-07 | 2 | -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 Stinner | 2021-04-07 | 8 | -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 Shannon | 2021-04-07 | 2 | -4/+4 | |
| | ||||||
* | bpo-38605: Update "Future statements" docs since PEP 563 is always enabled ↵ | Saiyang Gou | 2021-04-07 | 1 | -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. | |||||
* | bpo-40038: pathlib: remove partial support for preserving accessor when ↵ | Barney Gale | 2021-04-07 | 1 | -33/+8 | |
| | | | | modifying a path (GH-19342) | |||||
* | bpo-39895: Move `pathlib.Path.touch()` implementation into the path ↵ | Barney Gale | 2021-04-07 | 1 | -24/+18 | |
| | | | | accessor. (GH-18838) | |||||
* | bpo-43105: Importlib now resolves relative paths when creating module spec ↵ | Steve Dower | 2021-04-07 | 9 | -2516/+2721 | |
| | | | | objects from file locations (GH-25121) | |||||
* | bpo-39924: handle missing os functions more consistently in pathlib (GH-19220) | Barney Gale | 2021-04-06 | 1 | -27/+16 | |
| |