https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
53e5529 Python 3.10.0a7 05 April 2021, 16:39:49 UTC
57f21db Fix the "make suspicious" check on the pprint docs (GH-25193) 05 April 2021, 16:38:10 UTC
b1dc1aa bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398) 05 April 2021, 13:50:24 UTC
c8e5eb9 bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181) * Fix test_shutil * Fix test_imp * Fix test_import * Fix test_importlib 05 April 2021, 04:11:23 UTC
ee952b5 bpo-43651: PEP 597: Fix EncodingWarning in test_filecmp (GH-25159) 05 April 2021, 03:32:35 UTC
de522a8 bpo-43651: PEP 597: Fix test_email (GH-25158) 05 April 2021, 03:30:12 UTC
2b5913b bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (#25183) 04 April 2021, 15:14:44 UTC
aadd4e1 bpo-24160: Fix test_pdb refleaks failure (GH-25182) 04 April 2021, 15:04:53 UTC
c368ce7 bpo-27129: Update magic numbers and bootstrapping for GH-25069 (GH-25172) * Update magic numbers and bootstrapping for GH-25069 * add blurb Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 04 April 2021, 08:33:22 UTC
3caea9a bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171) * Fix test_float * Fix _osx_support * Fix test_fstring * Fix test_gc * Fix test_gzip * Fix test_hashlib * Fix unrelated whitespace issue Co-authored-by: Ned Deily <nad@python.org> 04 April 2021, 08:01:10 UTC
f8775e4 bpo-43325: Add FAQ entry for identity tests (GH-25168) 04 April 2021, 02:54:49 UTC
35715d1 bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) * test_asyncio * test_bz2 * test_math * test_cmath * test_cmd_line * test_cmd_line_script * test_compile * test_contextlib * test_profile * ctypes/test/test_find * test_multiprocessing * test_configparser * test_csv * test_dbm_dumb * test_decimal * test_difflib * os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place. 04 April 2021, 00:01:23 UTC
dc6d3e1 bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167) 03 April 2021, 22:31:15 UTC
c5354c0 Replace broken example code with correct simpler code. (GH-25162) The open() was missing 'w' to indicate it was in a write-mode. Even then, the open().close() operation was distracting because it is an unusual way to "touch" as file. Using os.remove() instead is simpler and less distracting. 03 April 2021, 20:09:01 UTC
e4c8895 Add more tests for the descriptor tutorial (GH-25164) 03 April 2021, 20:07:52 UTC
b2a91e0 bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153) Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has. Automerge-Triggered-By: GH:gvanrossum 02 April 2021, 21:25:31 UTC
f97dc80 bpo-43672: raise ImportWarning when calling find_loader() (GH-25119) 02 April 2021, 19:35:32 UTC
ad442a6 bpo-24160: Fix breakpoints persistence across multiple pdb sessions (GH-21989) 02 April 2021, 16:15:21 UTC
afd1265 bpo-31956: Add start and stop parameters to array.index() (GH-25059) Co-Authored-By: Anders Lorentsen <Phaqui@gmail.com> 02 April 2021, 15:28:35 UTC
240bcf8 bpo-41111: xxlimited.c defines Py_LIMITED_API (GH-25151) xxlimited.c and xxlimited_35.c now define the Py_LIMITED_API macro, rather than having to do it in the build recipe. Co-authored-by: Hai Shi <shihai1992@gmail.com> 02 April 2021, 14:48:11 UTC
9bb5658 bpo-43688: Support "make regen-limited-abi" in debug mode (GH-25133) 02 April 2021, 14:46:08 UTC
3359cab bpo-43688: Support the limited C API in debug mode (GH-25131) The limited C API is now supported if Python is built in debug mode (if the Py_DEBUG macro is defined). In the limited C API, the Py_INCREF() and Py_DECREF() functions are now implemented as opaque function calls, rather than accessing directly the PyObject.ob_refcnt member, if Python is built in debug mode and the Py_LIMITED_API macro targets Python 3.10 or newer. It became possible to support the limited C API in debug mode because the PyObject structure is the same in release and debug mode since Python 3.8 (see bpo-36465). The limited C API is still not supported in the --with-trace-refs special build (Py_TRACE_REFS macro). 02 April 2021, 13:45:37 UTC
442ad74 bpo-43687: Py_Initialize() creates singletons earlier (GH-25147) Reorganize pycore_interp_init() to initialize singletons before the the first PyType_Ready() call. Fix an issue when Python is configured using --without-doc-strings. 02 April 2021, 13:28:13 UTC
58384c6 Document PyCode_Addr2Line function. (GH-25111) * Document PyCode_Addr2Line function. * Clarify when to use PEP 626 line iterators. 02 April 2021, 12:24:57 UTC
bec8c78 bpo-43510: Fix emitting EncodingWarning from _io module. (GH-25146) I forget to check PyErr_WarnEx() return value. But it will fail when -Werror is used. 02 April 2021, 08:38:59 UTC
8bbfeb3 bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) * test__xxsubinterpreters * test_builtin * test_doctest * test_exceptions * test_opcodes * test_support * test_argparse * test_baseexception * test_bdb * test_bool * test_asdl_parser 02 April 2021, 03:53:46 UTC
bef7b26 bpo-43700: Replace Zulip badge with Discourse badge (GH-25141) Automerge-Triggered-By: GH:zware 02 April 2021, 03:30:40 UTC
8001775 bpo-43651: Fix test_compileall with PEP 597 (GH-25128) 02 April 2021, 00:01:57 UTC
c0ec448 bpo-43651: Fix EncodingWarning in lib2to3/pgen2/pgen.py (GH-25127) 01 April 2021, 23:59:15 UTC
036fc7d bpo-43651: Fix EncodingWarning in test_warnings (GH-25126) 01 April 2021, 23:57:05 UTC
bd4ab8e bpo-26053: Fix test_pdb.test_issue26053() (GH-25139) 01 April 2021, 19:05:51 UTC
e689cdc bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123) It should be PyMethod_Type, not Py_MethodType. 01 April 2021, 17:03:33 UTC
652bfde bpo-26053: Fix args echoed by pdb run command (#22033) 01 April 2021, 15:25:59 UTC
fcb55c0 bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069) * Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps. * Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber 01 April 2021, 15:00:31 UTC
2ac0515 bpo-43688: Fix Py_LIMITED_API version of xxlimited (GH-25135) xxlimited targets Python 3.10, not Python 3.16: fix the hexadecimal version number used in the Py_LIMITED_API macro. 01 April 2021, 13:09:33 UTC
61092a9 bpo-43690: stable_abi.py no longer parses macros (GH-25136) The stable_abi.py script no longer parse macros. Macro targets can be static inline functions which are not part of the stable ABI, only part of the limited C API. Run "make regen-limited-abi" to exclude PyType_HasFeature from Doc/data/stable_abi.dat. 01 April 2021, 12:13:42 UTC
baf10da bpo-43688: Run make regen-limited-abi (GH-25134) 01 April 2021, 09:29:46 UTC
18701a0 Fix typos in 3.10 "What's new" (GH-25104) 01 April 2021, 06:00:30 UTC
078a343 When printing stats, move radix tree info to its own section. (GH-25125) When printing stats, move radix tree info to its own section. Restore that the breakdown of bytes in arenas exactly accounts for the total of arena bytes allocated. Add an assert so that invariant doesn't break again. 01 April 2021, 03:46:31 UTC
58cffba bpo-43651: Fix EncodingWarning in test_io (GH-25097) 01 April 2021, 02:25:04 UTC
55f31be bpo-43651: Fix EncodingWarning in test_file and test_file_eintr (GH-25109) 01 April 2021, 02:23:03 UTC
ad493ed bpo-42955: Add _overlapped to sys.stdlib_module_names (GH-25122) 01 April 2021, 00:28:23 UTC
49aec1a Enum: add (re)import of Flag for doctests (GH-25118) Fix issue with CI doctest forgetting that ``Flag`` had already been imported. 31 March 2021, 16:20:08 UTC
202b546 Disambiguate that -m also terminates the option list in the manpage. (GH-25100) 31 March 2021, 12:31:38 UTC
f3ab670 bpo-37945: Fix test_locale.test_getsetlocale_issue1813() (#25110) Skip the test if setlocale() fails. 31 March 2021, 11:01:46 UTC
027d2cf Document GH-24624 31 March 2021, 10:22:37 UTC
dec0757 bpo-43179: Generalise alignment for optimised string routines (GH-24624) * Remove m68k-specific hack from ascii_decode On m68k, alignments of primitives is more relaxed, with 4-byte and 8-byte types only requiring 2-byte alignment, thus using sizeof(size_t) does not work. Instead, use the portable alternative. Note that this is a minimal fix that only relaxes the assertion and the condition for when to use the optimised version remains overly strict. Such issues will be fixed tree-wide in the next commit. NB: In C11 we could use _Alignof(size_t) instead, but for compatibility we use autoconf. * Optimise string routines for architectures with non-natural alignment C only requires that sizeof(x) is a multiple of alignof(x), not that the two are equal. Thus anywhere where we optimise based on alignment we should be using alignof(x) not sizeof(x). This is more annoying than it would be in C11 where we could just use _Alignof(x) (and alignof(x) in C++11), but since we still require only C99 we must plumb the information all the way from autoconf through the various typedefs and defines. 31 March 2021, 10:12:39 UTC
cfa1766 Revert "bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)" (#25108) This reverts commit ff3c9739bd69aa8b58007e63c9e40e6708b4761e. 31 March 2021, 09:49:41 UTC
ff3c973 bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103) It make `encoding="locale"` usable everywhere `encoding=None` is allowed. 31 March 2021, 05:26:08 UTC
1b4a9c7 bpo-42225: IDLE - document two unix-related problems. (#25078) 1. Bad IP masquerade rules can prevent startup. 2. X cannot handle some complex colored chars. 31 March 2021, 05:19:38 UTC
b775106 bpo-40066: Enum: modify `repr()` and `str()` (GH-22392) * Enum: streamline repr() and str(); improve docs - repr() is now ``enum_class.member_name`` - stdlib global enums are ``module_name.member_name`` - str() is now ``member_name`` - add HOW-TO section for ``Enum`` - change main documentation to be an API reference 31 March 2021, 04:17:26 UTC
51a85dd bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751) 30 March 2021, 21:11:29 UTC
73b20ae bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962) Complete the update to libmpdec-2.5.1. Co-authored-by: Stefan Krah <skrah@bytereef.org> 30 March 2021, 16:11:06 UTC
a7ff6df bpo-42134: Raise ImportWarning when calling find_module() in the import system (GH-25044) 30 March 2021, 15:43:03 UTC
cf35e05 bpo-43125: Fix: return expected type (str), not original value (bytes) in email/base64mime.py::body_encode (GH-24476) 30 March 2021, 08:37:37 UTC
dfeec34 bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038) 30 March 2021, 06:22:34 UTC
068ebf9 bpo-33164: blake2: Fix Coverity scan (GH-25060) 30 March 2021, 03:25:28 UTC
85b6b70 bpo-37448: Use radix tree for pymalloc address_in_range(). (GH-14474) The radix tree approach is a relatively simple and memory sanitary alternative to the old (slightly) unsanitary address_in_range(). To disable the radix tree map, set a preprocessor flag as follows: -DWITH_PYMALLOC_RADIX_TREE=0. Co-authored-by: Tim Peters <tim.peters@gmail.com> 30 March 2021, 02:51:15 UTC
a54fc68 bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) - [x] Build OpenSSL 1.1.1k for macOS - [x] Build OpenSSL 1.1.1k for Windows I have also updated multissl tester and various CI configurations to use latest OpenSSL. The versions were all over the place. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran 30 March 2021, 00:00:34 UTC
92a02c1 Fix tokenizer error when raw decoding null bytes (GH-25080) 29 March 2021, 23:24:49 UTC
09b90a0 bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) 29 March 2021, 22:38:51 UTC
c8b5738 bpo-43659: Fix test_curses on AIX (GH-25074) curses.update_lines_cols() is only defined when the curses library provides either resizeterm() or resize_term() functions which are optional and are not provided on AIX. 29 March 2021, 19:06:24 UTC
32430aa bpo-35930: Raising an exception raised in a "future" instance will create reference cycles (#24995) Before: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0002.png After: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0003.png 29 March 2021, 17:22:13 UTC
7bfd65e bpo-43648: Remove redundant datefmt option in logging file config (GH-25051) [bpo-43648](): Remove redundant datefmt option in logging file config Automerge-Triggered-By: GH:vsajip 29 March 2021, 14:16:19 UTC
c1b073a bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. (GH-25057) 29 March 2021, 13:39:31 UTC
70cdf18 bpo-40645: Fix reference leak in the _hashopenssl extension (GH-25063) 29 March 2021, 13:17:40 UTC
9b99947 bpo-42988: Remove the pydoc getfile feature (GH-25015) CVE-2021-3426: Remove the "getfile" feature of the pydoc module which could be abused to read arbitrary files on the disk (directory traversal vulnerability). Moreover, even source code of Python modules can contain sensitive data like passwords. Vulnerability reported by David Schwörer. 29 March 2021, 12:40:40 UTC
4827483 bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) See [PEP 597](https://www.python.org/dev/peps/pep-0597/). * Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`. * Add EncodingWarning * Add io.text_encoding() * open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled. * _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python) * bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding(). * What's new entry 29 March 2021, 03:28:14 UTC
261a452 bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050) 28 March 2021, 22:48:05 UTC
fb1d01b bpo-31907: [doc] clarify that str.format() does not support arbitrary expressions (#25053) 28 March 2021, 20:47:20 UTC
af50c84 bpo-43644: Add docs for importlib.resources.as_file. (#25048) 28 March 2021, 00:25:53 UTC
29c451c bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) This test checks result code of the connection directly, so it never raises an exception that can be suppressed by `support.transient_internet`. Directly support skipping the test in case of unreachable network. 27 March 2021, 21:52:28 UTC
a53e9a7 bpo-39231: correct tutorial annotations section (GH-25029) 27 March 2021, 17:20:58 UTC
bacefbf bpo-43466: Unsupported static build hack (GH-25002) Add undocumented hack to statically link ssl and hashlib modules with OpenSSL. Signed-off-by: Christian Heimes <christian@python.org> 27 March 2021, 17:03:54 UTC
9798cef bpo-39616: clarify SSLContext.check_hostname effect (GH-18484) It doesn't actually affect whether match_hostname() is called (it never is in this context any longer), but whether hostname verification occurs in the first place. 27 March 2021, 14:20:11 UTC
933dfd7 bpo-40645: use C implementation of HMAC (GH-24920) - [x] fix tests - [ ] add test scenarios for old/new code. Signed-off-by: Christian Heimes <christian@python.org> 27 March 2021, 13:55:03 UTC
5d6e8c1 bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) Signed-off-by: Christian Heimes <christian@python.org> 27 March 2021, 13:44:04 UTC
11b85ab bpo-43636: Validate the version tag in _PyType_Lookup (GH-25032) 27 March 2021, 03:51:46 UTC
027b669 bpo-43354: xmlrpc: Fix type documentation for Fault.faultCode (GH-24707) The type of `faultCode` has to be an `int` instead of a `str`. cf http://xmlrpc.com/spec.md Pinging @pganssle 26 March 2021, 21:09:09 UTC
1899087 bpo-42136: Deprecate module_repr() as found in importlib (GH-25022) 26 March 2021, 18:55:07 UTC
21a2cab bpo-43620: Remove reference to os.sep from os.path.join() doc (#25025) - removed ambiguous reference to os.sep from os.path.join() doc 26 March 2021, 16:02:32 UTC
3bb1987 Revert "bpo-40521: Remove freelist from collections.deque() (GH-21073)" (GH-24944) This reverts commit 32f2eda85957365d208f499b730d30b7eb419741. It can be re-applied if the subinterpreter PEP is approved. Otherwise, the commit degraded performance with no offsetting benefit. 25 March 2021, 20:32:23 UTC
929c903 bpo-43416: Add Include/README.rst (GH-24884) 25 March 2021, 16:16:31 UTC
56816bb "exists" -> "exist" in What's New 3.10 (GH-25019) 25 March 2021, 16:14:22 UTC
d41bddd Move big block of macros out of function to improve readability. (GH-25020) 25 March 2021, 12:00:30 UTC
b045cda Doc: io: Remove "In-memory streams" section (GH-24927) 25 March 2021, 07:23:50 UTC
df9ade9 AC: Update unsupported_special_methods (GH-24956) 25 March 2021, 00:19:23 UTC
7278959 bpo-43198: Revert 3dd2157 that removed freeslot tracking. (#25010) 24 March 2021, 22:33:27 UTC
8efad61 bpo-41064: Improve syntax error for invalid usage of '**' in f-strings (GH-25006) 24 March 2021, 19:34:17 UTC
4958f5d Only check evalbreaker after calls and on backwards egdes. Makes sure that __exit__ or __aexit__ is called in with statments in case of interrupt. (GH-18334) 24 March 2021, 17:56:12 UTC
232f4cb Fix typo in fuzzer.c (GH-25013) 24 March 2021, 15:47:21 UTC
9cb31d6 bpo-42137: have ModuleType.__repr__ prefer __spec__ over module_repr() (GH-24953) This is to work towards the removal of the use of module_repr() in Python 3.12 (documented as deprecated since 3.4). 24 March 2021, 15:26:56 UTC
3ba3d51 bpo-42914: add a pprint underscore_numbers option (GH-24864) pprint() gains a new boolean underscore_numbers kwarg to emit integers with thousands separated by an underscore character for improved readability (for example 1_000_000 instead of 1000000). 24 March 2021, 08:23:20 UTC
a02683a bpo-31861: Fix reference leak in builtin_anext_impl() (GH-25008) 24 March 2021, 01:42:13 UTC
8370e07 bpo-43244: Remove the pyarena.h header (GH-25007) Remove the pyarena.h header file with functions: * PyArena_New() * PyArena_Free() * PyArena_Malloc() * PyArena_AddPyObject() These functions were undocumented, excluded from the limited C API, and were only used internally by the compiler. Add pycore_pyarena.h header. Rename functions: * PyArena_New() => _PyArena_New() * PyArena_Free() => _PyArena_Free() * PyArena_Malloc() => _PyArena_Malloc() * PyArena_AddPyObject() => _PyArena_AddPyObject() 24 March 2021, 01:23:01 UTC
919d42d bpo-31861: Fix possible crash in PyAnextAwaitable_New (GH-25005) 24 March 2021, 00:30:02 UTC
57364ce bpo-43244: Remove parser_interface.h header file (GH-25001) Remove parser functions using the "struct _mod" type, because the AST C API was removed: * PyParser_ASTFromFile() * PyParser_ASTFromFileObject() * PyParser_ASTFromFilename() * PyParser_ASTFromString() * PyParser_ASTFromStringObject() These functions were undocumented and excluded from the limited C API. Add pycore_parser.h internal header file. Rename functions: * PyParser_ASTFromFileObject() => _PyParser_ASTFromFile() * PyParser_ASTFromStringObject() => _PyParser_ASTFromString() These functions are no longer exported (replace PyAPI_FUNC() with extern). Remove also _PyPegen_run_parser_from_file() function. Update test_peg_generator to use _PyPegen_run_parser_from_file_pointer() instead. 24 March 2021, 00:29:09 UTC
a054f6b bpo-43452: Document the PyType_Lookup optimizations in the What's New for 3.10 (GH-24949) 24 March 2021, 00:04:52 UTC
d969202 bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check (GH-25004) 23 March 2021, 23:57:03 UTC
a81fca6 bpo-43244: Add pycore_compile.h header file (GH-25000) Remove the compiler functions using "struct _mod" type, because the public AST C API was removed: * PyAST_Compile() * PyAST_CompileEx() * PyAST_CompileObject() * PyFuture_FromAST() * PyFuture_FromASTObject() These functions were undocumented and excluded from the limited C API. Rename functions: * PyAST_CompileObject() => _PyAST_Compile() * PyFuture_FromASTObject() => _PyFuture_FromAST() Moreover, _PyFuture_FromAST() is no longer exported (replace PyAPI_FUNC() with extern). _PyAST_Compile() remains exported for test_peg_generator. Remove also compatibility functions: * PyAST_Compile() * PyAST_CompileEx() * PyFuture_FromAST() 23 March 2021, 23:51:50 UTC
back to top