Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450) | Serhiy Storchaka | 2021-09-19 | 8 | -9/+9 | |
| | | | | | The cast to PyCFunction is redundant. Overuse of redundant casts can hide actual bugs. | |||||
* | bpo-45198: __set_name__ documentation not clear about its usage with ↵ | Raymond Hettinger | 2021-09-18 | 1 | -1/+2 | |
| | | | | non-descriptor classes (GH-28439) | |||||
* | bpo-44640: Improve punctuation consistency in isinstance/issubclass error ↵ | wyz23x2 | 2021-09-18 | 1 | -2/+2 | |
| | | | | | messages (GH-27144) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | bpo-45219: Factor dictkey indexing (GH-28389) | Mark Shannon | 2021-09-17 | 1 | -42/+84 | |
| | ||||||
* | bpo-45155 : Default arguments for int.to_bytes(length=1, ↵ | Barry Warsaw | 2021-09-15 | 2 | -45/+74 | |
| | | | | | | | byteorder=sys.byteorder) (#28265) Add default arguments for int.to_bytes() and int.from_bytes() Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> | |||||
* | bpo-45167: Fix deepcopying of GenericAlias (GH-28324) | Serhiy Storchaka | 2021-09-15 | 1 | -0/+2 | |
| | ||||||
* | closes bpo-45190: Update Unicode data to version 14.0.0. (GH-28336) | Benjamin Peterson | 2021-09-14 | 1 | -1299/+1345 | |
| | ||||||
* | bpo-43413: Fix handling keyword arguments in subclasses of some buitin ↵ | Serhiy Storchaka | 2021-09-12 | 6 | -12/+21 | |
| | | | | | | | | classes (GH-26456) * Constructors of subclasses of some buitin classes (e.g. tuple, list, frozenset) no longer accept arbitrary keyword arguments. * Subclass of set can now define a __new__() method with additional keyword parameters without overriding also __init__(). | |||||
* | bpo-44348: BaseException deallocator uses trashcan (GH-28190) | Victor Stinner | 2021-09-07 | 1 | -1/+6 | |
| | | | | | | | | | | The deallocator function of the BaseException type now uses the trashcan mecanism to prevent stack overflow. For example, when a RecursionError instance is raised, it can be linked to another RecursionError through the __context__ attribute or the __traceback__ attribute, and then a chain of exceptions is created. When the chain is destroyed, nested deallocator function calls can crash with a stack overflow if the chain is too long compared to the available stack memory. | |||||
* | bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194) | Yury Selivanov | 2021-09-07 | 1 | -7/+5 | |
| | | | | | | | | Fix PyAiter_Check to only check for the `__anext__` presense (not for `__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`, `PyObject_GetAiter()` -> `PyObject_GetAIter()`. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> | |||||
* | bpo-44963: Implement send() and throw() methods for anext_awaitable objects ↵ | Pablo Galindo Salgado | 2021-09-07 | 1 | -22/+96 | |
| | | | | | (GH-27955) Co-authored-by: Yury Selivanov <yury@edgedb.com> | |||||
* | bpo-34561: Switch to Munro & Wild "powersort" merge strategy. (#28108) | Tim Peters | 2021-09-06 | 2 | -92/+177 | |
| | | | | | For list.sort(), replace our ad hoc merge ordering strategy with the principled, elegant, and provably near-optimal one from Munro and Wild's "powersort". | |||||
* | bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000) | Serhiy Storchaka | 2021-09-04 | 1 | -16/+18 | |
| | | | | It happened with fast range iterator when the calculated stop = start + step * len was out of the C long range. | |||||
* | bpo-45061: Detect Py_DECREF(Py_True) bug (GH-28089) | Victor Stinner | 2021-08-31 | 2 | -7/+11 | |
| | | | | | Add a deallocator to the bool type to detect refcount bugs in C extensions which call Py_DECREF(Py_True) or Py_DECREF(Py_False) by mistake. | |||||
* | bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) | chilaxan | 2021-08-27 | 1 | -1/+1 | |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | bpo-44945: Specialize BINARY_ADD (GH-27967) | Mark Shannon | 2021-08-27 | 1 | -6/+12 | |
| | ||||||
* | bpo-44946: Streamline operators and creation of ints for common case of ↵ | Mark Shannon | 2021-08-25 | 1 | -92/+160 | |
| | | | | single 'digit'. (GH-27832) | |||||
* | bpo-44990: Change layout of evaluation frames. "Layout B" (GH-27933) | Mark Shannon | 2021-08-25 | 3 | -25/+11 | |
| | | | Places the locals between the specials and stack. This is the more "natural" layout for a C struct, makes the code simpler and gives a slight speedup (~1%) | |||||
* | Fix bytes.__bytes__ to not truncate at a zero byte (GH-27902) | Mark Dickinson | 2021-08-23 | 1 | -1/+1 | |
| | ||||||
* | bpo-24234: Implement bytes.__bytes__ (GH-27901) | Dong-hee Na | 2021-08-23 | 2 | -1/+39 | |
| | ||||||
* | bpo-24234: implement complex.__complex__ (GH-27887) | Mark Dickinson | 2021-08-23 | 2 | -1/+40 | |
| | | | Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> | |||||
* | bpo-44954: Fix wrong result in float.fromhex corner case (GH-27834) | Mark Dickinson | 2021-08-20 | 1 | -2/+2 | |
| | ||||||
* | bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) | Mark Dickinson | 2021-08-17 | 1 | -21/+7 | |
| | ||||||
* | bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551) | Hai Shi | 2021-08-17 | 1 | -0/+6 | |
| | ||||||
* | Fix a SystemError in code.replace() (#27771) | Guido van Rossum | 2021-08-16 | 1 | -3/+5 | |
| | | | | | | | While the comment said 'We don't bother resizing localspluskinds', this would cause .replace() to crash when it happened. (Also types.CodeType(), but testing that is tedious, and this tests all code paths.) | |||||
* | bpo-44914: Maintain invariants of type version tags. (GH-27773) | Mark Shannon | 2021-08-16 | 1 | -27/+13 | |
| | | | | * Do not invalidate type versions unnecessarily. | |||||
* | bpo-33930: Fix segfault with deep recursion when cleaning method objects ↵ | Pablo Galindo Salgado | 2021-08-11 | 1 | -1/+5 | |
| | | | | (GH-27678) | |||||
* | bpo-44854: Remove trailing whitespaces (GH-27689) | Serhiy Storchaka | 2021-08-09 | 2 | -2/+2 | |
| | ||||||
* | bpo-44872: use new trashcan macros in framobject.c (#27683) | Irit Katriel | 2021-08-09 | 1 | -2/+2 | |
| | ||||||
* | bpo-44826: Specialize STORE_ATTR (GH-27590) | Mark Shannon | 2021-08-09 | 1 | -3/+1 | |
| | | | | | | | * Generalize cache names for LOAD_ATTR to allow store and delete specializations. * Factor out specialization of attribute dictionary access. * Specialize STORE_ATTR. | |||||
* | bpo-44821: Eagerly assign __dict__ for new objects. (GH-27589) | Mark Shannon | 2021-08-04 | 2 | -4/+37 | |
| | ||||||
* | bpo-27275: Change popitem() and pop() methods of collections.OrderedDict ↵ | Serhiy Storchaka | 2021-08-03 | 1 | -67/+26 | |
| | | | | | | | | | | | | | | | | | (GH-27530) * Unify the C and Python implementations of OrderedDict.popitem(). The C implementation no longer calls ``__getitem__`` and ``__delitem__`` methods of the OrderedDict subclasses. * Change popitem() and pop() methods of collections.OrderedDict For consistency with dict both implementations (pure Python and C) of these methods in OrderedDict no longer call __getitem__ and __delitem__ methods of the OrderedDict subclasses. Previously only the Python implementation of popitem() did not call them. | |||||
* | bpo-44206: Make sure that dict-keys's version is set to zero when value is ↵ | Mark Shannon | 2021-08-02 | 1 | -0/+1 | |
| | | | | popped (GH-27542) | |||||
* | bpo-44662: Add ability to annotate types.Union (#27214) | Yurii Karabas | 2021-07-29 | 1 | -1/+23 | |
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | |||||
* | bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) | Serhiy Storchaka | 2021-07-29 | 1 | -2/+9 | |
| | ||||||
* | bpo-41103: Resurrect the old buffer protocol. (GH-27437) | Inada Naoki | 2021-07-29 | 1 | -0/+79 | |
| | | | | | Revert "bpo-41103: Remove old buffer protocol support (#21117)" This reverts commit 6f8a6ee59cb7f99f68df8ee9c3e8c8cf19af3eed. | |||||
* | bpo-42035: Add a PyType_GetName() to get type's short name. (GH-23903) | Hai Shi | 2021-07-29 | 1 | -0/+6 | |
| | ||||||
* | bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION ↵ | Dong-hee Na | 2021-07-28 | 1 | -1/+1 | |
| | | | | (GH-27202) | |||||
* | bpo-34013: Move the Python 2 hints from the exception constructor to the ↵ | Pablo Galindo Salgado | 2021-07-27 | 1 | -201/+0 | |
| | | | | parser (GH-27392) | |||||
* | bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) | T. Wouters | 2021-07-26 | 1 | -8/+15 | |
| | ||||||
* | bpo-44732: Rename types.Union to types.UnionType (#27342) | Hasan | 2021-07-26 | 1 | -3/+3 | |
| | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | |||||
* | bpo-44590: Lazily allocate frame objects (GH-27077) | Mark Shannon | 2021-07-26 | 3 | -233/+336 | |
| | | | | | | | | | | | | | | * Convert "specials" array to InterpreterFrame struct, adding f_lasti, f_state and other non-debug FrameObject fields to it. * Refactor, calls pushing the call to the interpreter upward toward _PyEval_Vector. * Compute f_back when on thread stack, only filling in value when frame object outlives stack invocation. * Move ownership of InterpreterFrame in generator from frame object to generator object. * Do not create frame objects for Python calls. * Do not create frame objects for generators. | |||||
* | bpo-44717: improve AttributeError on circular imports of submodules (GH-27338) | Filipe Laíns | 2021-07-24 | 1 | -0/+30 | |
| | ||||||
* | bpo-44676: Serialize the union type using only public API (GH-27323) | Serhiy Storchaka | 2021-07-24 | 1 | -48/+0 | |
| | | | | Remove also the _from_args() constructor. | |||||
* | bpo-44676: Fix reference leaks in union_reduce (GH-27332) | Pablo Galindo Salgado | 2021-07-24 | 1 | -1/+1 | |
| | | | Automerge-Triggered-By: GH:pablogsal | |||||
* | bpo-44731: Simplify the union type implementation (GH-27318) | Serhiy Storchaka | 2021-07-24 | 1 | -81/+7 | |
| | | | Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code. | |||||
* | Revert "bpo-44717: improve AttributeError on circular imports of submodules ↵ | Pablo Galindo Salgado | 2021-07-24 | 1 | -30/+0 | |
| | | | | | (GH-27299)" (GH-27331) This reverts commit 8072a1181dd64135f700b44372fbf7bf91e68072. | |||||
* | bpo-44717: improve AttributeError on circular imports of submodules (GH-27299) | Filipe Laíns | 2021-07-24 | 1 | -0/+30 | |
| | | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵ | Dennis Sweeney | 2021-07-24 | 1 | -0/+6 | |
| | | | | (GH-27316) | |||||
* | bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make ↵ | Petr Viktorin | 2021-07-23 | 3 | -30/+6 | |
| | | | | | | | | | | | | Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260) * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG The field is always present in the type struct, as explained in the added comment. * Remove Py_TPFLAGS_HAVE_AM_SEND The flag is not needed, and since it was added in 3.10 it can be removed now. |