summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-40521: Make frame free list per-interpreter (GH-20638)Victor Stinner2020-06-057-59/+51
| | | | | | | | | | Each interpreter now has its own frame free list: * Move frame free list into PyInterpreterState. * Add _Py_frame_state structure. * Add tstate parameter to _PyFrame_ClearFreeList() and _PyFrame_Fini(). * Remove "#if PyFrame_MAXFREELIST > 0". * Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
* bpo-40521: Make slice cache per-interpreter (GH-20637)Victor Stinner2020-06-055-18/+24
| | | | | | Each interpreter now has its own slice cache: * Move slice cache into PyInterpreterState. * Add tstate parameter to _PySlice_Fini().
* bpo-40521: Make float free list per-interpreter (GH-20636)Victor Stinner2020-06-057-31/+44
| | | | | | | | Each interpreter now has its own float free list: * Move tuple numfree and free_list into PyInterpreterState. * Add _Py_float_state structure. * Add tstate parameter to _PyFloat_ClearFreeList() and _PyFloat_Fini().
* bpo-40521: Make tuple free list per-interpreter (GH-20247)Victor Stinner2020-06-047-62/+82
| | | | | | | | | | Each interpreter now has its own tuple free lists: * Move tuple numfree and free_list arrays into PyInterpreterState. * Define PyTuple_MAXSAVESIZE and PyTuple_MAXFREELIST macros in pycore_interp.h. * Add _Py_tuple_state structure. Pass it explicitly to tuple_alloc(). * Add tstate parameter to _PyTuple_ClearFreeList() * Each interpreter now has its own empty tuple singleton.
* bpo-39573: Porting to Python 3.10: Py_SET_SIZE() macro (GH-20610)Victor Stinner2020-06-041-3/+21
| | | | | In What's New in Python 3.10, propose Py_SET_SIZE(), Py_SET_REFCNT() and Py_SET_TYPE() macros for backward compatibility with Python 3.9 and older.
* bpo-40865: Remove unused insint() macro from hash modules (GH-20627)Erlend Egeberg Aasland2020-06-044-12/+0
| | | Automerge-Triggered-By: @tiran
* Fix spacing in docs for tarfile (GH-20629)Harsha Laxman2020-06-041-1/+1
| | | | | | | | | | | | | | | | | Before ``` content.txt is 42 bytes in size and isa regular file. folder is 420 bytes in size and isa directory. magic is 4200 bytes in size and issomething else. ``` After: ``` content.txt is 42 bytes in size and is a regular file. folder is 420 bytes in size and is a directory. magic is 4200 bytes in size and is something else. ``` Automerge-Triggered-By: @orsenthil
* bpo-40679: Fix _PyEval_EvalCode() crash if qualname is NULL (GH-20615)Victor Stinner2020-06-042-22/+37
| | | | | | | | | | If name is NULL, name is now set to co->co_name. If qualname is NULL, qualname is now set to name. qualname must not be NULL: it is used to build error messages. Cleanup also the code: declare variables where they are initialized. Rename "name" local variables to "varname" to avoid overriding "name" parameter.
* bpo-17258: Add requires_hashdigest to multiprocessing tests (GH-20412)Christian Heimes2020-06-043-0/+13
| | | | | Skip some :mod:`multiprocessing` tests when MD5 hash digest is blocked. Signed-off-by: Christian Heimes <christian@python.org>
* Don't raise an exception on normal return from generator. (GH-19473)Mark Shannon2020-06-042-1/+3
|
* Fix MSVC warning in frameobject.c (GH-20590)Ammar Askar2020-06-041-1/+3
|
* Remove unused ReaderObject_Check macro (#20614)Dong-hee Na2020-06-041-2/+0
|
* Update error message in _zoneinfo.py to use f-string (GH-20577)aboddie2020-06-031-1/+1
| | | Inline with the rest of the file, updated error message to use f-string.
* bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847)Alex Povel2020-06-032-6/+6
| | | | | Just a brief grammar fix. See also <>.
* bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382)Jeremy Attali2020-06-032-1/+4
| | | | | | | Would be nice to backport to python 3.7+. I don't think it's worth the hassle to backport this all the way down to 3.10. But I'll let the maintainers decide. This is hard to test because the test setup already includes this [environment variable](https://github.com/python/cpython/blob/master/Lib/test/pythoninfo.py#L292) Let me know if something doesn't match the PR guidelines. This is my first PR in the python source code.
* bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599)Victor Stinner2020-06-035-13/+46
| | | | | | | | | | | | my_fgets() now calls _PyOS_InterruptOccurred(tstate) to check for pending signals, rather calling PyOS_InterruptOccurred(). my_fgets() is called with the GIL released, whereas PyOS_InterruptOccurred() must be called with the GIL held. test_repl: use text=True and avoid SuppressCrashReport in test_multiline_string_parsing(). Fix my_fgets() on Windows: fgets(fp) does crash if fileno(fp) is closed.
* bpo-32604: Fix reference leak in select module (GH-20600)Victor Stinner2020-06-032-2/+2
| | | | Fix reference leak in PyInit_select() of the select module: remove Py_INCREF(poll_Type).
* PyOS_AfterFork_Child() pass tstate to _PyEval_ReInitThreads() (GH-20598)Victor Stinner2020-06-023-6/+9
|
* bpo-40232: _PyImport_ReInitLock() can now safely use its lock (GH-20597)Victor Stinner2020-06-021-5/+1
| | | | | Since _PyImport_ReInitLock() now calls _PyThread_at_fork_reinit() on the import lock, the lock is now in a known state: unlocked. It became safe to acquire it after fork.
* PyOS_AfterFork_Child() uses PyStatus (GH-20596)Victor Stinner2020-06-0210-50/+84
| | | | | | | | PyOS_AfterFork_Child() helper functions now return a PyStatus: PyOS_AfterFork_Child() is now responsible to handle errors. * Move _PySignal_AfterFork() to the internal C API * Add #ifdef HAVE_FORK on _PyGILState_Reinit(), _PySignal_AfterFork() and _PyInterpreterState_DeleteExceptMain().
* bpo-39465: Cleanup _PyUnicode_FromId() code (GH-20595)Victor Stinner2020-06-021-10/+16
| | | Work on a local variable before filling _Py_Identifier members.
* bpo-40839: PyDict_GetItem() requires the GIL (GH-20580)Victor Stinner2020-06-024-29/+36
| | | | Calling PyDict_GetItem() without GIL held had been allowed for historical reason. It is no longer allowed.
* bpo-35078: Allow customization of CSS class name of a month in calendar ↵Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2020-06-023-17/+31
| | | | | | | | module (gh-10137) Refactor formatweekday(), formatmonthname() methods in LocaleHTMLCalendar and LocaleTextCalendar classes in calendar module to call the base class methods. This enables customizable CSS classes for LocaleHTMLCalendar and LocaleTextCalendar. Patch by Srinivas Reddy Thatiparthy
* bpo-40241: What's New in Python 3.9: opaque PyGC_Head (GH-20586)Victor Stinner2020-06-021-0/+4
|
* bpo-40244: Remove XLC's support from the noreturn flag (GH-20588)Batuhan Taskaya2020-06-021-2/+2
| | | Automerge-Triggered-By: @pablogsal
* Fix MSVC warnings in pythonrun.c (#GH-0587)Ammar Askar2020-06-021-8/+8
|
* bpo-26543: Fix IMAP4.noop when debug mode is enabled (GH-15206)Sanyam Khurana2020-06-023-7/+21
|
* Ensure correct version of Sphinx is used for Windows builds (GH-20582)Steve Dower2020-06-011-1/+1
|
* bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20579)Victor Stinner2020-06-012-29/+73
| | | | | | Fix GIL usage in PyOS_Readline(): lock the GIL to set an exception. Pass tstate to my_fgets() and _PyOS_WindowsConsoleReadline(). Cleanup these functions.
* bpo-39583: Remove superfluous "extern C" bits from Include/cpython/*.h ↵Skip Montanaro2020-06-0120-151/+2
| | | | (GH-18413)
* bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578)Victor Stinner2020-06-012-2/+5
| | | | PyOS_InterruptOccurred() now fails with a fatal error if it is called with the GIL released.
* bpo-40630: adjust tracemalloc.reset_peak docs for backport to 3.9 (GH-20546)Huon Wilson2020-06-014-10/+7
|
* bpo-39943: Fix MSVC warnings in sre extension (GH-20508)Ammar Askar2020-06-012-3/+10
|
* bpo-39593: Add test on ctypes cfield.c s_set() (GH-18424)Hai Shi2020-06-012-1/+11
|
* bpo-1635741: Port fcntl module to multiphase initialization (GH-20540)Dong-hee Na2020-06-022-22/+20
|
* bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)Zackery Spytz2020-06-011-3/+1
|
* bpo-40826: Add _Py_EnsureTstateNotNULL() macro (GH-20571)Victor Stinner2020-06-016-31/+40
| | | | Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if tstate is NULL, the error message contains the current function name.
* Make sure that keyword arguments are merged into the arguments dictionary ↵Mark Shannon2020-06-012-0/+21
| | | | when dict unpacking and keyword arguments are interleaved. (GH-20553)
* bpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397)Christian Heimes2020-06-013-11/+48
| | | | | | | | | Fix :mod:`ssl`` code to be compatible with OpenSSL 1.1.x builds that use ``no-deprecated`` and ``--api=1.1.0``. Note: Tests assume full OpenSSL API and fail with limited API. Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Mark Wright <gienah@gentoo.org>
* bpo-17005: Move topological sort functionality to its own module (GH-20558)Pablo Galindo2020-06-0110-717/+714
| | | | | | The topological sort functionality that was introduced initially in the functools module has been moved to a new graphlib module to better accommodate the new tools and keep the original scope of the functools module.
* Fix typo in "What's new in Python 3.9" (GH-20559)Lysandros Nikolaou2020-05-311-1/+1
| | | Automerge-Triggered-By: @pablogsal
* bpo-40759: Deprecate the symbol module (GH-20364)Batuhan Taskaya2020-05-314-3/+19
| | | Automerge-Triggered-By: @pablogsal
* bpo-40755: Add rich comparisons to Counter (GH-20548)Raymond Hettinger2020-05-315-195/+76
|
* Fix asyncio.to_thread() documented return type (GH-20547)Kyle Stanley2020-05-312-3/+2
| | | | | When I wrote the documentation for `asyncio.to_thread()`, I mistakenly assumed that `return await loop.run_in_executor(...)` within an async def function would return a Future. In reality, it returns a coroutine. This likely won't affect typical usage of `asyncio.to_thread()`, but it's important for the documentation to be correct here. In general, we also tend to avoid returning futures from high-level APIs in asyncio.
* bpo-40829: Add a what's new entry about deprecation of shuffle's random ↵Batuhan Taskaya2020-05-301-0/+3
| | | | parameter (GH-20541)
* bpo-40061: Fix a possible refleak in _asynciomodule.c (GH-19748)Zackery Spytz2020-05-301-0/+1
| | | | tup should be decrefed in the unlikely event of a PyList_New() failure.
* bpo-40798: Generate a different message for already removed elements (GH-20483)Florian Dahlitz2020-05-302-2/+12
|
* closes bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)Samuel Gaist2020-05-291-5/+6
| | | Reference to PySide has been removed has it is for Qt 4, which has reached end of life.
* bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)Terry Jan Reedy2020-05-294-16/+52
| | | | Leave selection when right click within. This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d. I did not realize that this completely disabled the context menu entries, and I should have merged a minimal fix immediately. An automated test should follow.
* bpo-29882: Add an efficient popcount method for integers (#771)Niklas Fiekas2020-05-297-2/+135
| | | | | | | | | | | | | | | | | | | | | | | * bpo-29882: Add an efficient popcount method for integers * Update 'sign bit' and versionadded in docs * Add entry to whatsnew document * Doc: use positive example, mention population count * Minor cleanups of the core code * Move popcount_digit closer to where it's used * Use z instead of self after conversion * Add 'absolute value' and 'population count' to docstring * Fix clinic error about missing summary line * Ensure popcount_digit is portable with 64-bit ints Co-authored-by: Mark Dickinson <dickinsm@gmail.com>