summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-38631: Replace compiler fatal errors with exceptions (GH-24369)Victor Stinner2021-01-302-34/+54
| | | | | | | | * Replace Py_FatalError() calls with regular SystemError exceptions. * compiler_exit_scope() calls _PyErr_WriteUnraisableMsg() to log the PySequence_DelItem() failure. * compiler_unit_check() uses _PyMem_IsPtrFreed(). * compiler_make_closure(): remove "(reftype == FREE)" comment since reftype can also be LOCAL or GLOBAL_EXPLICIT.
* Fix a reference leak in the compiler for compiler_lambda() (GH-24382)Pablo Galindo2021-01-291-1/+3
|
* bpo-42323: Fix math.nextafter() on AIX (GH-24381)Victor Stinner2021-01-291-2/+2
| | | math_nextafter_impl() must return a Python object, not a C double.
* bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355)Steve Dower2021-01-296-0/+42
|
* Fixing typos in turtle.rst (GH-24376)Jules Lasne2021-01-291-6/+6
| | | Automerge-Triggered-By: GH:JulienPalard
* bpo-43008: Add 'Patch by Ken Hilton' (GH-24370)Terry Jan Reedy2021-01-292-1/+2
|
* Fixed typo in turtle.rst (GH-24371)Jules Lasne2021-01-291-1/+1
| | | | | Found it while translating it to french 🤷 Automerge-Triggered-By: GH:JulienPalard
* bpo-42979: Use _Py_CheckSlotResult() to check slots result (GH-24356)Victor Stinner2021-01-294-198/+304
| | | | | | | | | | | | | | | When Python is built in debug mode (with C assertions), calling a type slot like sq_length (__len__() in Python) now fails with a fatal error if the slot succeeded with an exception set, or failed with no exception set. The error message contains the slot, the type name, and the current exception (if an exception is set). * Check the result of all slots using _Py_CheckSlotResult(). * No longer pass op_name to ternary_op() in release mode. * Replace operator with dunder Python method name in error messages. For example, replace "*" with "__mul__". * Fix compiler_exit_scope() when an exception is set. * Fix bytearray.extend() when an exception is set: don't call bytearray_setslice() with an exception set.
* bpo-42990: Introduce 'frame constructor' struct to simplify API for ↵Mark Shannon2021-01-298-156/+144
| | | | | | | PyEval_CodeEval and friends (GH-24298) * Introduce 'frame constructor' to simplify API for frame creation * Embed struct using a macro to conform to PEP 7
* bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)Zackery Spytz2021-01-286-5/+37
| | | | | Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42955: Remove sub-packages from sys.stdlib_module_names (GH-24353)Victor Stinner2021-01-273-34/+11
|
* bpo-42979: Enhance abstract.c assertions checking slot result (GH-24352)Victor Stinner2021-01-276-51/+126
| | | | | | | | * bpo-42979: Enhance abstract.c assertions checking slot result Add _Py_CheckSlotResult() function which fails with a fatal error if a slot function succeeded with an exception set or failed with no exception set: write the slot name, the type name and the current exception (if an exception is set).
* bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure ↵Hai Shi2021-01-271-0/+3
| | | | | (GH-24333) Importing datetime can fail.
* bpo-43031: Set a timeout when running tests in PGO build (GH-24339)Victor Stinner2021-01-273-2/+4
| | | | Pass --timeout=$(TESTTIMEOUT) option to the default profile task "./python -m test --pgo" command.
* bpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c ↵Zackery Spytz2021-01-271-1/+5
| | | | (GH-24345)
* bpo-43008: Make IDLE respect sys.excepthook (GH-24302)Ken2021-01-265-13/+63
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-38250: [Enum] only include .rst test if file available (GH-24342)Ethan Furman2021-01-261-4/+6
| | | | | | | * [Enum] only include .rst test if file available In order to ensure the ReST documentation is up to date for Enum, use doctest to check it -- but only if the .rst files have not been stripped.
* bpo-33387: update documentation for exception handling opcode changes (GH-24334)Irit Katriel2021-01-262-3/+1
| | | | | * bpo-33387: remove obsolete comment * bpo-33387: update SETUP_WITH opcode documentation
* Fix minor typo in the rest format in the enum docs (GH-24335)Pablo Galindo2021-01-251-1/+1
|
* Document new parenthesized with statements (GH-24281)Pablo Galindo2021-01-252-1/+67
|
* Typo in comment (GH-24199)borispopoff2021-01-251-1/+1
| | | Automerge-Triggered-By: GH:Mariatta
* bpo-38250: [Enum] single-bit flags are canonical (GH-24215)Ethan Furman2021-01-258-285/+747
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flag members are now divided by one-bit verses multi-bit, with multi-bit being treated as aliases. Iterating over a flag only returns the contained single-bit flags. Iterating, repr(), and str() show members in definition order. When constructing combined-member flags, any extra integer values are either discarded (CONFORM), turned into ints (EJECT) or treated as errors (STRICT). Flag classes can specify which of those three behaviors is desired: >>> class Test(Flag, boundary=CONFORM): ... ONE = 1 ... TWO = 2 ... >>> Test(5) <Test.ONE: 1> Besides the three above behaviors, there is also KEEP, which should not be used unless necessary -- for example, _convert_ specifies KEEP as there are flag sets in the stdlib that are incomplete and/or inconsistent (e.g. ssl.Options). KEEP will, as the name suggests, keep all bits; however, iterating over a flag with extra bits will only return the canonical flags contained, not the extra bits. Iteration is now in member definition order. If member definition order matches increasing value order, then a more efficient method of flag decomposition is used; otherwise, sort() is called on the results of that method to get definition order. ``re`` module: repr() has been modified to support as closely as possible its previous output; the big difference is that inverted flags cannot be output as before because the inversion operation now always returns the comparable positive result; i.e. re.A|re.I|re.M|re.S is ~(re.L|re.U|re.S|re.T|re.DEBUG) in both of the above terms, the ``value`` is 282. re's tests have been updated to reflect the modifications to repr().
* bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332)Victor Stinner2021-01-2515-60/+61
| | | | * Rename _Py_module_names to _Py_stdlib_module_names. * Rename Python/module_names.h to Python/stdlib_module_names.h.
* bpo-42383: pdb: do not fail to restart the target if the current directory ↵Andrey Bienkowski2021-01-252-0/+25
| | | | | changed (#23412) This commit only adds tests and a news entry. The actual bug was fixed in the earlier commit.
* bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)Serhiy Storchaka2021-01-255-34/+48
|
* bpo-42869: Avoid an HTTP redirection. (GH-24174)Julien Palard2021-01-251-1/+1
|
* bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)Julien Palard2021-01-2511-48/+30
|
* bpo-42955: Fix sys.module_names doc (GH-24329)Victor Stinner2021-01-251-1/+1
| | | Replace versionchanged markup with versionadded.
* bpo-42955: Add sys.modules_names (GH-24238)Victor Stinner2021-01-2510-273/+303
| | | | Add sys.module_names, containing the list of the standard library module names.
* bpo-43013: Fix old tkinter module names in idlelib (GH-24326)Terry Jan Reedy2021-01-2513-67/+66
| | | | | | Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and 'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font' is already used. Adjust import.
* bpo-27772: Make preceding width with 0 valid in string format. (GH-11270)Serhiy Storchaka2021-01-254-3/+15
| | | | Previously it was an error with confusing error message.
* bpo-43013: Update idlelib code to 3.x (GH-24315)Terry Jan Reedy2021-01-2410-47/+49
| | | | Remove 9 remaining '(object)' occurrences in class headers in idlelib and 25 '()' occurrences in idlelib.idle_test class headers.
* bpo-43014: Improve performance of tokenize.tokenize by 20-30%Anthony Sottile2021-01-242-0/+3
|
* Remove full stop from a bytes-related SyntaxError message (GH-24300)numbermaniac2021-01-231-1/+1
|
* closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)Zackery Spytz2021-01-231-2/+2
|
* bpo-42996: Update a reference to PKCS #5 in hashlib docs to version 2.1 ↵Illia Volochii2021-01-221-2/+2
| | | | | | | (GH-24289) RFC 8018 superseded RFC 8018. Automerge-Triggered-By: GH:tiran
* bpo-41798: Allocate the _curses._C_API on the heap memory (GH-24186)Hai Shi2021-01-221-9/+30
|
* bpo-40304: Correct type(name, bases, dict) doc (GH-19553)Борис Верховский2021-01-222-8/+11
| | | | | Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-42384: pdb: correctly populate sys.path[0] (GH-23338)Andrey Bienkowski2021-01-223-1/+45
| | | Automerge-Triggered-By: GH:gvanrossum
* bpo-31904: setup.py: fix cross-compilation on VxWorks (GH-24191)pxinwr2021-01-222-0/+49
| | | Add library search path by wr-cc in add_cross_compiling_paths().
* bpo-33289: Return RGB triplet of ints instead of floats from ↵Cheryl Sabella2021-01-215-29/+93
| | | | tkinter.colorchooser (GH-6578)
* Add a What's New entry for the new parser error improvements (GH-24280)Pablo Galindo2021-01-211-0/+42
|
* Fix typo in what's new. bidst_wheel -> bdist_wheel (GH-24234)ravcio2021-01-211-1/+1
| | | | | bidst_wheel -> bdist_wheel Automerge-Triggered-By: GH:Mariatta
* bpo-42392: Mention loop removal in whatsnew for 3.10 (GH-24256)Ken Jin2021-01-211-0/+37
| | | | | | | @vstinner [noticed on python-dev](https://mail.python.org/archives/list/python-dev@python.org/thread/O3T7SK3BGMFWMLCQXDODZJSBL42AUWTR/) that there is no what's new or porting entry for removal of asyncio ``loop`` parameter. This patch adds a basic guide. Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* bpo-40176: Improve error messages for unclosed string literals (GH-19346)Batuhan Taskaya2021-01-207-32/+34
| | | Automerge-Triggered-By: GH:isidentical
* bpo-42864: Simplify the tokenizer exceptions after generic SyntaxError ↵Pablo Galindo2021-01-201-10/+3
| | | | | (GH-24273) Automerge-Triggered-By: GH:pablogsal
* bpo-42856: Add --with-wheel-pkg-dir=PATH configure option (GH-24210)Victor Stinner2021-01-208-36/+220
| | | | | | | | | | | | | Add --with-wheel-pkg-dir=PATH option to the ./configure script. If specified, the ensurepip module looks for setuptools and pip wheel packages in this directory: if both are present, these wheel packages are used instead of ensurepip bundled wheel packages. Some Linux distribution packaging policies recommend against bundling dependencies. For example, Fedora installs wheel packages in the /usr/share/python-wheels/ directory and don't install the ensurepip._bundled package. ensurepip: Remove unused runpy import.
* bpo-42323: Fix math.nextafter() for NaN on AIX (GH-24265)Victor Stinner2021-01-202-0/+7
|
* bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172)cptpcrd2021-01-203-0/+35
|
* Fix typos in unittest documentation (GH-24194)Conchylicultor2021-01-201-3/+3
| | | | * addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups