summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* bpo-41631: _ast module uses again a global state (#21961)Victor Stinner2020-09-157-309/+160
| | | | | | | | | | | | | | | | | Partially revert commit ac46eb4ad6662cf6d771b20d8963658b2186c48c: "bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)". Using a module state per module instance is causing subtle practical problems. For example, the Mercurial project replaces the __import__() function to implement lazy import, whereas Python expected that "import _ast" always return a fully initialized _ast module. Add _PyAST_Fini() to clear the state at exit. The _ast module has no state (set _astmodule.m_size to 0). Remove astmodule_traverse(), astmodule_clear() and astmodule_free() functions.
* bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)Neeraj Samtani2020-09-151-5/+5
| | | Revise example of "continue" in the tutorial documentation
* bpo-41513: Remove broken tests that fail on Gentoo (GH-22249)Raymond Hettinger2020-09-151-51/+0
|
* bpo-40721: add note about enum member name case (GH-22231)Ethan Furman2020-09-141-0/+6
| | | * UPPER_CASE preferred as enum members are constants
* bpo-41744: Package python.props with correct name in NuGet package (GH-22154)Václav Slavík2020-09-145-4/+8
| | | | | | | | NuGet automatically includes .props file from the build directory in the target using the package, but only if the .props file has the correct name: it must be $(id).props Rename python.props correspondingly in all the nuspec variants. Also keep python.props as it were for backward compatibility.
* bpo-41646: Mention path-like objects support in the docs for shutil.copy() ↵Zackery Spytz2020-09-141-3/+3
| | | | (GH-22208)
* Fix a typo in locale Docs (#22233)abdo2020-09-141-1/+1
|
* bpo-41513: Add docs and tests for hypot() (GH-22238)Raymond Hettinger2020-09-143-7/+63
|
* bpo-39883: Update macOS installer copy of LICENSE. (GH-22235)Ned Deily2020-09-141-3/+24
|
* bpo-41778: Change a punctuation on documentation. (GH-22229)Emmanuel Arias2020-09-131-2/+2
| | | | | | | | | | On this paragrapah the clarification about IIS7 seems there's not connection beacuase is in other sentence. Move the punctuation to connect both the last sentence with the information in the parenthesis. I think the NEWS is not necessary here. Automerge-Triggered-By: @ericvsmith
* bpo-38967: Improve the error msg for reserved _sunder_ names in enum (GH-18370)Zackery Spytz2020-09-132-1/+7
|
* bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* ↵Sergey Fedoseev2020-09-131-3/+3
| | | | | | | | | | | | | | | | | functions (GH-21763) `None` doesn't work: ```python >>> import tempfile >>> tempfile.TemporaryFile(buffering=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sergey/tmp/cpython-dev/Lib/tempfile.py", line 607, in TemporaryFile return _io.open(fd, mode, buffering=buffering, TypeError: 'NoneType' object cannot be interpreted as an integer ``` Automerge-Triggered-By: @vsajip
* bpo-41672: Fix type mismatches in imaplib docs (GH-22207)Norbert Cyran2020-09-121-2/+2
|
* bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)Victor Stinner2020-09-123-9/+23
| | | | | Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed.
* bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)Terry Jan Reedy2020-09-122-1/+2
| | | | | Argument script_exec_args is usually an absolute file name, but twice has form ['-m', 'module_name'].
* bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)Terry Jan Reedy2020-09-121-1/+1
| | | | The problems occured with a repository build on machine with freshly updated Windows 10 Pro.
* [doc] struct: update note about network byte order form to be more helpful ↵Stargirl Flowers2020-09-111-2/+4
| | | | | (GH-22201) Update the sentence to provide some context on why network byte order is defined as big endian.
* Doc: Fix alphabetical ordering of removeprefix/suffix. (GH-22194)Benjamin Peterson2020-09-101-27/+28
|