summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* bpo-42864: Fix compiler warning in the tokenizer with the new paren stack ↵Pablo Galindo2021-01-201-1/+1
| | | | for column numbers (GH-24266)
* bpo-42048: Clinic Howto: Document AC's defining_class converter (GH-23978)Erlend Egeberg Aasland2021-01-201-0/+62
|
* bpo-41798: Allocate unicodedata CAPI on the heap (GH-24128)Erlend Egeberg Aasland2021-01-201-8/+29
|
* Doc: os.path.abspath and Path.resolve are also different (GH-23276)Hong Xu2021-01-201-5/+12
|
* bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)Zhiming Wang2021-01-203-2/+14
|
* bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635)Yunlongs2021-01-201-0/+12
|
* bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161)Pablo Galindo2021-01-198-8/+88
|
* bpo-42923: _Py_DumpExtensionModules() ignores stdlib ext (GH-24254)Victor Stinner2021-01-195-26/+65
|
* bpo-42955: Add Python/module_names.h (GH-24258)Victor Stinner2021-01-198-18/+592
| | | | | | | | | | Add a private list of all stdlib modules: _Py_module_names. * Add Tools/scripts/generate_module_names.py script. * Makefile: Add "make regen-module-names" command. * setup.py: Add --list-module-names option. * GitHub Action and Travis CI also runs "make regen-module-names", not ony "make regen-all", to ensure that the module names remains up to date.
* bpo-41713: Remove PyOS_InitInterrupts() from python3dll.c (GH-24257)Victor Stinner2021-01-191-1/+0
|
* Add a clarification for the object-domain allocators regarding pointer ↵Pablo Galindo2021-01-191-0/+7
| | | | validity (GH-24253)
* bpo-41818: Close file descriptors in test_openpty (#GH-24119)Petr Viktorin2021-01-191-10/+10
| | | | | | | | When stdin is a TTY, the test added in commit c13d89955d9a2942c6355d6839d7096323244136 is expected to fail. However, when it failed, it did not close its file descriptors. This is flagged by the refleak tests (but only when stdin is a TTY, which doesn't seem to be the case on CI).
* Add a paragraph about allocation domains to the C-API docs (GH-24252)Pablo Galindo2021-01-181-1/+32
|
* closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes ↵Benjamin Peterson2021-01-183-32/+64
| | | | param reprs. (24239)
* bpo-36143: make regen-all now also runs regen-keyword (GH-24245)Victor Stinner2021-01-182-1/+2
|
* bpo-42923: Dump extension modules on fatal error (GH-24207)Victor Stinner2021-01-188-0/+96
| | | | | | | The Py_FatalError() function and the faulthandler module now dump the list of extension modules on a fatal error. Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal functions.
* bpo-42944 Fix Random.sample when counts is not None (GH-24235)jonanifranco2021-01-183-28/+29
|
* bpo-42923: Py_FatalError() avoids fprintf() (GH-24242)Victor Stinner2021-01-183-50/+47
| | | | | * Replace buffered fprintf() with unbuffered _Py_write_noraise() in Py_FatalError(). * _Py_DumpHexadecimal() now accepts uintptr_t.
* bpo-42923: Add Py_FatalError() test in test_capi (GH-24240)Victor Stinner2021-01-184-39/+48
| | | Move faulthandler._fatal_error() to _testcapi.fatal_error().
* bpo-42931: randbytes missing from random.__all__ (GH-24219)Setrak Balian2021-01-152-0/+2
|
* bpo-42934: use TracebackException(compact=True) in unittest.TestResult ↵Irit Katriel2021-01-152-1/+5
| | | | (GH-24221)
* Mark instructions at end of class scope as artificial. (GH-24222)Mark Shannon2021-01-152-0/+20
|
* bpo-42877: add the 'compact' param to TracebackException's __init__ (#24179)Irit Katriel2021-01-154-10/+69
| | | Use it to reduce the time and memory taken up by several of traceback's module-level functions.
* bpo-42827: Fix crash on SyntaxError in multiline expressions (GH-24140)Lysandros Nikolaou2021-01-145-2/+64
| | | | | | | | | | | | | | | | | | | | | | | When trying to extract the error line for the error message there are two distinct cases: 1. The input comes from a file, which means that we can extract the error line by using `PyErr_ProgramTextObject` and which we already do. 2. The input does not come from a file, at which point we need to get the source code from the tokenizer: * If the tokenizer's current line number is the same with the line of the error, we get the line from `tok->buf` and we're ready. * Else, we can extract the error line from the source code in the following two ways: * If the input comes from a string we have all the input in `tok->str` and we can extract the error line from it. * If the input comes from stdin, i.e. the interactive prompt, we do not have access to the previous line. That's why a new field `tok->stdin_content` is added which holds the whole input for the current (multiline) statement or expression. We can then extract the error line from `tok->stdin_content` like we do in the string case above. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Docs: Remove stray semicolon in init.rst (GH-23974)Ken Jin2021-01-141-1/+1
| | | Removed stray semicolon which was causing the docs to render weirdly (it's the function right under the one [here](https://docs.python.org/3/c-api/init.html#c._PyInterpreterState_GetEvalFrameFunc)).
* bpo-39273: Expose BUTTON5_* constants in the curses module if available ↵Zackery Spytz2021-01-144-1/+19
| | | | (GH-17996)
* bpo-40956: Fix sqlite3.Cursor.fetchmany() default value (GH-24214)Erlend Egeberg Aasland2021-01-132-5/+9
|
* bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208)Tobias Holl2021-01-133-2/+15
| | | | Before, using the * operator to repeat a bytearray would copy data from the start of the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
* Eliminate NOPs in extended blocks. (GH-24209)Mark Shannon2021-01-131-5/+13
|
* bpo-42908: Mark cleanup code at end of try-except and with artificial (#24202)Mark Shannon2021-01-136-4359/+4473
| | | | | | | | | * Mark bytecodes at end of try-except as artificial. * Make sure that the CFG is consistent throughout optimiization. * Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers. * Update importlib
* bpo-1635741: Fix PyModule_AddObjectRef to use EXPORT_FUNC (GH-24205)Dong-hee Na2021-01-131-1/+1
|
* bpo-42901: [Enum] move member creation to `__set_name__` (GH-24196)Ethan Furman2021-01-134-110/+207
| | | | | | | | | | | `type.__new__` calls `__set_name__` and `__init_subclass__`, which means that any work metaclasses do after calling `super().__new__()` will not be available to those two methods. In particular, `Enum` classes that want to make use of `__init_subclass__` will not see any members. Almost all customization is therefore moved to before the `type.__new__()` call, including changing all members to a proto member descriptor with a `__set_name__` that will do the final conversion of a member to be an instance of the `Enum` class.
* bpo-37324: Remove ABC aliases from collections (GH-23754)Hugo van Kemenade2021-01-124-21/+6
| | | | Remove deprecated aliases to Abstract Base Classes from the collections module.