summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Slightly improve plistlib test coverage. (GH-17025)Jon Janzen2019-11-012-6/+22
| | | | | | | | | | | | * Add missing test class (mistake in GH-4455) * Increase coverage with 4 more test cases * Rename neg_uid to huge_uid in test_modified_uid_huge * Replace test_main() with unittest.main() * Update plistlib docs
* bpo-38159: Clarify documentation of PyState_AddModule (GH-16101)Petr Viktorin2019-11-011-0/+11
| | | | | This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value.
* Update the URL for the requests package (GH-17006)Simon Legner2019-10-312-2/+2
| | | Change the url from docs.python-requests.org to requests.readthedocs.io
* Add docstring for shlex.split (GH-16740)MaT1g3R2019-10-311-0/+1
|
* bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. ↵Anthony Sottile2019-10-316-1/+247
| | | | (GH-16938)
* bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)Lucas Cimon2019-10-313-0/+26
|
* bpo-16575: Add checks for unions passed by value to functions. (GH-16799)Vinay Sajip2019-10-315-0/+178
|
* closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002)Max Bernstein2019-10-312-2/+0
| | | This looks like a typo due to copy-paste.
* bpo-38600: NULL -> ``NULL``. (GH-17001)Serhiy Storchaka2019-10-3027-68/+68
| | | Also fix some other formatting.
* bpo-38631: Avoid Py_FatalError() in readline (GH-16998)Victor Stinner2019-10-301-6/+11
| | | | readline now calls PyErr_NoMemory() rather than Py_FatalError() on memory allocation failure, when importing the module.
* bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)Victor Stinner2019-10-302-1/+3
| | | | Fix test_communicate() of test_asyncio.test_subprocess: use support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
* bpo-38640: Allow break and continue in always false while loops (GH-16992)Pablo Galindo2019-10-303-0/+29
|
* bpo-38614: Add timeout constants to test.support (GH-16964)Victor Stinner2019-10-306-26/+145
| | | | | | | | Add timeout constants to test.support: * LOOPBACK_TIMEOUT * INTERNET_TIMEOUT * SHORT_TIMEOUT * LONG_TIMEOUT
* bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)Serhiy Storchaka2019-10-305-9/+18
|
* bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)Serhiy Storchaka2019-10-3055-728/+728
| | | | Replace all *NULL* with ``NULL``.
* bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. ↵Daniel Hillier2019-10-293-0/+236
| | | | (GH-14656)
* bpo-38336: Remove the __set__ method restriction on data descriptors for ↵Géry Ogam2019-10-291-1/+1
| | | | attribute lookup precedence (GH-16520)
* Permutations Python code equivalent in comment was invalid for Python 3 ↵Sergey2019-10-291-3/+6
| | | | (GH-16927)
* bpo-38626: Add comment explaining why __lt__ is used. (GH-16978)Raymond Hettinger2019-10-291-0/+2
| | | https://bugs.python.org/issue38626
* Fix asyncio.wait() 3.8 whatsnew entry (GH-16975)Kyle Stanley2019-10-291-1/+2
|
* Remove code commented for more than 10 years (GH-16965)Victor Stinner2019-10-282-115/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_urllib commented since 2007: commit d9880d07fc032884e8bd5cf3ac636d3a3778d5f7 Author: Facundo Batista <facundobatista@gmail.com> Date: Fri May 25 04:20:22 2007 +0000 Commenting out the tests until find out who can test them in one of the problematic enviroments. pynche code commented since 1998 and 2001: commit ef30092207e684bd3e74fe3d6172b97327a0a089 Author: Barry Warsaw <barry@python.org> Date: Tue Dec 15 01:04:38 1998 +0000 Added most of the mechanism to change the strips from color variations to color constants (i.e. red constant, green constant, blue constant). But I haven't hooked this up yet because the UI gets more crowded and the arrows don't reflect the correct values. Added "Go to Black" and "Go to White" buttons. commit 741eae0b3129c123ed4319d8d9e5b877b09aefa8 Author: Barry Warsaw <barry@python.org> Date: Wed Apr 18 03:51:55 2001 +0000 StripWidget.__init__(), update_yourself(): Removed some unused local variables reported by PyChecker. __togglegentype(): PyChecker accurately reported that the variable __gentypevar was unused -- actually this whole method is currently unused so comment it out.
* bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive ↵Steve Dower2019-10-282-1/+2
| | | | (GH-16968)
* bpo-38534: Replace wrong KB number references (GH-16955)benedwards142019-10-282-5/+5
|
* bpo-38519: Internal include files missing on Windows (GH-16921)Zackery Spytz2019-10-282-6/+3
|
* bpo-37330: open() no longer accept 'U' in file mode (GH-16959)Victor Stinner2019-10-2813-96/+57
| | | | | open(), io.open(), codecs.open() and fileinput.FileInput no longer accept "U" ("universal newline") in the file mode. This flag was deprecated since Python 3.3.
* bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)Dong-hee Na2019-10-284-1/+22
|
* bpo-38592 Add pt-br switcher to Python Docs website (GH-16924)Marco Rougeth2019-10-272-0/+2
| | | | * 📜🤖 Added by blurb_it.
* bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)Serhiy Storchaka2019-10-273-26/+70
| | | Test by Daniel Hillier.
* bpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947)Terry Jan Reedy2019-10-271-1/+9
|
* bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)Terry Jan Reedy2019-10-271-0/+9
|
* bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)Terry Jan Reedy2019-10-272-0/+8
|
* bpo-38434: Fixes some audit event documentation (GH-16932)Steve Dower2019-10-265-11/+26
|
* bpo-38557: Improve documentation for list and tuple C API. (GH-16925)Serhiy Storchaka2019-10-263-12/+19
|
* bpo-38535: Fix positions for AST nodes for calls without arguments in ↵Serhiy Storchaka2019-10-263-8/+12
| | | | decorators. (GH-16861)
* bpo-38558: Mention `:=` in conditions tutorial (GH-16919)Ammar Askar2019-10-251-4/+4
|