summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38644: Add _PyObject_Call() (GH-17089)Victor Stinner2019-11-1410-137/+216
| | | | | | | | | | * Add pycore_call.h internal header file. * Add _PyObject_Call(): PyObject_Call() with tstate * Add _PyObject_CallNoArgTstate(): _PyObject_CallNoArg() with tstate * Add _PyObject_FastCallDictTstate(): _PyObject_FastCallDict() with tstate * _PyObject_Call_Prepend() now takes tstate * Replace _PyObject_FastCall() calls with _PyObject_VectorcallTstate() calls
* bpo-38644: Add _PyEval_EvalFrame() with tstate (GH-17131)Victor Stinner2019-11-144-7/+20
| | | | Add _PyEval_EvalFrame() static inline function to get eval_frame from tstate->interp.
* closes bpo-38692: Add a pidfd child process watcher to asyncio. (GH-17069)Benjamin Peterson2019-11-145-0/+102
|
* bpo-38785: Prevent asyncio from crashing (GH-17144)Andrew Svetlov2019-11-134-1/+46
| | | | | | | if parent `__init__` is not called from a constructor of object derived from `asyncio.Future` https://bugs.python.org/issue38785
* bpo-38786: Add parsing of https links to pydoc (GH-17143)Kirill2019-11-134-2/+14
|
* bpo-38781: Clear buffer in MemoryHandler flush (GH-17132)Daniel Andersson2019-11-131-2/+2
| | | | | | | | This makes it easier to use a custom buffer when subclassing MemoryHandler (by avoiding the explicity empty list literal assignment in the flush method). For example, collection.deque can now be used without any modifications to MemoryHandler.flush. The same applies to BufferingHandler.
* bpo-4630: Add cursor no-blink option for IDLE (GH-16960)Zackery Spytz2019-11-137-1/+48
| | | This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
* Fix minor typos. (GH-17095)Shu2019-11-131-3/+3
|
* Add Ilya Kulakov to Misc/ACKS. (GH-17130)Ilya Kulakov2019-11-131-0/+1
| | | Contributions on bpo-26467 and bpo-29302.
* closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. ↵Benjamin Peterson2019-11-124-10/+33
| | | | | (GH-17112) This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.
* bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)jsnklln2019-11-122-1/+3
| | | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-1242-176/+176
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* bpo-36974: expand call protocol documentation (GH-13844)Jeroen Demeyer2019-11-128-293/+467
| | | | | | | | | | | | | | CC @encukou I'm also adding Petr Viktorin as contributor for vectorcall in the "what's new" section. https://bugs.python.org/issue36974 Automerge-Triggered-By: @encukou Automerge-Triggered-By: @encukou
* bpo-38421: Update email.utils documentation (GH-16678)David K2019-11-121-2/+2
| | | | | | | | | | Updates documentation around email.utils.parsedate_tz(). Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```. This is no longer true since Python 3.3 https://bugs.python.org/issue38421
* bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097)Vinay Sajip2019-11-123-3/+141
|
* bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)Zackery Spytz2019-11-124-15/+33
|
* bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111)Raymond Hettinger2019-11-122-10/+10
|
* bpo-38565: add new cache_parameters method for lru_cache (GH-16916)Manjusaka2019-11-124-0/+22
|
* bpo-38771: Explict test for None in code example (GH-17108)Jonathan Scholbach2019-11-121-1/+1
|
* bpo-38438: Simplify argparse "star nargs" usage. (GH-17106)Brandt Bucher2019-11-116-15/+20
|
* bpo-38761: Register WeakSet as a MutableSet (GH-17104)Raymond Hettinger2019-11-113-0/+9
|
* Minor readability improvement for argument handling in itertools.repeat() ↵Raymond Hettinger2019-11-101-5/+5
| | | | | | (GH-17101)
* bpo-38635: Simplify decoding the ZIP64 extra field and make it tolerant to ↵Serhiy Storchaka2019-11-091-37/+16
| | | | extra data. (GH-16988)
* Clarify amount of dots between package and subpackage (GH-17092)Shu2019-11-081-1/+1
|
* bpo-38644: Add _PyObject_VectorcallTstate() (GH-17052)Victor Stinner2019-11-086-50/+94
| | | | | * Add _PyObject_VectorcallTstate() function: similar to _PyObject_Vectorcall(), but with tstate parameter * Add tstate parameter to _PyObject_MakeTpCall()
* bpo-22367: Add tests for fcntl.lockf(). (GH-17010)Dong-hee Na2019-11-071-1/+28
|
* bpo-38613: Optimize set operations of dict keys. (GH-16961)Inada Naoki2019-11-072-21/+36
|
* bpo-38733: PyErr_Occurred() caller must hold the GIL (GH-17080)Victor Stinner2019-11-075-7/+12
| | | | | | | | | | | bpo-3605, bpo-38733: Optimize _PyErr_Occurred(): remove "tstate == NULL" test. Py_FatalError() no longer calls PyErr_Occurred() if called without holding the GIL. So PyErr_Occurred() no longer has to support tstate==NULL case. _Py_CheckFunctionResult(): use directly _PyErr_Occurred() to avoid explicit "!= NULL" test.
* update a deprecated assert in logging tests (GH-17079)l0rb2019-11-071-1/+1
|
* bpo-36876: Moved Parser/listnode.c statics to interpreter state. (GH-16328)Vinay Sajip2019-11-072-10/+23
|
* bpo-38382: Document the early-out behavior for a zero (GH-17037)Raymond Hettinger2019-11-071-1/+6
|
* bpo-38716: stop rotating handlers from setting inherited namer and rotator ↵l0rb2019-11-063-2/+23
| | | | to None (GH-17072)
* closes bpo-38713: Expose P_PIDFD in os if it's defined. (GH-17071)Benjamin Peterson2019-11-067-6/+40
| | | https://bugs.python.org/issue38713
* bpo-38692: Add os.pidfd_open. (GH-17063)Benjamin Peterson2019-11-066-1/+94
|
* bpo-38696: Fix usage example of HTTPStatus (GH-17066)Ammar Askar2019-11-051-1/+1
|
* bpo-37645: add new function _PyObject_FunctionStr() (GH-14890)Jeroen Demeyer2019-11-0511-94/+171
| | | | | | | | | | | | Additional note: the `method_check_args` function in `Objects/descrobject.c` is written in such a way that it applies to all kinds of descriptors. In particular, a future re-implementation of `wrapper_descriptor` could use that code. CC @vstinner @encukou https://bugs.python.org/issue37645 Automerge-Triggered-By: @encukou
* bpo-35381 Remove all static state from posixmodule (GH-15892)Eddie Elizondo2019-11-054-226/+305
| | | | | | | | | | | | | | After #9665, this moves the remaining types in posixmodule to be heap-allocated to make it compatible with PEP384 as well as modifying all the type accessors to fully make the type opaque. The original PR that got messed up a rebase: https://github.com/python/cpython/pull/10854. All the issues in that commit have now been addressed since https://github.com/python/cpython/pull/11661 got committed. This change also removes any state from the data segment and onto the module state itself. https://bugs.python.org/issue35381 Automerge-Triggered-By: @encukou
* Update interpreter.rst (GH-17059)Jules Lasne (jlasne)2019-11-051-1/+1
| | | Fixed what seemed to be a weird phrasing.
* _json.c: use Py_UNUSED() macro (GH-17053)Victor Stinner2019-11-051-10/+4
| | | Remove UNUSED macro: use Py_UNUSED() macro instead.
* closes bpo-37633: Reëxport some function compatibility wrappers for macros ↵Benjamin Peterson2019-11-052-16/+17
| | | | in ``pythonrun.h``. (GH-17056)
* Fix a typo in wave module docstring (GH-17009)Michael Haas2019-11-051-1/+1
| | | s/pathing/patching/
* bpo-38644: Pass tstate to _Py_CheckFunctionResult() (GH-17050)Victor Stinner2019-11-057-52/+94
| | | | | * Add tstate parameter to _Py_CheckFunctionResult() * Add _PyErr_FormatFromCauseTstate() * Replace PyErr_XXX(...) with _PyErr_XXX(state, ...)
* bpo-38644: Pass tstate to Py_EnterRecursiveCall() (GH-16997)Victor Stinner2019-11-047-135/+200
| | | | | | | | | | | | | * Add _Py_EnterRecursiveCall() and _Py_LeaveRecursiveCall() which require a tstate argument. * Pass tstate to _Py_MakeRecCheck() and _Py_CheckRecursiveCall(). * Convert Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() macros to static inline functions. _PyThreadState_GET() is the most efficient way to get the tstate, and so using it with _Py_EnterRecursiveCall() and _Py_LeaveRecursiveCall() should be a little bit more efficient than using Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() which use the "slower" PyThreadState_GET().
* bpo-38644: Add Py_EnterRecursiveCall() to the limited API (GH-17046)Victor Stinner2019-11-049-38/+101
| | | | | | | | | | Provide Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() as regular functions for the limited API. Previously, there were defined as macros, but these macros didn't work with the limited API which cannot access PyThreadState.recursion_depth field. Remove _Py_CheckRecursionLimit from the stable ABI. Add Include/cpython/ceval.h header file.
* bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043)Alexandru Ardelean2019-11-042-1/+2
|
* bpo-37759: Show output from var_access_benchmark (GH-17040)Raymond Hettinger2019-11-041-3/+52
|
* bpo-38388: Document pickle protocol version 5 (GH-16639)Dima Tisnek2019-11-031-1/+5
|
* Convert argument to snake_case (GH-16990)Борис Верховский2019-11-021-2/+2
|
* Years overdue, explain why unreachable objects are moved. (GH-17030)Tim Peters2019-11-021-1/+38
|
* bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)Ram Rachum2019-11-022-2/+11
| | | | | | | | | | Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking. https://bugs.python.org/issue38422 Automerge-Triggered-By: @pitrou