summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42087: Remove support for AIX 5.3 and below (GH-22830)Kevin Adler2020-11-167-64/+23
| | | | | | As AIX 5.3 and below do not support thread_cputime, it was decided in https://bugs.python.org/issue40680 to require AIX 6.1 and above. This commit removes workarounds for — and references to — older, unsupported AIX versions.
* bpo-37205: time.time() cannot fail with fatal error (GH-23314)Victor Stinner2020-11-165-158/+228
| | | | | | | | | | | | | | | time.time(), time.perf_counter() and time.monotonic() functions can no longer fail with a Python fatal error, instead raise a regular Python exception on failure. Remove _PyTime_Init(): don't check system, monotonic and perf counter clocks at startup anymore. On error, _PyTime_GetSystemClock(), _PyTime_GetMonotonicClock() and _PyTime_GetPerfCounter() now silently ignore the error and return 0. They cannot fail with a Python fatal error anymore. Add py_mach_timebase_info() and win_perf_counter_frequency() sub-functions.
* bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)Victor Stinner2020-11-163-2/+38
| | | | | Fix the threading.Thread class at fork: do nothing if the thread is already stopped (ex: fork called at Python exit). Previously, an error was logged in the child process.
* bpo-37205: time.perf_counter() and time.monotonic() are system-wide (GH-23284)Victor Stinner2020-11-163-21/+43
| | | | | | | time.perf_counter() on Windows and time.monotonic() on macOS are now system-wide. Previously, they used an offset computed at startup to reduce the precision loss caused by the float type. Use time.perf_counter_ns() and time.monotonic_ns() added in Python 3.7 to avoid this precision loss.
* bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)Yash Shete2020-11-162-3/+4
| | | The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
* bpo-42332: Add weakref slot to types.GenericAlias (GH-23250)kj2020-11-163-38/+55
| | | Automerge-Triggered-By: GH:gvanrossum
* More updates to the descriptor howto guide (GH-23238)Raymond Hettinger2020-11-161-45/+62
|
* bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)Dominik11232020-11-161-0/+3
|
* bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281)Serhiy Storchaka2020-11-153-7/+94
|
* bpo-42351: Avoid error when opening header with non-UTF8 encoding (GH-23279)Ronald Oussoren2020-11-141-1/+1
| | | | grep_headers_for() would error out when a header contained text that cannot be interpreted as UTF-8.
* bpo-41832: Restore note about NULL in PyType_Slot.pfunc (GH-23243)Hai Shi2020-11-141-0/+2
|
* fix typo in ThreadedChildWatcher docs (GH-23277)Thomas Grainger2020-11-141-1/+1
|
* bpo-42131: Add PEP 451-related methods to zipimport (GH-23187)Brett Cannon2020-11-136-965/+1131
| | | | | Specifically, find_spec(), create_module(), and exec_module(). Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)Steve Dower2020-11-132-2/+3
|
* bpo-41001: Add os.eventfd() (#20930)Christian Heimes2020-11-139-3/+471
| | | Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264)Jürgen Gmach2020-11-131-1/+3
|
* bpo-40968: Send http/1.1 ALPN extension (#20959)Christian Heimes2020-11-135-0/+17
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-42042: Use ids attribute instead of names attribute (GH-22739)Dong-hee Na2020-11-131-2/+2
|
* bpo-41617: Add _Py__has_builtin() macro (GH-23260)Victor Stinner2020-11-133-9/+21
| | | | | | | | | | | Fix building pycore_bitutils.h internal header on old clang version without __builtin_bswap16() (ex: Xcode 4.6.3 on Mac OS X 10.7). Add a new private _Py__has_builtin() macro to check for availability of a preprocessor builtin function. Co-Authored-By: Joshua Root <jmr@macports.org> Co-authored-by: Joshua Root <jmr@macports.org>
* bpo-42296: On Windows, fix CTRL+C regression (GH-23257)Victor Stinner2020-11-132-5/+37
| | | | | | | | | | | On Windows, fix a regression in signal handling which prevented to interrupt a program using CTRL+C. The signal handler can be run in a thread different than the Python thread, in which case the test deciding if the thread can handle signals is wrong. On Windows, _PyEval_SignalReceived() now always sets eval_breaker to 1 since it cannot test _Py_ThreadCanHandleSignals(), and eval_frame_handle_pending() always calls _Py_ThreadCanHandleSignals() to recompute eval_breaker.
* bpo-38823: Fix compiler warning in _ctypes on Windows (GH-23258)Victor Stinner2020-11-131-1/+1
| | | | | | Explicitly cast PyExc_Exception to PyTypeObject* to fix the warning: modules\_ctypes\_ctypes.c(5748): warning C4133: '=': incompatible types - from 'PyObject *' to '_typeobject *'
* bpo-42246: Fix memory leak in compiler (GH-23256)Mark Shannon2020-11-131-7/+13
| | | | | * Fix potential memory leak in assembler init. * Fix reference leak when encountering error during compilation of function body.
* bpo-42246: Eliminate jumps to exit blocks by copying those blocks. (#23251)Mark Shannon2020-11-126-4655/+4653
| | | * Compiler: eliminate jumps to short exit blocks by copying.
* bpo-42308: Add threading.__excepthook__ (GH-23218)Mario Corchero2020-11-125-0/+40
| | | | | Add threading.__excepthook__ to allow retrieving the original value of threading.excepthook in case it is set to a broken or a different value.
* bpo-38823: Always build _ctypes with wchar_t (GH-23248)Victor Stinner2020-11-126-31/+7
| | | | | It is no longer possible to build the _ctypes extension module without wchar_t type: remove CTYPES_UNICODE macro. Anyway, the wchar_t type is required to build Python.
* bpo-42260: Initialize time and warnings earlier at startup (GH-23249)Victor Stinner2020-11-127-133/+68
| | | | | | | | | | * Call _PyTime_Init() and _PyWarnings_InitState() earlier during the Python initialization. * Inline _PyImportHooks_Init() into _PySys_InitCore(). * The _warnings initialization function no longer call _PyWarnings_InitState() to prevent resetting filters_version to 0. * _PyWarnings_InitState() now returns an int and no longer clear the state in case of error (it's done anyway at Python exit). * Rework init_importlib(), fix refleaks on errors.
* bpo-38823: Fix refleaks in _ctypes extension init (GH-23247)Victor Stinner2020-11-122-162/+156
| | | | | | | | | | | Fix reference leaks in the error path of the initialization function the _ctypes extension module: call Py_DECREF(mod) on error. Change PyCFuncPtr_Type name from _ctypes.PyCFuncPtr to _ctypes.CFuncPtr to be consistent with the name exposed in the _ctypes namespace (_ctypes.CFuncPtr). Split PyInit__ctypes() function into sub-functions and add macros for readability.
* Bump magic number. (GH-23245)Mark Shannon2020-11-123-112/+114
|
* bpo-42237: Fix os.sendfile() on illumos (GH-23154)Jakub Stasiak2020-11-122-0/+16
|
* bpo-42246: Partial implementation of PEP 626. (GH-23113)Mark Shannon2020-11-1219-4994/+5358
| | | * Implement new line number table format, as defined in PEP 626.
* Fix memory leak introduced by GH-22780 (GH-23237)Andrew Svetlov2020-11-111-0/+1
|
* bpo-40170: Fix PyType_Ready() refleak on static type (GH-23236)Victor Stinner2020-11-112-2/+8
| | | | | | | | | bpo-1635741, bpo-40170: When called on a static type with NULL tp_base, PyType_Ready() no longer increments the reference count of the PyBaseObject_Type ("object). PyTypeObject.tp_base is a strong reference on a heap type, but it is borrowed reference on a static type. Fix 99 reference leaks at Python exit (showrefcount 18623 => 18524).
* bpo-40932: Note security caveat of shlex.quote on Windows (GH-21502)Ammar Askar2020-11-112-5/+16
| | | | | Added a note in the `subprocess` docs that recommend using `shlex.quote` without mentioning that this is only applicable to Unix. Also added a warning straight into the `shlex` docs since it only says "for simple syntaxes resembling that of the Unix shell" and says using `quote` plugs the security hole without mentioning this important caveat.
* bpo-39411: pyclbr rewrite on AST (#18103)Batuhan Taskaya2020-11-114-211/+118
| | | | | - Rewrite pyclbr using an AST processor - Add is_async to the pyclbr.Function
* bpo-1635741: Fix typo in PyModule_AddObjectRef() doc (GH-23234)Victor Stinner2020-11-112-2/+2
| | | It is similar to PyModule_AddObject(), not to itself.
* bpo-42294: Grammar fixes in doc glossary strong/weak refs (GH-23227)kj2020-11-102-6/+6
|
* bpo-42140: Improve asyncio.wait function (GH-22938)Diogo Dutra2020-11-103-2/+29
| | | | | | | | | | # Improve asyncio.wait function The original code creates the futures set two times. We can create this set before, avoiding the second creation. This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty. Automerge-Triggered-By: GH:1st1
* bpo-41073: PyType_GetSlot() can now accept static types. (GH-21931)Hai Shi2020-11-107-101/+205
| | | | | | | PyType_GetSlot() can now accept static types. Co-Authored-By: Petr Viktorin <encukou@gmail.com> Automerge-Triggered-By: GH:encukou
* bpo-42260: Fix _PyConfig_Read() if compute_path_config=0 (GH-23220)Victor Stinner2020-11-108-95/+93
| | | | | | | | | | | | | | | | | | | Fix _PyConfig_Read() if compute_path_config=0: use values set by Py_SetPath(), Py_SetPythonHome() and Py_SetProgramName(). Add compute_path_config parameter to _PyConfig_InitPathConfig(). The following functions now return NULL if called before Py_Initialize(): * Py_GetExecPrefix() * Py_GetPath() * Py_GetPrefix() * Py_GetProgramFullPath() * Py_GetProgramName() * Py_GetPythonHome() These functions no longer automatically computes the Python Path Configuration. Moreover, Py_SetPath() no longer computes program_full_path.
* bpo-42085: Introduce dedicated entry in PyAsyncMethods for sending values ↵Vladimir Matveev2020-11-1013-49/+146
| | | | (#22780)
* bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)Michal Čihař2020-11-102-1/+2
| | | | | | | The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open. Not sure if this needs bug or not... Automerge-Triggered-By: GH:hynek
* Update whatsnew for 3.10 release about addition of contextlib.aclosing ↵Joongi Kim2020-11-101-0/+7
| | | | (GH-23217)
* bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() ↵Andrew Svetlov2020-11-103-3/+44
| | | | | | | | (GH-23020) The overflow occurs under some circumstances when a task or future recursively returns itself. Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-42171: Add PEP573-related items to the limited API (GH-23009)Petr Viktorin2020-11-104-3/+13
|
* Fix typo in test_array.py (GH-23189)Ikko Ashimine2020-11-101-1/+1
|
* bpo-42260: Compute the path config in the main init (GH-23211)Victor Stinner2020-11-106-74/+85
| | | | | | | | | | | | | | | | | | | | | The path configuration is now computed in the "main" initialization. The core initialization no longer computes it. * Add _PyConfig_Read() function to read the configuration without computing the path configuration. * pyinit_core() no longer computes the path configuration: it is now computed by init_interp_main(). * The path configuration output members of PyConfig are now optional: * executable * base_executable * prefix * base_prefix * exec_prefix * base_exec_prefix * _PySys_UpdateConfig() now skips NULL strings in PyConfig. * _testembed: Rename test_set_config() to test_init_set_config() for consistency with other tests.
* Fix typo in unicodeobject.c (GH-23180)Ikko Ashimine2020-11-101-1/+1
| | | | | exeeds -> exceeds Automerge-Triggered-By: GH:Mariatta
* bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. ↵jack11422020-11-094-0/+126
| | | | | | | (GH-19875) Adds support to Tools/i18n/pygettext.py for gettext calls in f-strings. This process is done by parsing the f-strings, processing each value, and flagging the ones which contain a gettext call. Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)Yash Shete2020-11-091-1/+1
|
* bpo-42294: Add borrowed/strong reference to doc glossary (GH-23206)Victor Stinner2020-11-0911-22/+72
| | | | | | Add "borrowed reference" and "strong reference" to the documentation glossary. Enhance also Py_INCREF() and Py_NewRef() documentation.