https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
b6bd7ff Python 3.12.0a3 06 December 2022, 18:33:02 UTC
fd38a2f gh-93453: No longer create an event loop in get_event_loop() (#98440) asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl> 06 December 2022, 17:42:12 UTC
b72014c GH-99729: Unlink frames before clearing them (GH-100030) 06 December 2022, 14:01:38 UTC
85d5a7e bpo-37860: re-add netlify.toml to set up deploy previews for docs (#92852) * Revert "bpo-46184: remove `netlify.toml` (#30272)" This reverts commit fbaf2e604cd354f1ebc6be029480010c6715a8ca. * Delete runtime.txt * Create runtime.txt * Delete runtime.txt * Update netlify.toml * Update netlify.toml * Add netlify badge * Update Doc/tools/templates/layout.html Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update layout.html Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 06 December 2022, 13:37:41 UTC
5837e5f gh-100008: VS 2017 is required since Python 3.11 (#100045) 06 December 2022, 13:35:32 UTC
9dc787e GH-100026: Include the number of raw input files in summarize_stats.py (GH-100027) 06 December 2022, 11:14:47 UTC
5c19050 gh-99957: Add `frozen_default` parameter on `dataclass_transform` (#99958) 06 December 2022, 03:35:43 UTC
bed15f8 gh-100001: Remove doc typo, add versionadded (#100042) gh-100001: Remove new doc typo, add versionadded. 05 December 2022, 23:15:13 UTC
7e29398 gh-100001: Also escape \s in http.server log messages. (#100038) Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so that it is technically possible to parse the line and reconstruct what the original data was. Without this a \xHH is ambiguious as to if it is a hex replacement we put in or the characters r"\x" came through in the original request line. 05 December 2022, 22:27:55 UTC
e9e63ad gh-99984: Fix Compiler Warnings (#100036) https://github.com/python/cpython/issues/99984 05 December 2022, 21:41:06 UTC
f49c735 Use sphinxext-opengraph to generate OpenGraph metadata (#99931) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 05 December 2022, 21:26:28 UTC
d8ab0a4 gh-100001: Omit control characters in http.server stderr logs. (#100002) Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to. 05 December 2022, 20:55:45 UTC
530cc9d gh-99741: Implement Multi-Phase Init for the _xxsubinterpreters Module (gh-99742) _xxsubinterpreters is an internal module used for testing. https://github.com/python/cpython/issues/99741 05 December 2022, 20:40:20 UTC
51ee0a2 dataclasses.rst: Prevent horizontal scrolling (gh-100025) 05 December 2022, 18:56:13 UTC
124ecd6 bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) 05 December 2022, 17:34:00 UTC
f247387 gh-98680: Add PyBUF_* constants to the Limited API listing (GH-100018) ``PyBUF_*`` constants are marked as part of Limited API of Python 3.11+. These were available in 3.11.0 with `Py_LIMITED_API` defined for 3.11, and are necessary to use the buffer API. Omitting them in `stable_abi.toml` was a mistake. 05 December 2022, 17:02:36 UTC
922a6cf gh-60203: Revert changes in cycle.__setstate__ (#99982) In case if only True/False be supported as boolean arguments in future, we should continue to support 1/0 here. 05 December 2022, 16:27:40 UTC
2488c1e gh-99892: test_unicodedata: skip test on download failure (#100011) Skip test_normalization() of test_unicodedata if it fails to download NormalizationTest.txt file from pythontest.net. 05 December 2022, 15:37:40 UTC
5ea052b gh-100008: Document Python build requirements (#100009) Document also configure --without-freelists option added to Python 3.11. 05 December 2022, 14:41:44 UTC
038b151 gh-100005: Skip test_script_as_dev_fd() on FreeBSD (#100006) On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if fdescfs is not mounted (at /dev/fd). 05 December 2022, 13:23:35 UTC
e3a3863 gh-93464: [Enum] Add versionchanged tag (#99997) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 05 December 2022, 10:35:31 UTC
bdc93b8 no-issue: Fix typo in pycore_object.h (gh-99994) 05 December 2022, 05:42:38 UTC
854a878 gh-98248: Normalizing the error messages in function struct.pack (GH-98252) Provide consistent and informative error messages in function struct.pack when its integral arguments are not in range. 04 December 2022, 20:24:18 UTC
2ae894b [Enum] Fix typos in the documentation (GH-99960) 04 December 2022, 19:49:31 UTC
72ec518 gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (#98459) * Bugfix addressing infinite loop while handling self-referencing chained exception in TestResult._clean_tracebacks() * Bugfix extended to properly handle exception cycles in _clean_tracebacks. The "seen" set follows the approach used in the TracebackException class (thank you @iritkatriel for pointing it out) * adds a test for a single chained exception that holds a self-loop in its __cause__ and __context__ attributes 04 December 2022, 19:37:55 UTC
1012dc1 GH-91054: Reset static events counts in code watchers tests (#99978) 04 December 2022, 12:38:21 UTC
76f43fc gh-60203: Always pass True/False as boolean arguments in tests (GH-99983) Unless we explicitly test non-bool values. 04 December 2022, 12:28:56 UTC
bf26bdf gh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice and suggest other edits (#99784) 04 December 2022, 00:48:41 UTC
a87c46e bpo-15999: Accept arbitrary values for boolean parameters. (#15609) builtins and extension module functions and methods that expect boolean values for parameters now accept any Python object rather than just a bool or int type. This is more consistent with how native Python code itself behaves. 03 December 2022, 19:52:21 UTC
c68573b gh-99934: test_marshal.py: add more elements in test_deterministic_sets (GH-99935) Existing elements do produce different output on x86_64, but they do not on x86. Let's make the data longer to ensure it differs. 03 December 2022, 16:53:20 UTC
ee60156 GH-66285: remove redundant `time.sleep` from `test_fork_signal_handling` (GH-99963) 03 December 2022, 06:15:36 UTC
acf9184 GH-98831: Support cache effects in super- and macro instructions (#99601) 03 December 2022, 03:57:30 UTC
0547a98 gh-99741: Clean Up the _xxsubinterpreters Module (gh-99940) 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 02 December 2022, 18:36:57 UTC
ab02262 gh-99955: standardize return values of functions in assembler and optimizer. (#99956) 02 December 2022, 17:43:10 UTC
b4f3505 gh-99741: Fix the Cross-Interpreter Data API (gh-99939) 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 02 December 2022, 17:39:17 UTC
3c137dc GH-91054: Add code object watchers API (GH-99859) * Add API to allow extensions to set callback function on creation and destruction of PyCodeObject Co-authored-by: Ye11ow-Flash <janshah@cs.stonybrook.edu> 02 December 2022, 17:28:27 UTC
0563be2 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> 01 December 2022, 13:05:56 UTC
f08e52c gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613) Previously *consumed was not set in this case. 01 December 2022, 12:54:51 UTC
d460c8e Doc: Add summary line to isolation_level & autocommit sqlite3.connect params (#99917) Add summary lines to isolation_level and autocommit connect() params Co-authored-by: Géry Ogam <gery.ogam@gmail.com> 01 December 2022, 07:19:41 UTC
e0f91de GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916) Mention fullmatch along with search and match. 30 November 2022, 22:52:21 UTC
7877642 gh-89189: More compact range iterator (GH-27986) 30 November 2022, 21:04:30 UTC
9628136 bpo-47220: Document the optional callback parameter of weakref.WeakMethod (GH-25491) 30 November 2022, 19:44:10 UTC
bf94c65 GH-99905: Fix output of misses in summarize_stats.py execution counts (GH-99906) This was an indentation error introduced in 2844aa6a 30 November 2022, 19:17:08 UTC
131801d gh-99845: PEP 670: Convert PyObject macros to functions (#99850) 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). 30 November 2022, 17:17:50 UTC
85dd6cb gh-99845: Use size_t type in __sizeof__() methods (#99846) 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). 30 November 2022, 16:22:52 UTC
18a6967 GH-99877) 30 November 2022, 16:16:54 UTC
a694b82 Fix typo in exception message in `multiprocessing.pool` (#99900) 30 November 2022, 15:27:28 UTC
ac12e39 gh-87092: move all localsplus preparation into separate function called from assembler stage (GH-99869) 30 November 2022, 12:37:30 UTC
417206a gh-99891: Fix infinite recursion in the tokenizer when showing warnings (GH-99893) Automerge-Triggered-By: GH:pablogsal 30 November 2022, 11:36:06 UTC
19c3880 gh-99824: Document that sqlite3.connect implicitly open a transaction if autocommit=False (#99825) Authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 30 November 2022, 11:33:50 UTC
fe17d35 GH-81057: remove static state from suggestions.c (#99411) 30 November 2022, 11:25:16 UTC
59665d0 Improve zip64 limit error message (#95892) 30 November 2022, 11:14:41 UTC
c314198 gh-98253: Break potential reference cycles in external code worsened by typing.py lru_cache (#98591) 30 November 2022, 08:33:32 UTC
8bb2303 gh-99127: Allow some features of syslog to the main interpreter only (gh-99128) 29 November 2022, 22:58:20 UTC
ed39109 gh-82836: fix private network check (#97733) 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". 29 November 2022, 21:32:18 UTC
052bc12 Docs: improve accuracy of socketserver reference (#24767) 29 November 2022, 20:34:52 UTC
d74a588 whatsnew-3.10: Mention PEP 647 in the Release highlights section. (#99853) Mention PEP 647 in the Release highlights section. Also re-ordered the list so it matches the order in the details sections below. 29 November 2022, 20:30:58 UTC
05dfc53 gh-90717: Update the documentation for the altchars paremeter in base64 library (GH-94187) 29 November 2022, 16:21:01 UTC
74d5f61 gh-99845: Clean up _PyObject_VAR_SIZE() usage (#99847) * 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). 29 November 2022, 11:15:21 UTC
4246fe9 gh-99845: Change _PyDict_KeysSize() return type to size_t (#99848) * 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. 29 November 2022, 11:12:17 UTC
4cfc1b8 GH-91375: Port `_asyncio` static types to heap types and module state (#99122) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 29 November 2022, 10:07:37 UTC
deaa8de gh-99593: Add tests for Unicode C API (part 1) (GH-99651) Add tests for functions corresponding to the str class methods. 29 November 2022, 07:59:56 UTC
8f2fb7d gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and 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. 29 November 2022, 07:46:52 UTC
1d1bb95 gh-99811: Use correct variable to search for time in format string (GH-99812) Use correct variable to search for asctime 28 November 2022, 18:25:03 UTC
ca3e611 `fnmatch` docs: link to `fnmatch.filter()`, not `builtins.filter()` (#99819) 28 November 2022, 18:08:08 UTC
7bae15c Use _Py_RVALUE() in macros (#99844) 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. 28 November 2022, 16:42:22 UTC
6541798 Grammatical improvements for ctypes 'winmode' documentation (GH-19167) 28 November 2022, 16:05:21 UTC
02f72b8 gh-89653: PEP 670: Convert macros to functions (#99843) 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. 28 November 2022, 15:40:08 UTC
53eef27 bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and segfaults (#18640) Co-authored-by: Oren Milman <orenmn@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 28 November 2022, 10:46:40 UTC
492dc02 bpo-41825: restructure docs for the os.wait*() family (GH-22356) 28 November 2022, 09:41:24 UTC
219696a gh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342) 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> 28 November 2022, 08:22:08 UTC
594de16 gh-51524: Fix bug when calling trace.CoverageResults with valid infile (#99629) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 28 November 2022, 06:49:10 UTC
276643e Docs: both sqlite3 "point examples" now adapt to str (#99823) 27 November 2022, 21:08:30 UTC
dfc2732 gh-91340: Document multiprocessing.set_start_method force parameter (GH-32339) #91340 https://bugs.python.org/issue47184 Automerge-Triggered-By: GH:kumaraditya303 27 November 2022, 17:58:39 UTC
969620d Docs: Move .PHONY to each section to avoid copy/paste omissions (#99396) 27 November 2022, 17:48:29 UTC
2653b82 gh-99677: Deduplicate self-type in `mro` in `inspect._getmembers` (#99678) Closes #99677 27 November 2022, 11:15:26 UTC
ac115b5 gh-99815: remove unused 'invalid' sentinel value and code that checks for it in inspect.signature parsing (GH-21104) 27 November 2022, 11:01:02 UTC
d08fb25 GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS (#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. 27 November 2022, 10:56:14 UTC
9c9f085 Remove unused local variables in inspect.py (#24218) 27 November 2022, 10:39:23 UTC
6562939 gh-85988: Change documentation for sys.float_info.rounds (GH-99675) * 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. 27 November 2022, 10:25:12 UTC
22860db doc: Remove backslashes in doctest grammar docs (#29346) 27 November 2022, 06:38:39 UTC
62a5dc1 bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (#24659) The docs stated that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 27 November 2022, 06:27:41 UTC
191708c GH-66285: fix forking in asyncio (#99769) Closes #66285 27 November 2022, 05:54:48 UTC
024ac54 bpo-45975: Simplify some while-loops with walrus operator (GH-29347) 26 November 2022, 22:33:25 UTC
25bc115 gh-89682: [doc] reword docstring of __contains__ to clarify that it returns a bool (GH-29043) 26 November 2022, 22:24:04 UTC
7f00574 gh-88330: Add more detail about what is a resource. (#99801) 26 November 2022, 21:57:20 UTC
93f22d3 gh-98108: Add limited pickleability to zipfile.Path (GH-98109) * gh-98098: Move zipfile into a package. * Moved test_zipfile to a package * Extracted module for test_path. * Add blurb * Add jaraco as owner of zipfile.Path. * Synchronize with minor changes found at jaraco/zipp@d9e7f4352d. * gh-98108: Sync with zipp 3.9.1 adding pickleability. 26 November 2022, 18:05:41 UTC
5f88982 gh-99795: Fix typo in importlib.resources.abc (GH-99796) Changing TraversableReader to TraversableResources at one place of the documentation. See #99795 for more details. 26 November 2022, 18:01:08 UTC
003f341 Fix zipfile packaging after GH-98103 (GH-99797) * Add zipfile and test_zipfile to list of packages. Fixes regression introduced in #98103. * Restore support for py -m test.test_zipfile 26 November 2022, 18:00:05 UTC
78365b8 gh-91078: Return None from TarFile.next when the tarfile is empty (GH-91850) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 26 November 2022, 17:57:05 UTC
7796d31 gh-98098: Create packages from zipfile and test_zipfile (gh-98103) * gh-98098: Move zipfile into a package. * Moved test_zipfile to a package * Extracted module for test_path. * Add blurb * Add jaraco as owner of zipfile.Path. * Synchronize with minor changes found at jaraco/zipp@d9e7f4352d. 26 November 2022, 14:44:13 UTC
dc063a2 gh-97966: Restore prior expectation that uname_result._fields and ._asdict would include the processor. (gh-98343) 26 November 2022, 13:28:49 UTC
e35ca41 gh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration warnings in configure.ac (#99406) Follow up to 12078e78f6e4a21f344e4eaff529e1ff3b97734f. 26 November 2022, 13:08:49 UTC
47d673d gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512) Now it is in sync with https://docs.python.org/3/library/hmac.html#hmac.compare_digest It is the same function, just re-exported. So, I guess they should mention the same input types. 26 November 2022, 09:33:48 UTC
ec2b76a GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (#95897) Co-authored-by: Steve Dower <steve.dower@python.org> 26 November 2022, 09:31:42 UTC
a86d854 Fix typo in `__match_args__` doc (#99785) A opy of #98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again. 26 November 2022, 00:03:16 UTC
5556d3e gh-98724: Fix warnings on Py_SETREF() usage (#99781) Cast argument to the expected type. 25 November 2022, 23:30:37 UTC
ae234fb gh-99029: Fix handling of `PureWindowsPath('C:\<blah>').relative_to('C:')` (GH-99031) `relative_to()` now treats naked drive paths as relative. This brings its behaviour in line with other parts of pathlib, and with `ntpath.relpath()`, and so allows us to factor out the pathlib-specific implementation. 25 November 2022, 19:15:57 UTC
7d2dcc5 gh-64019: Have attribute table in `inspect` docs link to module attributes instead of listing them (GH-98116) Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be> 25 November 2022, 19:10:22 UTC
5d4d831 Fix typo on inline comment for email.generator (GH-98210) Trivial change to comment - no issue or new entry necessary 25 November 2022, 18:03:20 UTC
back to top