Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309) | Irit Katriel | 2022-04-05 | 1 | -8/+2 | |
| | ||||||
* | no-issue: Add assertion to PyModule_GetName for understanding (GH-32236) | Dong-hee Na | 2022-04-02 | 1 | -1/+3 | |
| | ||||||
* | bpo-47186: Replace JUMP_IF_NOT_EXC_MATCH by CHECK_EXC_MATCH + jump (GH-32231) | Irit Katriel | 2022-04-01 | 1 | -3/+1 | |
| | ||||||
* | bpo-46841: Use a `bytes` object for `_co_code_adaptive` (GH-32205) | Brandt Bucher | 2022-04-01 | 1 | -2/+2 | |
| | ||||||
* | bpo-46841: Avoid unnecessary allocations in code object comparisons (GH-32222) | Brandt Bucher | 2022-04-01 | 1 | -13/+13 | |
| | ||||||
* | bpo-47009: Streamline list.append for the common case (GH-31864) | Dennis Sweeney | 2022-04-01 | 1 | -18/+18 | |
| | ||||||
* | bpo-40421: Add missing getters for frame object attributes to C-API. (GH-32114) | Mark Shannon | 2022-03-31 | 1 | -0/+22 | |
| | ||||||
* | bpo-47182: Fix crash by named unicode characters after interpreter ↵ | Christian Heimes | 2022-03-31 | 1 | -0/+3 | |
| | | | | | reinitialization (GH-32212) Automerge-Triggered-By: GH:tiran | |||||
* | bpo-14911: Corrected generator.throw() documentation (GH-32207) | Dave Goncalves | 2022-03-31 | 1 | -4/+10 | |
| | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> | |||||
* | bpo-47120: Replace the JUMP_ABSOLUTE opcode by the relative JUMP_BACKWARD ↵ | Irit Katriel | 2022-03-31 | 1 | -1/+6 | |
| | | | | (GH-32115) | |||||
* | bpo-47164: Add _PyASCIIObject_CAST() macro (GH-32191) | Victor Stinner | 2022-03-31 | 4 | -37/+34 | |
| | | | | | | | | | | | | Add macros to cast objects to PyASCIIObject*, PyCompactUnicodeObject* and PyUnicodeObject*: _PyASCIIObject_CAST(), _PyCompactUnicodeObject_CAST() and _PyUnicodeObject_CAST(). Using these new macros make the code more readable and check their argument with: assert(PyUnicode_Check(op)). Remove redundant assert(PyUnicode_Check(op)) in macros using directly or indirectly these new CAST macros. Replacing existing casts with these macros. | |||||
* | bpo-47162: Add call trampoline to mitigate bad fpcasts on Emscripten (GH-32189) | Christian Heimes | 2022-03-30 | 3 | -12/+48 | |
| | ||||||
* | bpo-46775: OSError should call winerror_to_errno unconditionally on Windows ↵ | Dong-hee Na | 2022-03-30 | 1 | -8/+1 | |
| | | | | (GH-32179) | |||||
* | bpo-47070: Add _PyBytes_Repeat() (GH-31999) | Pieter Eendebak | 2022-03-28 | 3 | -72/+47 | |
| | | | Use it where appropriate: the repeat functions of `array.array`, `bytes`, `bytearray`, and `str`. | |||||
* | bpo-47116: use _PyLong_FromUnsignedChar instead of PyLong_FromLong (GH-32110) | Pieter Eendebak | 2022-03-26 | 2 | -5/+5 | |
| | ||||||
* | bpo-42197: Don't create `f_locals` dictionary unless we actually need it. ↵ | Mark Shannon | 2022-03-25 | 1 | -6/+17 | |
| | | | | | | | | | | | (GH-32055) * `PyFrame_FastToLocalsWithError` and `PyFrame_LocalsToFast` are no longer called during profile and tracing. (Contributed by Fabio Zadrozny) * Make accesses to a frame's `f_locals` safe from C code, not relying on calls to `PyFrame_FastToLocals` or `PyFrame_LocalsToFast`. * Document new `PyFrame_GetLocals` C-API function. | |||||
* | bpo-47012: speed up iteration of bytes and bytearray (GH-31867) | Kumar Aditya | 2022-03-23 | 2 | -7/+4 | |
| | ||||||
* | bpo-47045: Remove `f_state` field (GH-31963) | Mark Shannon | 2022-03-22 | 2 | -93/+130 | |
| | | | | | * Remove the f_state field from _PyInterpreterFrame * Make ownership of the frame explicit, replacing the is_generator field with an owner field. | |||||
* | bpo-47084: Clear Unicode cached representations on finalization (GH-32032) | Jeremy Kloth | 2022-03-22 | 1 | -0/+44 | |
| | ||||||
* | bpo-47067: Optimize calling GenericAlias objects (GH-31996) | penguin_wwy | 2022-03-21 | 1 | -7/+32 | |
| | | | Use vectorcall, and replace `PyObject_SetAttrString` with `PyObject_SetAttr` and a global string. | |||||
* | bpo-46841: Quicken code in-place (GH-31888) | Brandt Bucher | 2022-03-21 | 5 | -137/+149 | |
| | | | | | | | | | | | | | | | | | | | * Moves the bytecode to the end of the corresponding PyCodeObject, and quickens it in-place. * Removes the almost-always-unused co_varnames, co_freevars, and co_cellvars member caches * _PyOpcode_Deopt is a new mapping from all opcodes to their un-quickened forms. * _PyOpcode_InlineCacheEntries is renamed to _PyOpcode_Caches * _Py_IncrementCountAndMaybeQuicken is renamed to _PyCode_Warmup * _Py_Quicken is renamed to _PyCode_Quicken * _co_quickened is renamed to _co_code_adaptive (and is now a read-only memoryview). * Do not emit unused nonzero opargs anymore in the compiler. | |||||
* | bpo-45786: Remove _PyFrame_Fini() and _PyFrame_DebugMallocStats() (GH-31874) | Victor Stinner | 2022-03-18 | 2 | -12/+0 | |
| | | | | Remove private empty _PyFrame_Fini() and _PyFrame_DebugMallocStats() functions. | |||||
* | bpo-47005: Improve performance of bytearray_repeat and bytearray_irepeat ↵ | Pieter Eendebak | 2022-03-17 | 1 | -6/+22 | |
| | | | | (GH-31856) | |||||
* | bpo-46841: Don't scan backwards in bytecode (GH-31901) | Mark Shannon | 2022-03-16 | 1 | -2/+5 | |
| | ||||||
* | bpo-46993: Speed up bytearray creation from list and tuple (GH-31834) | Kumar Aditya | 2022-03-15 | 1 | -2/+27 | |
| | ||||||
* | bpo-43721: Fix docstrings for property.getter/setter/deleter (GH-31046) | Irit Katriel | 2022-03-14 | 1 | -3/+3 | |
| | ||||||
* | bpo-46920: Remove disabled debug code added decades ago and likely ↵ | Oleg Iarygin | 2022-03-14 | 1 | -13/+0 | |
| | | | | unnecessary (GH-31812) | |||||
* | bpo-46920: Remove code that has no explainer why it was disabled (GH-31814) | Oleg Iarygin | 2022-03-14 | 1 | -17/+1 | |
| | ||||||
* | bpo-39829: Fix `__len__()` is called twice in list() constructor (GH-31816) | Crowthebird | 2022-03-14 | 1 | -17/+12 | |
| | ||||||
* | bpo-43224: Implement PEP 646 changes to genericaliasobject.c (GH-31019) | Matthew Rahtz | 2022-03-12 | 1 | -0/+75 | |
| | | | | | | | Specifically, prepare for starring of tuples via a new genericalias iter type. GenericAlias also partially supports the iterator protocol after this change. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | |||||
* | bpo-46906: Add PyFloat_Pack8() to the C API (GH-31657) | Victor Stinner | 2022-03-11 | 1 | -7/+13 | |
| | | | | | | | | | | | | | | | | | | | | | | Add new functions to pack and unpack C double (serialize and deserialize): * PyFloat_Pack2(), PyFloat_Pack4(), PyFloat_Pack8() * PyFloat_Unpack2(), PyFloat_Unpack4(), PyFloat_Unpack8() Document these functions and add unit tests. Rename private functions and move them from the internal C API to the public C API: * _PyFloat_Pack2() => PyFloat_Pack2() * _PyFloat_Pack4() => PyFloat_Pack4() * _PyFloat_Pack8() => PyFloat_Pack8() * _PyFloat_Unpack2() => PyFloat_Unpack2() * _PyFloat_Unpack4() => PyFloat_Unpack4() * _PyFloat_Unpack8() => PyFloat_Unpack8() Replace the "unsigned char*" type with "char*" which is more common and easy to use. | |||||
* | bpo-46944: use FASTCALL calling convention in generator.throw (GH-31723) | Kumar Aditya | 2022-03-11 | 1 | -14/+23 | |
| | ||||||
* | bpo-46881: Fix refleak from GH-31616 (GH-31805) | Jelle Zijlstra | 2022-03-11 | 1 | -2/+4 | |
| | ||||||
* | bpo-44796: Unify TypeVar and ParamSpec substitution (GH-31143) | Serhiy Storchaka | 2022-03-11 | 1 | -32/+14 | |
| | | | | | | Add methods __typing_subst__() in TypeVar and ParamSpec. Simplify code by using more object-oriented approach, especially the C code for types.GenericAlias and the Python code for collections.abc.Callable. | |||||
* | bpo-46881: Statically allocate and initialize the latin1 characters. (GH-31616) | Kumar Aditya | 2022-03-09 | 1 | -50/+14 | |
| | ||||||
* | bpo-46841: Use inline caching for calls (GH-31709) | Brandt Bucher | 2022-03-07 | 1 | -4/+1 | |
| | ||||||
* | bpo-46940: Don't override existing AttributeError suggestion information ↵ | Pablo Galindo Salgado | 2022-03-07 | 1 | -12/+22 | |
| | | | | | | | | | | | | (GH-31710) When an exception is created in a nested call to PyObject_GetAttr, any external calls will override the context information of the AttributeError that we have already placed in the most internal call. This will cause the suggestions we create to nor work properly as the attribute name and object that we will be using are the incorrect ones. To avoid this, we need to check first if these attributes are already set and bail out if that's the case. | |||||
* | bpo-46921: Vectorcall support for `super()` (GH-31687) | Ken Jin | 2022-03-06 | 1 | -2/+53 | |
| | | | Co-Authored-By: Dong-hee Na <donghee.na@python.org> | |||||
* | bpo-46864: Deprecate PyBytesObject.ob_shash. (GH-31598) | Inada Naoki | 2022-03-06 | 1 | -0/+18 | |
| | ||||||
* | bpo-46927: Include the type's name in the error message for subscripting ↵ | Serhiy Storchaka | 2022-03-05 | 1 | -0/+3 | |
| | | | | non-generic types (GH-31694) | |||||
* | bpo-46903: Handle str-subclasses in virtual instance dictionaries. (GH-31658) | Mark Shannon | 2022-03-04 | 1 | -10/+18 | |
| | ||||||
* | bpo-46891: Fix creating a new instance of a module subclass with slots ↵ | Mark Shannon | 2022-03-03 | 1 | -1/+2 | |
| | | | | (GH-31643) | |||||
* | dict: Fix refleak (GH-31650) | Inada Naoki | 2022-03-03 | 1 | -4/+8 | |
| | ||||||
* | bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642) | Victor Stinner | 2022-03-02 | 1 | -0/+1 | |
| | | | | | | Move _PyBytes_Find() and _PyBytes_ReverseFind() functions to the internal C API. bytesobject.c now includes pycore_bytesobject.h. | |||||
* | dict: Internal cleanup (GH-31641) | Inada Naoki | 2022-03-02 | 1 | -66/+44 | |
| | | | | * Make empty_key from split table to combined table. * Use unicode_get_hash() when possible. | |||||
* | bpo-46848: Use stringlib/fastsearch in mmap (GH-31625) | Dennis Sweeney | 2022-03-02 | 1 | -0/+18 | |
| | | | Speed up mmap.find(). Add _PyBytes_Find() and _PyBytes_ReverseFind(). | |||||
* | bpo-46845: Reduce dict size when all keys are Unicode (GH-31564) | Inada Naoki | 2022-03-01 | 3 | -424/+782 | |
| | ||||||
* | bpo-46311: Clean up PyLong_FromLong and PyLong_FromLongLong (GH-30496) | Mark Dickinson | 2022-03-01 | 1 | -41/+31 | |
| | ||||||
* | bpo-46753: Add the empty tuple to the _PyRuntimeState.global_objects. (gh-31345) | Eric Snow | 2022-02-28 | 1 | -174/+164 | |
| | | | https://bugs.python.org/issue46753 | |||||
* | bpo-46857: Fix refleak in OSError INIT_ALIAS() (GH-31594) | Victor Stinner | 2022-02-26 | 2 | -12/+5 | |
| | | | _Py_GetRefTotal() no longer decrements _PySet_Dummy refcount. |