Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359) | Victor Stinner | 2020-09-23 | 7 | -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 Koubaa | 2020-09-23 | 1 | -13/+16 |
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | bpo-1635741: Port _lsprof extension to multi-phase init (PEP 489) (GH-22220) | Mohamed Koubaa | 2020-09-23 | 3 | -99/+139 |
| | |||||
* | bpo-41513: Improve order of adding fractional values. Improve variable ↵ | Raymond Hettinger | 2020-09-23 | 1 | -12/+12 |
| | | | | names. (GH-22368) | ||||
* | bpo-41816: `StrEnum.__str__` is `str.__str__` (GH-22362) | Ethan Furman | 2020-09-22 | 3 | -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 Reedy | 2020-09-22 | 4 | -42/+51 |
| | |||||
* | bpo-41810: Reintroduce `types.EllipsisType`, `.NoneType` & ↵ | Bas van Beek | 2020-09-22 | 7 | -5/+54 |
| | | | | | `.NotImplementedType` (GH-22336) closes issue 41810 | ||||
* | bpo-41602: raise SIGINT exit code on KeyboardInterrupt from ↵ | Thomas Grainger | 2020-09-22 | 3 | -7/+92 |
| | | | | | pymain_run_module (#21956) Closes bpo issue 41602 | ||||
* | bpo-41817: use new StrEnum to ensure all members are strings (GH-22348) | Ethan Furman | 2020-09-22 | 2 | -7/+8 |
| | | | * use new StrEnum to ensure all members are strings | ||||
* | bpo-40670: More reliable validation of statements in timeit.Timer. (GH-22358) | Serhiy Storchaka | 2020-09-22 | 3 | -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 Stinner | 2020-09-22 | 1 | -1/+1 |
| | |||||
* | Enum: add extended AutoNumber example (GH-22349) | Ethan Furman | 2020-09-22 | 2 | -0/+27 |
| | |||||
* | bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350) | Terry Jan Reedy | 2020-09-22 | 4 | -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 Storchaka | 2020-09-22 | 1 | -94/+99 |
| | |||||
* | bpo-41816: add `StrEnum` (GH-22337) | Ethan Furman | 2020-09-22 | 4 | -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 BOOZ | 2020-09-21 | 5 | -2/+20 |
| | |||||
* | bpo-1635741: Convert an _lsprof method to argument clinic (GH-22240) | Mohamed Koubaa | 2020-09-21 | 2 | -31/+86 |
| | |||||
* | bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332) | Samuel Marks | 2020-09-21 | 1 | -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 Hettinger | 2020-09-21 | 1 | -0/+63 |
| | |||||
* | [doc] Teach 0-args form of super in Programming FAQ (GH-22176) | Andre Delfino | 2020-09-20 | 1 | -8/+7 |
| | |||||
* | bpo-12178: Fix escaping of escapechar in csv.writer() (GH-13710) | Berker Peksag | 2020-09-20 | 3 | -0/+20 |
| | | | Co-authored-by: Itay Elbirt <anotahacou@gmail.com> | ||||
* | bpo-41815: SQLite: segfault if backup called on closed database (GH-22322) | Peter McCormick | 2020-09-20 | 3 | -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 Dickinson | 2020-09-19 | 2 | -0/+8 |
| | |||||
* | bpo-33689: Blank lines in .pth file cause a duplicate sys.path entry (GH-20679) | idomic | 2020-09-19 | 3 | -1/+12 |
| | |||||
* | bpo-41811: create SortKey members using first given value (GH-22316) | Ethan Furman | 2020-09-19 | 2 | -3/+7 |
| | |||||
* | bpo-41756: Introduce PyGen_Send C API (GH-22196) | Vladimir Matveev | 2020-09-19 | 7 | -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 Hettinger | 2020-09-19 | 1 | -5/+4 |
| | | | | (GH-22315) | ||||
* | bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) | Victor Stinner | 2020-09-18 | 3 | -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 Na | 2020-09-18 | 2 | -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 Stinner | 2020-09-18 | 8 | -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 Storchaka | 2020-09-18 | 4 | -5/+5 |
| | |||||
* | bpo-41808: Add What's New 3.9 entry missing from master (#22294) | Terry Jan Reedy | 2020-09-18 | 1 | -0/+5 |
| | | | Entry was added by bpo-40939, #21012 and #21039. | ||||
* | bpo-27032, bpo-37328: Document removing HTMLParser.unescape(). (GH-22288) | Serhiy Storchaka | 2020-09-17 | 1 | -0/+6 |
| | |||||
* | bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998) | Serhiy Storchaka | 2020-09-17 | 5 | -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 Storchaka | 2020-09-17 | 1 | -6/+6 |
| | |||||
* | Enum: make `Flag` and `IntFlag` members iterable (GH-22221) | Ethan Furman | 2020-09-16 | 4 | -0/+32 |
| | |||||
* | _auto_called cleanup (GH-22285) | Ethan Furman | 2020-09-16 | 2 | -1/+12 |
| | |||||
* | bpo-41746: Add type information to asdl_seq objects (GH-22223) | Pablo Galindo | 2020-09-16 | 22 | -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 Furman | 2020-09-16 | 1 | -0/+1 |
| | |||||
* | bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) | Ethan Furman | 2020-09-16 | 4 | -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 Delfino | 2020-09-16 | 1 | -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 Furman | 2020-09-16 | 3 | -5/+18 |
| | | | fix bug that let Enums be extended via multiple inheritance | ||||
* | bpo-41792: Add is_typeddict function to typing.py (GH-22254) | Patrick Reader | 2020-09-16 | 4 | -0/+42 |
| | | | | | Closes issue41792. Also closes https://github.com/python/typing/issues/751. | ||||
* | bpo-41789: honor object overrides in Enum classes (GH-22250) | Ethan Furman | 2020-09-15 | 3 | -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 Burke | 2020-09-15 | 1 | -1/+1 |
| | | | sigprocmask is in section 2, not 3. | ||||
* | bpo-39587: Enum - use correct mixed-in data type (GH-22263) | Ethan Furman | 2020-09-15 | 3 | -1/+56 |
| | |||||
* | bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262) | Batuhan Taskaya | 2020-09-15 | 3 | -0/+46 |
| | | | Automerge-Triggered-By: @gvanrossum | ||||
* | Fix all Python Cookbook links (#22205) | Andre Delfino | 2020-09-15 | 17 | -20/+20 |
| | |||||
* | minor reformat of enum tests (GH-22259) | Ethan Furman | 2020-09-15 | 1 | -26/+44 |
| | | | Automerge-Triggered-By: @ethanfurman | ||||
* | Improve the description of difflib in the documentation (GH-22253) | Mandeep | 2020-09-15 | 1 | -2/+2 |
| | | | | | | From "can produce difference information in various formats ..." to " can produce information about file differences in various formats ..." Automerge-Triggered-By: @Mariatta |