summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37194: Complete PyObject_CallXXX() docs (GH-14156)Victor Stinner2019-06-171-8/+16
| | | | Mention explicitly that PyObject_CallXXX() functions raise an exception an failure.
* bpo-37194: Add a new public PyObject_CallNoArgs() function (GH-13890)Victor Stinner2019-06-1712-17/+51
| | | | | | | | | | | | | | | Add a new public PyObject_CallNoArgs() function to the C API: call a callable Python object without any arguments. It is the most efficient way to call a callback without any argument. On x86-64, for example, PyObject_CallFunctionObjArgs(func, NULL) allocates 960 bytes on the stack per call, whereas PyObject_CallNoArgs(func) only allocates 624 bytes per call. It is excluded from stable ABI 3.8. Replace private _PyObject_CallNoArg() with public PyObject_CallNoArgs() in C extensions: _asyncio, _datetime, _elementtree, _pickle, _tkinter and readline.
* bpo-37312: Remove _dummy_thread and dummy_threading modules (GH-14143)Victor Stinner2019-06-1710-659/+5
| | | | Remove _dummy_thread and dummy_threading modules. These modules were deprecated since Python 3.7 which requires threading support.
* bpo-36922: use Py_TPFLAGS_METHOD_DESCRIPTOR in lookup_maybe_method() (GH-13865)Jeroen Demeyer2019-06-173-1/+4
|
* bpo-37231: remove _PyObject_FastCall_Prepend (GH-14153)Jeroen Demeyer2019-06-172-42/+0
|
* bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)Victor Stinner2019-06-171-0/+6
| | | | | bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the client context.
* bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)Joost Lek2019-06-172-1/+52
|
* bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051)Zackery Spytz2019-06-173-12/+16
| | | | On Windows, os.dup() no longer creates an inheritable fd when handling a character file.
* bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)Terry Jan Reedy2019-06-161-2/+2
| | | The patch needed for 2.7 should make the test more stable on 3.x also.
* closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (GH-14120)Hai Shi2019-06-162-1/+2
|
* bpo-28805: document METH_FASTCALL (GH-14079)Jeroen Demeyer2019-06-162-12/+52
|
* Turn math.isqrt assertion into a comment to clarify its purpose. (GH-14131)Mark Dickinson2019-06-161-1/+1
|
* Simplify negativity checks in math.comb and math.perm. (GH-13870)Mark Dickinson2019-06-161-10/+16
|
* Doc: Remove an ugly space before a dot. (GH-14123)Julien Palard2019-06-161-1/+1
|
* bpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay ↵Rémi Lapeyre2019-06-163-14/+26
| | | | | or request rate (GH-11791) Co-Authored-By: Tal Einat <taleinat+github@gmail.com>
* bpo-28009: Fix uuid SkipUnless logic to be based on platform programs ↵Michael Felt2019-06-153-19/+47
| | | | | | | | | | | | | capable of introspection (GH-12777) uuid could try fallback methods that had no chance of working on a particular platform, and this could cause spurious test failures, as well as degraded performance as fallback options were tried and failed. This fixes both the uuid module and its test's SkipUnless logic to use a prefiltered list of techniques that may at least potentially work on that platform. Patch by Michael Felt (aixtools).
* bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099)Pablo Galindo2019-06-151-9/+3
|
* Doc: Deprecation header: More precise wording. (GH-14109)Julien Palard2019-06-151-1/+1
|
* Update link in colorsys docs to be https (GH-14062)Alex Gaynor2019-06-151-1/+1
|
* Doc: Bump Sphinx verison. (#13785)Julien Palard2019-06-153-3/+3
| | | To reflect the one we're using in production.
* Fix typo in Lib/concurrent/futures/thread.py (GH-13953)ubordignon2019-06-152-2/+2
|
* Update weakref.rst (GH-14098)Géry Ogam2019-06-151-5/+6
|
* Use threadpool for reading from file in sendfile fallback mode (#14076)Andrew Svetlov2019-06-152-1/+2
|
* bpo-37279: Fix asyncio sendfile support when extra data are sent in ↵Andrew Svetlov2019-06-153-3/+6
| | | | fallback mode. (GH-14075)
* bpo-36707: Document "m" removal from sys.abiflags (GH-14090)Victor Stinner2019-06-152-0/+20
|
* Fix Windows release build issues (GH-14091)Steve Dower2019-06-145-8/+16
| | | | | | | * Increase timeout for PGO builds in Windows release * Fix test step failures * Disable MinGW step properly * Fix embeddable distro name
* Document C API changes in What's New in Python 3.8 (GH-14092)Victor Stinner2019-06-141-0/+27
|
* bpo-35537: Rewrite setsid test for os.posix_spawn (GH-11721)Victor Stinner2019-06-142-21/+32
| | | | bpo-35537, bpo-35876: Fix also test_start_new_session() of test_subprocess: use os.getsid() rather than os.getpgid().
* bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)Victor Stinner2019-06-148-29/+113
| | | | | | | | | | | | In a subinterpreter, spawning a daemon thread now raises an exception. Daemon threads were never supported in subinterpreters. Previously, the subinterpreter finalization crashed with a Pyton fatal error if a daemon thread was still running. * Add _thread._is_main_interpreter() * threading.Thread.start() now raises RuntimeError if the thread is a daemon thread and the method is called from a subinterpreter. * The _thread module now uses Argument Clinic for the new function. * Use textwrap.dedent() in test_threading.SubinterpThreadingTests
* bpo-37261: Document sys.unraisablehook corner cases (GH-14059)Victor Stinner2019-06-145-23/+30
| | | | | | | | | | | Document reference cycle and resurrected objects issues in sys.unraisablehook() and threading.excepthook() documentation. Fix test.support.catch_unraisable_exception(): __exit__() no longer ignores unraisable exceptions. Fix test_io test_writer_close_error_on_close(): use a second catch_unraisable_exception() to catch the BufferedWriter unraisable exception.
* bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on ↵Zackery Spytz2019-06-143-1/+20
| | | | Windows (GH-14081)
* Implement Windows release builds in Azure Pipelines (GH-14065)Steve Dower2019-06-1446-166/+1691
|
* bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() ↵Andrew Svetlov2019-06-142-18/+20
| | | | (GH-14080)
* Update concurrent.futures.rst (GH-14061)Géry Ogam2019-06-141-6/+8
| | | | | | This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation: * the mention that `Future.cancel` also returns `False` if the call finished running; * the mention of the states for `Future` that did not complete: pending or running.
* bpo-37278: Fix test_asyncio ProactorLoopCtrlC (GH-14074)Victor Stinner2019-06-142-7/+10
| | | | | | | | | | | | | Join the thread to prevent leaking a running thread and leaking a reference. Cleanup also the test: * asyncioWindowsProactorEventLoopPolicy became the default policy, there is no need to set it manually. * Only start the thread once the loop is running. * Use a shorter sleep in the thread (100 ms rather than 1 sec). * Use close_loop(loop) rather than loop.close(). * Use longer variable names.
* bpo-37249: add declaration of _PyObject_GetMethod (GH-14015)Jeroen Demeyer2019-06-143-7/+3
|
* bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071)Pablo Galindo2019-06-143-0/+14
| | | | | | | | Fix a regression introduced by af8646c8054d0f4180a2013383039b6a472f9698 that was causing code of the form: if True and False: do_something() to be optimized incorrectly, eliminating the block.
* bpo-37077: Add native thread ID (TID) for AIX (GH-13624)Michael Felt2019-06-135-5/+12
| | | | | | | This is the followup for issue36084 https://bugs.python.org/issue37077
* bpo-36710: Pass explicitly tstate in sysmodule.c (GH-14060)Victor Stinner2019-06-138-178/+262
| | | | | | | | * Replace global var Py_VerboseFlag with interp->config.verbose. * Add _PyErr_NoMemory(tstate) function. * Add tstate parameter to _PyEval_SetCoroutineOriginTrackingDepth() and move the function to the internal API. * Replace _PySys_InitMain(runtime, interp) with _PySys_InitMain(runtime, tstate).
* bpo-37213: Handle negative line deltas correctly in the peephole optimizer ↵Pablo Galindo2019-06-136-4145/+4229
| | | | | (GH-13969) The peephole optimizer was not optimizing correctly bytecode after negative deltas were introduced. This is due to the fact that some special values (255) were being searched for in both instruction pointer delta and line number deltas.
* bpo-6689: os.path.commonpath raises ValueError for different drives isn't ↵Makdon2019-06-131-3/+4
| | | | | | | | | | | | | documented (GH-14045) It would raise ValueError("Paths don't have the same drive") if the paths on different drivers, which is not documented. os.path.commonpath raises ValueError when the *paths* are in different drivers, but it is not documented. Update the document according @Windsooon 's suggestion. It actually raise ValueError according line 355 of [test of path](https://github.com/python/cpython/blob/master/Lib/test/test_ntpath.py) https://bugs.python.org/issue6689
* bpo-37261: Fix support.catch_unraisable_exception() (GH-14052)Victor Stinner2019-06-133-2/+35
| | | | | The __exit__() method of test.support.catch_unraisable_exception context manager now ignores unraisable exception raised when clearing self.unraisable attribute.
* bpo-37210: Fix pure Python pickle when _pickle is unavailable (GH-14016)Victor Stinner2019-06-133-32/+41
| | | | | | | Allow pure Python implementation of pickle to work even when the C _pickle module is unavailable. Fix test_pickle when _pickle is missing: declare PyPicklerHookTests outside "if has_c_implementation:" block.
* tbpo-36402: Fix threading.Thread._stop() (GH-14047)Victor Stinner2019-06-132-1/+25
| | | Remove the _tstate_lock from _shutdown_locks, don't remove None.
* bpo-37231: optimize calls of special methods (GH-13973)Jeroen Demeyer2019-06-132-72/+88
|
* bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020)Victor Stinner2019-06-133-12/+0
| | | | PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional 'feature_version' parameter which is unused.
* bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)Jeffrey Kintscher2019-06-132-15/+19
|
* bpo-37216: update version to 3.9 in mac using document (GH-13966)Makdon2019-06-131-2/+2
|
* bpo-37257: obmalloc: stop simple arena thrashing (#14039)Tim Peters2019-06-132-2/+8
| | | | | GH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
* Add 3.9 whatsnew file (GH-14040)Ned Deily2019-06-132-0/+116
|