summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359)Victor Stinner2020-09-237-18/+10
| | | | | | | | | | Remove the global _Py_CheckRecursionLimit variable: it has been replaced by ceval.recursion_limit of the PyInterpreterState structure. There is no need to keep the variable for the stable ABI, since Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() were not usable in Python 3.8 and older: these macros accessed PyThreadState members, whereas the PyThreadState structure is opaque in the limited C API.
* bpo-1635741, unicodedata: add ucd_type parameter to UCD_Check() macro (GH-22328)Mohamed Koubaa2020-09-231-13/+16
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-1635741: Port _lsprof extension to multi-phase init (PEP 489) (GH-22220)Mohamed Koubaa2020-09-233-99/+139
|
* bpo-41513: Improve order of adding fractional values. Improve variable ↵Raymond Hettinger2020-09-231-12/+12
| | | | names. (GH-22368)
* bpo-41816: `StrEnum.__str__` is `str.__str__` (GH-22362)Ethan Furman2020-09-223-0/+48
| | | use `str.__str__` for `StrEnum` so that `str(StrEnum.member)` is the same as directly accessing the string value of the `StrEnum` member
* bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)Terry Jan Reedy2020-09-224-42/+51
|
* bpo-41810: Reintroduce `types.EllipsisType`, `.NoneType` & ↵Bas van Beek2020-09-227-5/+54
| | | | | `.NotImplementedType` (GH-22336) closes issue 41810
* bpo-41602: raise SIGINT exit code on KeyboardInterrupt from ↵Thomas Grainger2020-09-223-7/+92
| | | | | pymain_run_module (#21956) Closes bpo issue 41602
* bpo-41817: use new StrEnum to ensure all members are strings (GH-22348)Ethan Furman2020-09-222-7/+8
| | | * use new StrEnum to ensure all members are strings
* bpo-40670: More reliable validation of statements in timeit.Timer. (GH-22358)Serhiy Storchaka2020-09-223-0/+13
| | | | | It now accepts "empty" statements (only whitespaces and comments) and rejects misindentent statements.
* Py_IS_TYPE() macro uses Py_TYPE() (GH-22341)Victor Stinner2020-09-221-1/+1
|
* Enum: add extended AutoNumber example (GH-22349)Ethan Furman2020-09-222-0/+27
|
* bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)Terry Jan Reedy2020-09-224-9/+8
| | | | The marker was added to the language in 3.8 and 3.7 only gets security patches.
* bpo-41756: Refactor gen_send_ex(). (GH-22330)Serhiy Storchaka2020-09-221-94/+99
|
* bpo-41816: add `StrEnum` (GH-22337)Ethan Furman2020-09-224-22/+104
| | | | `StrEnum` ensures that its members were already strings, or intended to be strings.
* bpo-40084: Enum - dir() includes member attributes (GH-19219)Angelin BOOZ2020-09-215-2/+20
|
* bpo-1635741: Convert an _lsprof method to argument clinic (GH-22240)Mohamed Koubaa2020-09-212-31/+86
|
* bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)Samuel Marks2020-09-211-1/+1
| | | | | Fix the compiler warning: format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
* bpo-41513: Add accuracy tests for math.hypot() (GH-22327)Raymond Hettinger2020-09-211-0/+63
|
* [doc] Teach 0-args form of super in Programming FAQ (GH-22176)Andre Delfino2020-09-201-8/+7
|
* bpo-12178: Fix escaping of escapechar in csv.writer() (GH-13710)Berker Peksag2020-09-203-0/+20
| | | Co-authored-by: Itay Elbirt <anotahacou@gmail.com>
* bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)Peter McCormick2020-09-203-0/+13
| | | | | | | | | | | | | # [bpo-41815](): SQLite: fix segfault if backup called on closed database Attempting to backup a closed database will trigger segfault: ```python import sqlite3 target = sqlite3.connect(':memory:') source = sqlite3.connect(':memory:') source.close() source.backup(target) ```
* Add missing whatsnew entry for TestCase.assertNoLogs (GH-22317)Mark Dickinson2020-09-192-0/+8
|
* bpo-33689: Blank lines in .pth file cause a duplicate sys.path entry (GH-20679)idomic2020-09-193-1/+12
|
* bpo-41811: create SortKey members using first given value (GH-22316)Ethan Furman2020-09-192-3/+7
|
* bpo-41756: Introduce PyGen_Send C API (GH-22196)Vladimir Matveev2020-09-197-39/+148
| | | | | | | | | | | | | The new API allows to efficiently send values into native generators and coroutines avoiding use of StopIteration exceptions to signal returns. ceval loop now uses this method instead of the old "private" _PyGen_Send C API. This translates to 1.6x increased performance of 'await' calls in micro-benchmarks. Aside from CPython core improvements, this new API will also allow Cython to generate more efficient code, benefiting high-performance IO libraries like uvloop.
* Make fractional value accumulation consistent inside and outside the loop. ↵Raymond Hettinger2020-09-191-5/+4
| | | | (GH-22315)
* bpo-35293: Travis CI uses "make venv" for the doc (GH-22307)Victor Stinner2020-09-183-8/+12
| | | | | | | Doc/requirements.txt becomes the reference for packages and package versions needed to build the Python documentation. * Doc/Makefile now uses Doc/requirements.txt * .travis.yml now uses "make env" of Doc/Makefile
* bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)Dong-hee Na2020-09-182-15/+22
| | | | | | | | | | | * bpo-35293: Remove RemovedInSphinx40Warning * Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst Co-authored-by: Victor Stinner <vstinner@python.org> * bpo-35293: Apply Victor's review Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)Victor Stinner2020-09-188-69/+70
| | | | | | | Use an unique identifier for the different grammars documented using the Sphinx productionlist markup. productionlist markups of the same grammar, like "expressions" or "compound statements", use the same identifier "python-grammar".
* Remove duplicated words words (GH-22298)Serhiy Storchaka2020-09-184-5/+5
|
* bpo-41808: Add What's New 3.9 entry missing from master (#22294)Terry Jan Reedy2020-09-181-0/+5
| | | Entry was added by bpo-40939, #21012 and #21039.
* bpo-27032, bpo-37328: Document removing HTMLParser.unescape(). (GH-22288)Serhiy Storchaka2020-09-171-0/+6
|
* bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)Serhiy Storchaka2020-09-175-3/+34
| | | | | | | * When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``.
* bpo-41715: Fix potential catastrofic backtracking in c_analyzer. (GH-22091)Serhiy Storchaka2020-09-171-6/+6
|
* Enum: make `Flag` and `IntFlag` members iterable (GH-22221)Ethan Furman2020-09-164-0/+32
|
* _auto_called cleanup (GH-22285)Ethan Furman2020-09-162-1/+12
|
* bpo-41746: Add type information to asdl_seq objects (GH-22223)Pablo Galindo2020-09-1622-1087/+1339
| | | | | | | | | | | | | * Add new capability to the PEG parser to type variable assignments. For instance: ``` | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a } ``` * Add new sequence types from the asdl definition (automatically generated) * Make `asdl_seq` type a generic aliasing pointer type. * Create a new `asdl_generic_seq` for the generic case using `void*`. * The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed. * New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences. * Changes all possible `asdl_seq` types to use specific versions everywhere.
* acknowledge Weipeng Hong's contributions (GH-22284)Ethan Furman2020-09-161-0/+1
|
* bpo-39728: Enum: fix duplicate `ValueError` (GH-22277)Ethan Furman2020-09-164-2/+21
| | | | fix default `_missing_` to return `None` instead of raising a `ValueError` Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
* [doc] Minor improvements to is_typeddict (GH-22280)Andre Delfino2020-09-161-1/+1
| | | | 1. The check is on the type 2. Add link to TypeDict
* bpo-41517: do not allow Enums to be extended (#22271)Ethan Furman2020-09-163-5/+18
| | | fix bug that let Enums be extended via multiple inheritance
* bpo-41792: Add is_typeddict function to typing.py (GH-22254)Patrick Reader2020-09-164-0/+42
| | | | | Closes issue41792. Also closes https://github.com/python/typing/issues/751.
* bpo-41789: honor object overrides in Enum classes (GH-22250)Ethan Furman2020-09-153-1/+14
| | | | | EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that. Automerge-Triggered-By: @ethanfurman
* Doc: Fix broken manpage link (GH-21937)Tim Burke2020-09-151-1/+1
| | | sigprocmask is in section 2, not 3.
* bpo-39587: Enum - use correct mixed-in data type (GH-22263)Ethan Furman2020-09-153-1/+56
|
* bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)Batuhan Taskaya2020-09-153-0/+46
| | | Automerge-Triggered-By: @gvanrossum
* Fix all Python Cookbook links (#22205)Andre Delfino2020-09-1517-20/+20
|
* minor reformat of enum tests (GH-22259)Ethan Furman2020-09-151-26/+44
| | | Automerge-Triggered-By: @ethanfurman
* Improve the description of difflib in the documentation (GH-22253)Mandeep2020-09-151-2/+2
| | | | | | From "can produce difference information in various formats ..." to " can produce information about file differences in various formats ..." Automerge-Triggered-By: @Mariatta