https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
cc12888 Remove unused suspicious rule in the docs 01 March 2021, 16:48:59 UTC
06c245f Python 3.10.0a6 01 March 2021, 16:45:40 UTC
8c9453b Fix typo in Mac/README.rst (#24682) targetting -> targeting 01 March 2021, 16:11:23 UTC
f4d7d46 closes bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680) 01 March 2021, 14:44:46 UTC
c994ffe bpo-11717: fix ssize_t redefinition error when targeting 32bit Windows app (GH-24479) 01 March 2021, 11:18:33 UTC
0242494 bpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677) 01 March 2021, 07:39:08 UTC
0608425 bpo-43103: Fix build failure with macOS framework builds. (GH-24676) 01 March 2021, 07:04:02 UTC
a65b050 bpo-42603: Add whatsnew and ACKS entries. (GH-24675) 01 March 2021, 05:27:20 UTC
a22bca6 bpo-42128: Add documentation for pattern matching (PEP 634) (#24664) This is a first edition, ready to go out with the implementation. We'll iterate during the rest of the period leading up to 3.10.0. Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandt@python.org> Co-authored-by: Raymond Hettinger <1623689+rhettinger@users.noreply.github.com> Co-authored-by: Guido van Rossum <guido@python.org> 01 March 2021, 04:08:38 UTC
d202794 bpo-42603: Use pkg-config to get TCL/TK paths for tkinter. (GH-23721) 01 March 2021, 03:29:57 UTC
a8e2615 bpo-42128: Add documentation for the new match-based AST nodes (GH-24673) * bpo-42128: Add documentation for the new match-based AST nodes * Update Doc/library/ast.rst Co-authored-by: Carol Willing <carolcode@willingconsulting.com> * Fix trailing whitespace Co-authored-by: Carol Willing <carolcode@willingconsulting.com> 01 March 2021, 02:08:37 UTC
41934b3 GH-42128: Add Pattern Matching to What's New (#24667) * Add Pattern Matching to What's New * add review suggestions * fix stray indent * Add suggestions from gvr and lr * trim whitespace 28 February 2021, 23:43:17 UTC
0d7ad9f bpo-29753: fix merging packed bitfields in ctypes struct/union (GH-19850) From the commit message: > When the structure is packed we should always expand when needed, > otherwise we will add some padding between the fields. This patch makes > sure we always merge bitfields together. It also changes the field merging > algorithm so that it handles bitfields correctly. Automerge-Triggered-By: GH:jaraco 28 February 2021, 22:43:19 UTC
af5fa13 bpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite (GH-24643) 28 February 2021, 22:41:09 UTC
e8f5ddd Add whatsnew note for GH-22904 (#24672) 28 February 2021, 21:32:04 UTC
73a85c4 bpo-41972: Use the two-way algorithm for string searching (GH-22904) Implement an enhanced variant of Crochemore and Perrin's Two-Way string searching algorithm, which reduces worst-case time from quadratic (the product of the string and pattern lengths) to linear. This applies to forward searches (like``find``, ``index``, ``replace``); the algorithm for reverse searches (like ``rfind``) is not changed. Co-authored-by: Tim Peters <tim.peters@gmail.com> 28 February 2021, 18:20:50 UTC
2183d06 bpo-43251: sqlite3_column_name() failures now raise MemoryError (GH-24609) 28 February 2021, 17:01:06 UTC
1e3c682 bpo-43345: Enhance TypedDict documentation. (#24668) 28 February 2021, 07:02:14 UTC
bf9de7a bpo-43335: Update macro to check gcc version (GH-24662) 28 February 2021, 00:16:24 UTC
c71d24f bpo-43321: Fix SystemError in getargs.c (GH-24656) 27 February 2021, 11:31:03 UTC
145bf26 bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917) Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Talin <viridia@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com> 26 February 2021, 22:51:55 UTC
cc02b4f bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented (#16459) 26 February 2021, 19:58:39 UTC
5e48e83 bpo-43294: Remove unused variables in pysqlite_connection_*() (GH-24658) 26 February 2021, 14:30:22 UTC
7956ef8 bpo-43317: Use io.DEFAULT_BUFFER_SIZE instead of 1024 in gzip CLI (#24645) This improves the performance slightly. 26 February 2021, 12:17:51 UTC
25935a2 Update logging.config.rst (GH-24630) # a typo fix Automerge-Triggered-By: GH:vsajip 26 February 2021, 10:30:05 UTC
28a30bc closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606) Automerge-Triggered-By: GH:benjaminp 26 February 2021, 04:24:21 UTC
c6ccdfb bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650) Co-authored-by: Arkadiusz Miśkiewicz <arekm@maven.pl> 26 February 2021, 03:24:32 UTC
9525a18 bpo-43316: gzip: Fix sys.exit() usage. (GH-24652) 26 February 2021, 02:09:06 UTC
3150754 bpo-43314: Remove SQLITE_OPEN_URI ifdef (GH-24637) SQLite 3.7.15 is required as by GH-24106. SQLITE_OPEN_URI was added in SQLite 3.7.7. 26 February 2021, 00:48:19 UTC
91ea37c bpo-43290: Remove workaround from pysqlite_step() (GH-24638) From the SQLite 3.5.3 changelog: sqlite3_step() returns SQLITE_MISUSE instead of crashing when called with a NULL parameter. The workaround no longer needed because we no longer support SQLite releases older than 3.7.15. 25 February 2021, 23:39:34 UTC
cc3df63 bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647) Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is the proper behaviour for a tool that can be used in scripts. 25 February 2021, 11:30:24 UTC
70f8ebe Remove comment about a private email.headerregistry (GH-24233) It's been public since 2012: ea9766897bf1d2ccf610ff9ce805acca7c4cce6f 24 February 2021, 21:21:32 UTC
32181be bpo-43293: Doc: move note about GIL to top of threading module (GH-24622) The note about the GIL was buried pretty deep in the threading documentation, and this made it hard for first time users to discover why their attempts at using threading to parallelizing their application did not work. In this commit, the note is moved to the top of the module documention for visibility. 24 February 2021, 18:39:38 UTC
1f43340 bpo-42151: don't set specified_attributes=1 in pure Python ElementTree (GH-22987) 24 February 2021, 02:25:31 UTC
b9fe16a bpo-41841: Revise header (GH-24633) 24 February 2021, 02:24:33 UTC
2827e8a bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) Printing to IDLE's Shell is often slower than printing to a system terminal, but it can be made faster by pre-formatting a single string before printing. 24 February 2021, 00:39:51 UTC
b798ab0 bpo-43146: fix None-handling in single-arg traceback.print_exception(None) (GH-24629) (The previous commit fixed print_exception(None, None, None).) 23 February 2021, 17:43:04 UTC
26f18b8 bpo-43146: fix regression in traceback.print_exception(None) (GH-24463) 23 February 2021, 14:58:47 UTC
7bb1caf bpo-43239: Export PyCFunction_New with PyAPI_FUNC (GH-24551) 23 February 2021, 12:23:56 UTC
2d6f2ee bpo-36346: Document removal schedule of deprecate APIs (GH-20879) We will remove wstr cache in Python 3.12. See PEP 623. 22 February 2021, 23:06:51 UTC
91a639a bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. (GH-20927) Emit DeprecationWarning when PyArg_Parse*() is called with 'u', 'Z' format. See PEP 623. 22 February 2021, 13:11:48 UTC
5a4aa4c bpo-23882: Doc: Clarify unittest discovery document (GH-21560) Unittest discovery support namespace package as start directory. But it doesn't find namespace package in the start directory automatically. Otherwise, unittest discovery search into unexpected directories like `vendor/` or `node_modules/`. 22 February 2021, 06:14:26 UTC
b19855b bpo-42808: Add PyType_Type.tp_vectorcall for type(obj) performance (GH-24058) 22 February 2021, 02:59:16 UTC
01806d5 bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592) When very large data remains in TextIOWrapper, flush() may fail forever. So prevent that data larger than chunk_size is remained in TextIOWrapper internal buffer. Co-Authored-By: Eryk Sun 21 February 2021, 23:29:30 UTC
84f7afe Fix failed merge of bpo-43288. (GH-24614) 21 February 2021, 22:22:14 UTC
50288aa bpo-43288: Fix bug in test_importlib test. (GH-24612) 21 February 2021, 21:48:18 UTC
d5fc998 bpo-42093: Cleanup _PyDict_GetItemHint() (GH-24582) * No longer save/restore the current exception. It is no longer used with an exception raised. * No longer clear the current exception on error: it's now up to the caller. 21 February 2021, 11:02:04 UTC
38b6c2a bpo-43269: Remove redundant extern keywords (GH-24605) 21 February 2021, 10:07:49 UTC
4cf7bb8 bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604) In the Running User Code section, gather together paragraphs about two processes and the sys.stdstream replacements, preparing to add another. 21 February 2021, 07:44:11 UTC
2f9ef51 bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595) Previously, the doc at least strongly implied that it had to be an iterator. 21 February 2021, 02:33:25 UTC
bf838a6 bpo-43269: Clean up sqlite3 file scope (GH-24578) 21 February 2021, 00:29:19 UTC
d439fb3 bpo-43277: Add PySet_CheckExact to the C-API (GH-24598) For some mysterious reason we have PySet_Check, PyFrozenSet_Check, PyAnySet_Check, PyAnySet_CheckExact and PyFrozenSet_CheckExact but no PySet_CheckExact. 20 February 2021, 18:03:08 UTC
46496f9 bpo-42990: Functions inherit current builtins (GH-24564) The types.FunctionType constructor now inherits the current builtins if the globals dictionary has no "__builtins__" key, rather than using {"None": None} as builtins: same behavior as eval() and exec() functions. Defining a function with "def function(...): ..." in Python is not affected, globals cannot be overriden with this syntax: it also inherits the current builtins. PyFrame_New(), PyEval_EvalCode(), PyEval_EvalCodeEx(), PyFunction_New() and PyFunction_NewWithQualName() now inherits the current builtins namespace if the globals dictionary has no "__builtins__" key. * Add _PyEval_GetBuiltins() function. * _PyEval_BuiltinsFromGlobals() now uses _PyEval_GetBuiltins() if builtins cannot be found in globals. * Add tstate parameter to _PyEval_BuiltinsFromGlobals(). 20 February 2021, 14:17:18 UTC
4233ff3 Fix typo in launcher.c (GH-24497) 20 February 2021, 10:03:50 UTC
292f231 Fix typo in dis module doc (GH-24509) 20 February 2021, 04:22:37 UTC
b30fcba bpo-43042: Augment tutorial sentence (GH-24514) Calling same function also gets new local namespace. 20 February 2021, 00:26:21 UTC
b4af629 bpo-42825: Enable /OPT:REF (GH-24098) We explicitly disable /OPT:ICF as some manual optimisations depend on some functions still having distinct pointers (such as wrap_binary_func and wrap_binary_func_l). 19 February 2021, 23:27:01 UTC
2d3e463 closes bpo-43266: Improve array formatting. (GH-24573) 19 February 2021, 15:32:31 UTC
4a6bf27 bpo-35134: Move non-limited C API files to Include/cpython/ (GH-24561) Include/{odictobject.h,parser_interface.h,picklebufobject.h,pydebug.h,pyfpe.h} into Include/cpython/. Parser: peg_api: include Python.h instead of parser_interface.h. 19 February 2021, 14:55:46 UTC
839184f bpo-43268: local_clear() uses _PyInterpreterState_GET() (GH-24583) Cleanup also the code. 19 February 2021, 14:51:36 UTC
bcb094b bpo-43268: Pass interp rather than tstate to internal functions (GH-24580) Pass the current interpreter (interp) rather than the current Python thread state (tstate) to internal functions which only use the interpreter. Modified functions: * _PyXXX_Fini() and _PyXXX_ClearFreeList() functions * _PyEval_SignalAsyncExc(), make_pending_calls() * _PySys_GetObject(), sys_set_object(), sys_set_object_id(), sys_set_object_str() * should_audit(), set_flags_from_config(), make_flags() * _PyAtExit_Call() * init_stdio_encoding() * etc. 19 February 2021, 14:10:45 UTC
a486054 bpo-43270: Remove private _PyErr_OCCURRED() macro (GH-24579) Remove the private _PyErr_OCCURRED() macro: use the public PyErr_Occurred() function instead. CPython internals must use the internal _PyErr_Occurred(tstate) function instead: it is the most efficient way to check if an exception was raised. 19 February 2021, 14:08:54 UTC
acde3f1 bpo-43268: Remove abusive usage of tstate in sysmodule.c (#24581) Remove explicit tstate usage in sysmodule.c when it's only used raise exceptions: get it implicitly using PyErr_XXX() functions. 19 February 2021, 14:07:59 UTC
101bf69 bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577) The _Py_IsMainInterpreter() function now expects interp rather than tstate. 19 February 2021, 12:33:31 UTC
6207810 bpo-40522: Replace PyThreadState_GET() with PyThreadState_Get() (GH-24575) Use directly the PyThreadState_Get() function in public header files, since PyThreadState_GET() macro is just an alias to it in pratice in these files. 19 February 2021, 12:21:51 UTC
5592f2b bpo-43268: Replace _PyThreadState_GET() with _PyInterpreterState_GET() (GH-24576) Replace _PyThreadState_GET() with _PyInterpreterState_GET() in functions which only need the current interpreter, but don't need the current Python thread state. Replace also _PyThreadState_UncheckedGet() with _PyThreadState_GET() in faulthandler.c, since _PyThreadState_UncheckedGet() is just an alias to _PyThreadState_GET() in practice. 19 February 2021, 12:21:28 UTC
2bb0bf4 bpo-43258: Make sqlite3 callback functions static (GH-24574) 19 February 2021, 11:59:24 UTC
979b23c bpo-43258: Don't allocate sqlite3 aggregate context for empty queries (GH-24569) 19 February 2021, 11:20:32 UTC
e92d67d closes bpo-43254: Fix *snprintf() man page refs. (GH-24563) 19 February 2021, 01:53:33 UTC
ffa55d2 bpo-39448: Add regen-frozen makefile target. (GH-18174) Add the "regen-frozen" makefile target that regenerates the code for the frozen __hello__ module. 19 February 2021, 00:49:12 UTC
743932d Remove all links to mingw.org (GH-24552) This lease on this domain has lapsed. This not only makes these dead links, but a potential attack vector for readers of python.org as the domain can be obtained by an untrustworthy party. I considered redirecting these links to http://mingw-w64.org/ which is a maintained fork of mingw, but beyond my unfamiliarity with the exact level of compatibility, at the time of this PR that site had an expired cert and so is not much of a vulnerability fix. Automerge-Triggered-By: GH:Mariatta 18 February 2021, 19:43:35 UTC
44085a3 bpo-42990: Refactor _PyFrame_New_NoTrack() (GH-24566) * Refactor _PyFrame_New_NoTrack() and PyFunction_NewWithQualName() code. * PyFrame_New() checks for _PyEval_BuiltinsFromGlobals() failure. * Fix a ref leak in _PyEval_BuiltinsFromGlobals() error path. * Complete PyFunction_GetModule() documentation: it returns a borrowed reference and it can return NULL. * Move _PyEval_BuiltinsFromGlobals() definition to the internal C API. * PyFunction_NewWithQualName() uses _Py_IDENTIFIER() API for the "__name__" string to make it compatible with subinterpreters. 18 February 2021, 18:20:16 UTC
cc96231 bpo-43249: Improve scoping in _pysqlite_fetch_one_row() (GH-24565) 18 February 2021, 17:13:14 UTC
47feb1f bpo-43249: sqlite3_column_bytes() must follow sqlite_column_blob() (GH-24562) 18 February 2021, 15:44:43 UTC
7be00ee bpo-42960: Add resource.RLIMIT_KQUEUES constant from FreeBSD (GH-24251) 18 February 2021, 15:26:20 UTC
a3c3ffa bpo-42990: Add __builtins__ attribute to functions (GH-24559) Expose the new PyFunctionObject.func_builtins member in Python as a new __builtins__ attribute on functions. Document also the behavior change in What's New in Python 3.10. 18 February 2021, 11:35:37 UTC
366dc3a bpo-35134: Move Include/{pyarena.h,pyctype.h} to Include/cpython/ (GH-24550) Move non-limited C API headers pyarena.h and pyctype.h into Include/cpython/ directory. 17 February 2021, 18:30:31 UTC
630264a bpo-40170: Move 3 NEWS entries to the C API section (GH-24555) 17 February 2021, 18:15:39 UTC
cd80f43 bpo-40170: Always define PyExceptionClass_Name() as a function (GH-24553) Remove macro variant of PyExceptionClass_Name(). 17 February 2021, 10:51:08 UTC
801bb0b bpo-43103: Add configure --without-static-libpython (GH-24418) Add a new configure --without-static-libpython option to not build the libpythonMAJOR.MINOR.a static library and not install the python.o object file. Fix smelly.py and stable_abi.py tools when libpython3.10.a is missing. 17 February 2021, 10:14:42 UTC
6a41775 Update urllib2.rst (GH-24236) fixed a minor glitch in the order of two words. 17 February 2021, 00:47:02 UTC
cc54001 bpo-40170: Always define PyIter_Check() as a function (GH-24548) 16 February 2021, 15:05:58 UTC
17dbd40 bpo-35134, Include: Move pytime.h to cpython/pytime.h (GH-23988) This change is backward compatible since C extension modules must not include "pytime.h" directly, but only include "Python.h". 16 February 2021, 12:04:38 UTC
871eb42 bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535) 16 February 2021, 07:50:00 UTC
8a8b5df bpo-43155: Add PyCMethod_New to PC/python3dll.c (GH-24500) 16 February 2021, 00:14:13 UTC
755f3c1 bpo-42819, readline: Disable bracketed paste (GH-24108) 15 February 2021, 23:28:24 UTC
813db24 Add a warning block around the get_referrers() documentation (GH-24511) 15 February 2021, 23:03:38 UTC
d020496 bpo-43231: Correctly calculate the curses color pair limit when checking for it (GH-24541) 15 February 2021, 22:15:49 UTC
ab2d481 bpo-43231: Fix test.test_curses.TestCurses.test_init_pair when running under -R (GH-24539) 15 February 2021, 21:35:48 UTC
a2f0654 bpo-42967: Fix urllib.parse docs and make logic clearer (GH-24536) 15 February 2021, 17:00:20 UTC
4bb2a1e bpo-43181: Convert PyObject_TypeCheck to static inline function (GH-24533) 15 February 2021, 16:19:24 UTC
fcbe0cb bpo-42967: only use '&' as a query string separator (#24297) bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl(). urllib.parse will only us "&" as query string separator by default instead of both ";" and "&" as allowed in earlier versions. An optional argument seperator with default value "&" is added to specify the separator. Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Éric Araujo <merwok@netwok.org> 14 February 2021, 22:41:57 UTC
1b57426 bpo-43210: Fix byteswap comment in sha512.module.c (GH-24518) 14 February 2021, 14:14:26 UTC
3cf0833 bpo-43152: Update assert statement to remove unused warning (GH-24473) 14 February 2021, 06:54:39 UTC
b676f5f bpo-43202: More codeop._maybe_compile clean-ups (GH-24512) Add comment, end others with period, remove unused variables, initialize others only when needed, and add explicit return. 13 February 2021, 06:49:18 UTC
762fe7d bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 13 February 2021, 04:57:12 UTC
fd053fd bpo-43172: readline now passes its tests when built against libedit (GH-24499) bpo-43172: readline now passes its tests when built against libedit. Existing irreconcilable API differences remain in readline.get_begidx and readline.get_endidx behavior based on libreadline vs libedit use. A note about that has been documented. 12 February 2021, 20:04:46 UTC
5ec7d53 bpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507) Automerge-Triggered-By: GH:tiran 12 February 2021, 10:34:11 UTC
2068b26 bpo-43202: Immediately return code object in codeop._maybe_compile (GH-24508) The return used to be after code that was ignored when there was a code object. 12 February 2021, 00:31:10 UTC
fedd86d bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498) 12 February 2021, 00:06:47 UTC
back to top