summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-98831: Support cache effects in super- and macro instructions (#99601)Guido van Rossum2022-12-034-272/+482
|
* gh-99741: Clean Up the _xxsubinterpreters Module (gh-99940)Eric Snow2022-12-024-310/+652
| | | | | This cleanup up resolves a few subtle bugs and makes the implementation for multi-phase init much cleaner. https://github.com/python/cpython/issues/99741
* gh-99955: standardize return values of functions in assembler and optimizer. ↵Irit Katriel2022-12-021-42/+54
| | | | (#99956)
* gh-99741: Fix the Cross-Interpreter Data API (gh-99939)Eric Snow2022-12-023-25/+88
| | | | | There were some minor issues that showed up while I was working on porting _xxsubinterpreters to multi-phase init. This fixes them. https://github.com/python/cpython/issues/99741
* GH-91054: Add code object watchers API (GH-99859)Itamar Ostricher2022-12-0211-0/+364
| | | | | | * Add API to allow extensions to set callback function on creation and destruction of PyCodeObject Co-authored-by: Ye11ow-Flash <janshah@cs.stonybrook.edu>
* gh-99894: Ensure the local names don't collide with the test file in ↵Pablo Galindo Salgado2022-12-011-6/+6
| | | | | traceback suggestion error checking (#99895) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613)Serhiy Storchaka2022-12-014-0/+95
| | | | Previously *consumed was not set in this case.
* Doc: Add summary line to isolation_level & autocommit sqlite3.connect params ↵C.A.M. Gerlach2022-12-011-0/+2
| | | | | | | (#99917) Add summary lines to isolation_level and autocommit connect() params Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* GH-98906 ```re``` module: ```search() vs. match()``` section should mention ↵ram vikram singh2022-11-301-6/+12
| | | | | ```fullmatch()``` (GH-98916) Mention fullmatch along with search and match.
* gh-89189: More compact range iterator (GH-27986)Serhiy Storchaka2022-11-307-50/+88
|
* bpo-47220: Document the optional callback parameter of weakref.WeakMethod ↵Géry Ogam2022-11-302-2/+6
| | | | (GH-25491)
* GH-99905: Fix output of misses in summarize_stats.py execution counts (GH-99906)Michael Droettboom2022-11-301-3/+3
| | | This was an indentation error introduced in 2844aa6a
* gh-99845: PEP 670: Convert PyObject macros to functions (#99850)Victor Stinner2022-11-301-5/+8
| | | | | | | | | 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).
* gh-99845: Use size_t type in __sizeof__() methods (#99846)Victor Stinner2022-11-3015-108/+85
| | | | | | | | 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).
* GH-99877)Irit Katriel2022-11-301-23/+41
|
* Fix typo in exception message in `multiprocessing.pool` (#99900)Arne de Laat2022-11-301-1/+1
|
* gh-87092: move all localsplus preparation into separate function called from ↵Irit Katriel2022-11-301-30/+41
| | | | assembler stage (GH-99869)
* gh-99891: Fix infinite recursion in the tokenizer when showing warnings ↵Pablo Galindo Salgado2022-11-304-0/+24
| | | | | (GH-99893) Automerge-Triggered-By: GH:pablogsal
* gh-99824: Document that sqlite3.connect implicitly open a transaction if ↵Géry Ogam2022-11-301-3/+3
| | | | | autocommit=False (#99825) Authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-81057: remove static state from suggestions.c (#99411)Kumar Aditya2022-11-301-8/+19
|
* Improve zip64 limit error message (#95892)dmjohnsson232022-11-301-2/+2
|
* gh-98253: Break potential reference cycles in external code worsened by ↵Wenzel Jakob2022-11-302-3/+21
| | | | typing.py lru_cache (#98591)
* gh-99127: Allow some features of syslog to the main interpreter only (gh-99128)Dong-hee Na2022-11-295-2/+122
|
* gh-82836: fix private network check (#97733)Pete Wicken2022-11-293-4/+50
| | | 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".
* Docs: improve accuracy of socketserver reference (#24767)Géry Ogam2022-11-291-7/+3
|
* whatsnew-3.10: Mention PEP 647 in the Release highlights section. (#99853)Yilei "Dolee" Yang2022-11-291-1/+2
| | | | | Mention PEP 647 in the Release highlights section. Also re-ordered the list so it matches the order in the details sections below.
* gh-90717: Update the documentation for the altchars paremeter in base64 ↵Sam Ezeh2022-11-291-8/+11
| | | | library (GH-94187)
* gh-99845: Clean up _PyObject_VAR_SIZE() usage (#99847)Victor Stinner2022-11-293-14/+14
| | | | | | * 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).
* gh-99845: Change _PyDict_KeysSize() return type to size_t (#99848)Victor Stinner2022-11-293-35/+31
| | | | | | | | * 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.
* GH-91375: Port `_asyncio` static types to heap types and module state (#99122)Kumar Aditya2022-11-292-435/+783
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-99593: Add tests for Unicode C API (part 1) (GH-99651)Serhiy Storchaka2022-11-293-50/+780
| | | | Add tests for functions corresponding to the str class methods.
* gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and ↵Serhiy Storchaka2022-11-295-41/+117
| | | | | | | | | | | TypeVarTuple (GH-99412) * 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.
* gh-99811: Use correct variable to search for time in format string (GH-99812)cemysce2022-11-281-1/+1
| | | Use correct variable to search for asctime
* `fnmatch` docs: link to `fnmatch.filter()`, not `builtins.filter()` (#99819)Matthew Hughes2022-11-281-1/+1
|
* Use _Py_RVALUE() in macros (#99844)Victor Stinner2022-11-285-6/+6
| | | | | | | | | | | | | | 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.
* Grammatical improvements for ctypes 'winmode' documentation (GH-19167)David Miguel Susano Pinto2022-11-281-2/+2
|
* gh-89653: PEP 670: Convert macros to functions (#99843)Victor Stinner2022-11-288-27/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and segfaults (#18640)Zackery Spytz2022-11-283-9/+32
| | | | Co-authored-by: Oren Milman <orenmn@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-41825: restructure docs for the os.wait*() family (GH-22356)Georg Brandl2022-11-282-93/+145
|
* gh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342)Petr Viktorin2022-11-281-6/+25
| | | | | | | | | | | | | | | | | 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>
* gh-51524: Fix bug when calling trace.CoverageResults with valid infile (#99629)Furkan Onder2022-11-283-1/+12
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Docs: both sqlite3 "point examples" now adapt to str (#99823)Erlend E. Aasland2022-11-271-1/+1
|
* gh-91340: Document multiprocessing.set_start_method force parameter (GH-32339)Sam Ezeh2022-11-271-2/+6
| | | | | | | | #91340 https://bugs.python.org/issue47184 Automerge-Triggered-By: GH:kumaraditya303
* Docs: Move .PHONY to each section to avoid copy/paste omissions (#99396)Hugo van Kemenade2022-11-271-4/+24
|
* gh-99677: Deduplicate self-type in `mro` in `inspect._getmembers` (#99678)Nikita Sobolev2022-11-271-1/+1
| | | Closes #99677
* gh-99815: remove unused 'invalid' sentinel value and code that checks for it ↵Anthony Sottile2022-11-271-7/+1
| | | | in inspect.signature parsing (GH-21104)
* GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS ↵Ronald Oussoren2022-11-273-98/+120
| | | | | | | | | | | | (#99768) On macOS all file descriptors for a particular file in /dev/fd share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves more like ``dup(9)`` than a regular open. This causes problems when a user tries to run "/dev/fd/9" as a script because zipimport changes the file offset to try to read a zipfile directory. Therefore change zipimport to reset the file offset after trying to read the zipfile directory.
* Remove unused local variables in inspect.py (#24218)Yonatan Goldschmidt2022-11-271-2/+1
|
* gh-85988: Change documentation for sys.float_info.rounds (GH-99675)Brad Wolfe2022-11-271-6/+12
| | | | | | | | | | | | | | | | | | | | * Change documentation for sys.float_info.rounds Change the documentation for sys.float_info.rounds to remove references to C99 section 5.2.4.2.2 and instead place the available values inline. * Correction to previous documentation change Newlines were not preserved in generated HTML on previous commit. I have changes the list to a comma-separated list of values and their meanings. * Clarify source for value of FLT_ROUNDS Clarify the source of the FLT_ROUNDS value and change 'floating-point addition' to 'floating-point arithmetic' to indicate that the rounding mode applies to all arithmetic operations.
* doc: Remove backslashes in doctest grammar docs (#29346)George Zhang2022-11-271-3/+3
|