- Dec 01, 2022
-
-
Pablo Galindo Salgado authored
gh-99894: Ensure the local names don't collide with the test file in traceback suggestion error checking (#99895) Co-authored-by:
Victor Stinner <vstinner@python.org>
-
Serhiy Storchaka authored
Previously *consumed was not set in this case.
-
C.A.M. Gerlach authored
Add summary lines to isolation_level and autocommit connect() params Co-authored-by:
Géry Ogam <gery.ogam@gmail.com>
-
- Nov 30, 2022
-
-
ram vikram singh authored
GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916) Mention fullmatch along with search and match.
-
Serhiy Storchaka authored
-
Géry Ogam authored
-
Michael Droettboom authored
This was an indentation error introduced in 2844aa6a
-
Victor Stinner authored
Convert macros to static inline functions to avoid macro pitfalls, like duplication of side effects: * _PyObject_SIZE() * _PyObject_VAR_SIZE() The result type is size_t (unsigned).
-
Victor Stinner authored
The implementation of __sizeof__() methods using _PyObject_SIZE() now use an unsigned type (size_t) to compute the size, rather than a signed type (Py_ssize_t). Cast explicitly signed (Py_ssize_t) values to unsigned type (Py_ssize_t).
-
Irit Katriel authored
-
Arne de Laat authored
-
Irit Katriel authored
gh-87092: move all localsplus preparation into separate function called from assembler stage (GH-99869)
-
Pablo Galindo Salgado authored
Automerge-Triggered-By: GH:pablogsal
-
Géry Ogam authored
Authored-by:
C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
-
Kumar Aditya authored
-
dmjohnsson23 authored
-
Wenzel Jakob authored
gh-98253: Break potential reference cycles in external code worsened by typing.py lru_cache (#98591)
-
- Nov 29, 2022
-
-
Dong-hee Na authored
-
Pete Wicken authored
Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
-
Géry Ogam authored
-
Yilei "Dolee" Yang authored
Mention PEP 647 in the Release highlights section. Also re-ordered the list so it matches the order in the details sections below.
-
Sam Ezeh authored
-
Victor Stinner authored
* code_sizeof() now uses an unsigned type (size_t) to compute the result. * Fix _PyObject_ComputedDictPointer(): cast _PyObject_VAR_SIZE() to Py_ssize_t, rather than long: it's a different type on 64-bit Windows. * Clarify that _PyObject_VAR_SIZE() uses an unsigned type (size_t).
-
Victor Stinner authored
* Change _PyDict_KeysSize() and shared_keys_usable_size() return type from signed (Py_ssize_t) to unsigned (size_t) type. * new_values() argument type is now unsigned (size_t). * init_inline_values() now uses size_t rather than int for the 'i' iterator variable. * type.__sizeof__() implementation now uses unsigned (size_t) type.
-
Kumar Aditya authored
Co-authored-by:
Erlend E. Aasland <erlend.aasland@protonmail.com>
-
Serhiy Storchaka authored
Add tests for functions corresponding to the str class methods.
-
Serhiy Storchaka authored
* Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar.
-
- Nov 28, 2022
-
-
cemysce authored
Use correct variable to search for asctime
-
Matthew Hughes authored
-
Victor Stinner authored
The following macros are modified to use _Py_RVALUE(), so they can no longer be used as l-value: * DK_LOG_SIZE() * _PyCode_CODE() * _PyList_ITEMS() * _PyTuple_ITEMS() * _Py_SLIST_HEAD() * _Py_SLIST_ITEM_NEXT() _PyCode_CODE() is private and other macros are part of the internal C API.
-
David Miguel Susano Pinto authored
-
Victor Stinner authored
Convert macros to static inline functions to avoid macro pitfalls, like duplication of side effects: * DK_ENTRIES() * DK_UNICODE_ENTRIES() * PyCode_GetNumFree() * PyFloat_AS_DOUBLE() * PyInstanceMethod_GET_FUNCTION() * PyMemoryView_GET_BASE() * PyMemoryView_GET_BUFFER() * PyMethod_GET_FUNCTION() * PyMethod_GET_SELF() * PySet_GET_SIZE() * _PyHeapType_GET_MEMBERS() Changes: * PyCode_GetNumFree() casts PyCode_GetNumFree.co_nfreevars from int to Py_ssize_t to be future proof, and because Py_ssize_t is commonly used in the C API. * PyCode_GetNumFree() doesn't cast its argument: the replaced macro already required the exact type PyCodeObject*. * Add assertions in some functions using "CAST" macros to check the arguments type when Python is built with assertions (debug build). * Remove an outdated comment in unicodeobject.h.
-
Zackery Spytz authored
Co-authored-by:
Oren Milman <orenmn@gmail.com> Co-authored-by:
Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
-
Georg Brandl authored
-
Petr Viktorin authored
These slots are marked "should be treated as read-only" in the table at the start of the document. That doesn't say anything about setting them in the static struct. `tp_bases` docs did say that it should be ``NULL`` (TIL!). If you ignore that, seemingly nothing bad happens. However, some slots may not be inherited, depending on which sub-slot structs are present. (FWIW, NumPy sets tp_bases and is affected by the quirk -- though to be fair, its DUAL_INHERIT code probably predates tp_bases docs, and also the result happens to be benign.) This patch makes things explicit. It also makes the summary table legend easier to scan. Co-authored-by:
Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
-
Furkan Onder authored
Co-authored-by:
Terry Jan Reedy <tjreedy@udel.edu>
-
- Nov 27, 2022
-
-
Erlend E. Aasland authored
-
Sam Ezeh authored
#91340 https://bugs.python.org/issue47184 Automerge-Triggered-By: GH:kumaraditya303
-
Hugo van Kemenade authored
-
Nikita Sobolev authored
Closes #99677
-