summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-43251: sqlite3_column_name() failures now raise MemoryError (GH-24609)Erlend Egeberg Aasland2021-02-282-24/+31
|
* bpo-43345: Enhance TypedDict documentation. (#24668)Paul Bryan2021-02-281-12/+13
|
* bpo-43335: Update macro to check gcc version (GH-24662)Dong-hee Na2021-02-281-2/+2
|
* bpo-43321: Fix SystemError in getargs.c (GH-24656)Inada Naoki2021-02-272-2/+4
|
* bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)Brandt Bucher2021-02-2643-1444/+9704
| | | | | Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Talin <viridia@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented ↵Alex2021-02-264-21/+73
| | | | (#16459)
* bpo-43294: Remove unused variables in pysqlite_connection_*() (GH-24658)Erlend Egeberg Aasland2021-02-261-6/+4
|
* bpo-43317: Use io.DEFAULT_BUFFER_SIZE instead of 1024 in gzip CLI (#24645)Ruben Vorderman2021-02-262-1/+4
| | | This improves the performance slightly.
* Update logging.config.rst (GH-24630)takahashi2021-02-261-1/+1
| | | | | # a typo fix Automerge-Triggered-By: GH:vsajip
* closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build ↵Joseph Shen2021-02-262-2/+3
| | | | | with GCC/Clang (GH-24606) Automerge-Triggered-By: GH:benjaminp
* bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650)Ammar Askar2021-02-261-0/+1
| | | Co-authored-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
* bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)Inada Naoki2021-02-262-2/+2
|
* bpo-43314: Remove SQLITE_OPEN_URI ifdef (GH-24637)Erlend Egeberg Aasland2021-02-261-11/+0
| | | | | SQLite 3.7.15 is required as by GH-24106. SQLITE_OPEN_URI was added in SQLite 3.7.7.
* bpo-43290: Remove workaround from pysqlite_step() (GH-24638)Erlend Egeberg Aasland2021-02-251-9/+3
| | | | | | | | | 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.
* bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)Ruben Vorderman2021-02-253-6/+8
| | | | 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.
* Remove comment about a private email.headerregistry (GH-24233)Florian Bruhin2021-02-241-4/+0
| | | It's been public since 2012: ea9766897bf1d2ccf610ff9ce805acca7c4cce6f
* bpo-43293: Doc: move note about GIL to top of threading module (GH-24622)Guanzhong Chen2021-02-241-13/+13
| | | | | | | | 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.
* bpo-42151: don't set specified_attributes=1 in pure Python ElementTree ↵Felix C. Stegerman2021-02-243-2/+22
| | | | (GH-22987)
* bpo-41841: Revise header (GH-24633)Terry Jan Reedy2021-02-241-2/+3
|
* bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)Terry Jan Reedy2021-02-244-1/+25
| | | | | | 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.
* bpo-43146: fix None-handling in single-arg traceback.print_exception(None) ↵Irit Katriel2021-02-233-1/+10
| | | | | (GH-24629) (The previous commit fixed print_exception(None, None, None).)
* bpo-43146: fix regression in traceback.print_exception(None) (GH-24463)Irit Katriel2021-02-233-1/+22
|
* bpo-43239: Export PyCFunction_New with PyAPI_FUNC (GH-24551)Petr Viktorin2021-02-232-0/+8
|
* bpo-36346: Document removal schedule of deprecate APIs (GH-20879)Inada Naoki2021-02-223-8/+9
| | | We will remove wstr cache in Python 3.12. See PEP 623.
* bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. (GH-20927)Inada Naoki2021-02-224-27/+69
| | | | | Emit DeprecationWarning when PyArg_Parse*() is called with 'u', 'Z' format. See PEP 623.
* bpo-23882: Doc: Clarify unittest discovery document (GH-21560)Inada Naoki2021-02-221-6/+12
| | | | | | | | 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/`.
* bpo-42808: Add PyType_Type.tp_vectorcall for type(obj) performance (GH-24058)Dennis Sweeney2021-02-222-0/+20
|
* bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)Inada Naoki2021-02-213-3/+46
| | | | | | | | 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
* Fix failed merge of bpo-43288. (GH-24614)Neil Schemenauer2021-02-211-2/+3
|
* bpo-43288: Fix bug in test_importlib test. (GH-24612)Neil Schemenauer2021-02-212-0/+6
|
* bpo-42093: Cleanup _PyDict_GetItemHint() (GH-24582)Victor Stinner2021-02-212-36/+20
| | | | | | * 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.
* bpo-43269: Remove redundant extern keywords (GH-24605)Erlend Egeberg Aasland2021-02-216-6/+12
|
* bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)Terry Jan Reedy2021-02-212-36/+37
| | | | | In the Running User Code section, gather together paragraphs about two processes and the sys.stdstream replacements, preparing to add another.
* bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595)Terry Jan Reedy2021-02-212-2/+4
| | | Previously, the doc at least strongly implied that it had to be an iterator.
* bpo-43269: Clean up sqlite3 file scope (GH-24578)Erlend Egeberg Aasland2021-02-216-19/+37
|
* bpo-43277: Add PySet_CheckExact to the C-API (GH-24598)Pablo Galindo2021-02-206-5/+20
| | | For some mysterious reason we have PySet_Check, PyFrozenSet_Check, PyAnySet_Check, PyAnySet_CheckExact and PyFrozenSet_CheckExact but no PySet_CheckExact.
* bpo-42990: Functions inherit current builtins (GH-24564)Victor Stinner2021-02-207-31/+74
| | | | | | | | | | | | | | | | | | | | 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().
* Fix typo in launcher.c (GH-24497)Ikko Ashimine2021-02-201-2/+2
|
* Fix typo in dis module doc (GH-24509)Irit Katriel2021-02-201-1/+1
|
* bpo-43042: Augment tutorial sentence (GH-24514)Terry Jan Reedy2021-02-201-1/+2
| | | Calling same function also gets new local namespace.
* bpo-42825: Enable /OPT:REF (GH-24098)Austin Lamb2021-02-191-0/+1
| | | 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).
* closes bpo-43266: Improve array formatting. (GH-24573)Erlend Egeberg Aasland2021-02-191-4/+4
|
* bpo-35134: Move non-limited C API files to Include/cpython/ (GH-24561)Nicholas Sim2021-02-1914-34/+42
| | | | | | 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.
* bpo-43268: local_clear() uses _PyInterpreterState_GET() (GH-24583)Victor Stinner2021-02-191-15/+14
| | | Cleanup also the code.
* bpo-43268: Pass interp rather than tstate to internal functions (GH-24580)Victor Stinner2021-02-1929-245/+240
| | | | | | | | | | | | | | | 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.
* bpo-43270: Remove private _PyErr_OCCURRED() macro (GH-24579)Victor Stinner2021-02-193-7/+3
| | | | | | | | 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.
* bpo-43268: Remove abusive usage of tstate in sysmodule.c (#24581)Victor Stinner2021-02-191-18/+12
| | | | Remove explicit tstate usage in sysmodule.c when it's only used raise exceptions: get it implicitly using PyErr_XXX() functions.
* bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577)Victor Stinner2021-02-199-15/+15
| | | | The _Py_IsMainInterpreter() function now expects interp rather than tstate.
* bpo-40522: Replace PyThreadState_GET() with PyThreadState_Get() (GH-24575)Victor Stinner2021-02-192-5/+5
| | | | | 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.
* bpo-43268: Replace _PyThreadState_GET() with _PyInterpreterState_GET() ↵Victor Stinner2021-02-193-11/+9
| | | | | | | | | | | (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.