summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-15542: Documentation incorrectly suggests __init__ called after direct ↵Joannah Nanjekye2019-08-261-4/+4
| | | | __new__ call (GH-15478)
* bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)Terry Jan Reedy2019-08-263-14/+11
| | | Cease turning SyntaxWarnings into SyntaxErrors.
* Doc: Keep the venv/* exclude pattern. (GH-15229)Julien Palard2019-08-261-2/+4
| | | In case it has been previously created.
* bpo-29553: Fix ArgumentParser.format_usage() for mutually exclusive groups ↵Flavian Hautbois2019-08-253-2/+50
| | | | | (GH-14976) Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
* bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131)Nick Coghlan2019-08-2510-76/+191
| | | | | | | | | | | | | | | - drop TargetScopeError in favour of raising SyntaxError directly as per the updated PEP 572 - comprehension iteration variables are explicitly local, but named expression targets in comprehensions are nonlocal or global. Raise SyntaxError as specified in PEP 572 - named expression targets in the outermost iterable of a comprehension have an ambiguous target scope. Avoid resolving that question now by raising SyntaxError. PEP 572 originally required this only for cases where the bound name conflicts with the iteration variable in the comprehension, but CPython can't easily restrict the exception to that case (as it doesn't know the target variable names when visiting the outermost iterator expression)
* bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)Zackery Spytz2019-08-2514-2626/+2663
| | | | Fix assert statement misbehavior if AssertionError is shadowed.
* bpo-37905: Improve docs for NormalDist (GH-15486)Raymond Hettinger2019-08-251-20/+7
|
* bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)Tal Einat2019-08-254-50/+27
| | | | | | | | | These were caused by keeping around a reference to the Squeezer instance and calling it's load_font() upon config changes, which sometimes happened even if the shell window no longer existed. This change completely removes that mechanism, instead having the editor window properly update its width attribute, which can then be used by Squeezer.
* bpo-37942: Improve argument clinic float converter (GH-15470)Raymond Hettinger2019-08-2510-112/+317
|
* bpo-19072: Make @classmethod support chained decorators (GH-8405)Berker Peksag2019-08-245-2/+71
|
* Fix typo and rearrange words in IDLE news item (GH-15471)Terry Jan Reedy2019-08-241-1/+1
| | | Redo of #15402 by GeeTransit and Kyle Stanley.
* Clarify argument types in datetime docs. (GH-15459)Jürgen Gmach2019-08-241-3/+3
| | | | | | | | | | | | "Arguments may be integers... " could be misunderstand as they also could be strings. New wording makes it clear that arguments have to be integers. modified: Doc/library/datetime.rst Automerge-Triggered-By: @pganssle
* bpo-14112: Allow beginners to explore shallowness in greater depth ;-) ↵Raymond Hettinger2019-08-242-1/+3
| | | | (GH-15465)
* Revert "(TH-15402)" (#15468)Terry Jan Reedy2019-08-241-1/+1
| | | This reverts commit a50f0a4c2bd997e4534162ecc1853cb54c7ae902.
* Fix typos in the documentation of Parser/pgen (GH-15416)Shashi Ranjan2019-08-241-7/+7
| | | | Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com>
* bpo-37798: Test both Python and C versions in test_statistics.py (GH-15453)Dong-hee Na2019-08-242-33/+75
|
* bpo-32118: Simplify docs for sequence comparison (GH-15450)Raymond Hettinger2019-08-241-19/+7
|
* bpo-37812: Convert CHECK_SMALL_INT macro to a function so the return is ↵Greg Price2019-08-242-11/+28
| | | | explicit. (GH-15216)
* (TH-15402)GeeTransit2019-08-241-1/+1
|
* bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170)shireenrao2019-08-243-52/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix Path._add_implied_dirs to include all implied directories * fix Path._add_implied_dirs to include all implied directories * Optimize code by using sets instead of lists * 📜🤖 Added by blurb_it. * fix Path._add_implied_dirs to include all implied directories * Optimize code by using sets instead of lists * 📜🤖 Added by blurb_it. * Add tests to zipfile.Path.iterdir() fix * Update test for zipfile.Path.iterdir() * remove whitespace from test file * Rewrite NEWS blurb to describe the user-facing impact and avoid implementation details. * remove redundant [] within set comprehension * Update to use unique_everseen to maintain order and other suggestions in review * remove whitespace and add back add_dirs in tests * Add new standalone function parents using posixpath to get parents of a directory * removing whitespace (sorry) * Remove import pathlib from zipfile.py * Rewrite _parents as a slice on a generator of the ancestry of a path. * Remove check for '.' and '/', now that parents no longer returns those. * Separate calculation of implied dirs from adding those * Re-use _implied_dirs in tests for generating zipfile with dir entries. * Replace three fixtures (abcde, abcdef, abde) with one representative example alpharep. * Simplify implementation of _implied_dirs by collapsing the generation of parent directories for each name.
* bpo-37830: Fix compilation of break and continue in finally. (GH-15320)Serhiy Storchaka2019-08-2411-194/+305
| | | | | | Fix compilation of "break" and "continue" in the "finally" block when the corresponding "try" block contains "return" with a non-constant value.
* bpo-29535: Remove promize about hash randomization of datetime objects. ↵Serhiy Storchaka2019-08-244-7/+7
| | | | (GH-15269)
* bpo-19119: Remove invalid test and rename a misnamed test (GH-15442)Raymond Hettinger2019-08-241-14/+1
|
* Fix link to changelog in 3.9 What's New page (GH-15445)Ned Deily2019-08-241-1/+1
|
* Fix funny typo in Doc/bugs. (GH-15412)Antoine2019-08-241-1/+1
| | | | | | | Fix typo in description of link to mozilla bug report writing guidelines. Though the URL is misleading, we're indeed trying to write bug _reports_, not to add bugs. Automerge-Triggered-By: @ned-deily
* bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() (GH-15266)Dong-hee Na2019-08-239-73/+264
|
* bpo-37549: os.dup() fails for standard streams on Windows 7 (GH-15389)Zackery Spytz2019-08-233-1/+14
|
* bpo-26589: Add http status code 451 (GH-15413)Raymond Hettinger2019-08-234-0/+12
|
* bpo-36763: PyConfig_Read() handles PySys_AddXOption() (GH-15431)Victor Stinner2019-08-236-30/+115
| | | | | | | | | | PyConfig_Read() is now responsible to handle early calls to PySys_AddXOption() and PySys_AddWarnOption(). Options added by PySys_AddXOption() are now handled the same way than PyConfig.xoptions and command line -X options. For example, PySys_AddXOption(L"faulthandler") enables faulthandler as expected.
* bpo-36763, doc: Add links in the new C API init doc (GH-15433)Victor Stinner2019-08-232-0/+4
|
* bpo-36763: Implement PyWideStringList_Insert() of PEP 587 (GH-15423)Victor Stinner2019-08-235-13/+51
|
* Fix _PyTime_MIN/MAX values (GH-15384)Sergey Fedoseev2019-08-231-2/+2
| | | | _PyTime_t type is defined as int64_t, and so min/max are INT64_MIN/INT64_MAX, not PY_LLONG_MIN/PY_LLONG_MAX.
* bpo-14465: Add an indent() function to xml.etree.ElementTree to pretty-print ↵Stefan Behnel2019-08-234-1/+183
| | | | XML trees (GH-15200)
* test_gdb: use unittest test discovery (GH-15405)Victor Stinner2019-08-231-11/+5
| | | | | | | Replace test.support.run_unittest() with unittest.main() to automatically discover test cases, instead of having an maintaing manually a list which may be incomplete. Remove also an unused variable.
* bpo-37531: Fix regrtest _timedout() function on timeout (GH-15419)Victor Stinner2019-08-231-2/+2
| | | Fix code handling TimeoutExpired exception in _timedout().
* bpo-37926: Fix PySys_SetArgvEx(0, NULL, 0) crash (GH-15415)Victor Stinner2019-08-232-1/+2
| | | | | | | | | | empty_argv is no longer static in Python 3.8, but it is declared in a temporary scope, whereas argv keeps a reference to it. empty_argv memory (allocated on the stack) is reused by make_sys_argv() code which is inlined when using gcc -O3. Define empty_argv in PySys_SetArgvEx() body, to ensure that it remains valid for the whole lifetime of the PySys_SetArgvEx() call.
* Correct minor grammar mistake (GH-15404)Andre Delfino2019-08-231-1/+1
|
* bpo-30826: Improve control flow examples (GH-15407)Raymond Hettinger2019-08-231-14/+14
|
* bpo-12634: Clarify an awkward section of the tutorial (GH-15406)Raymond Hettinger2019-08-231-6/+14
|
* bpo-30550: Clarify JSON ordering guarantees (GH-15397)Raymond Hettinger2019-08-221-0/+12
|
* bpo-37915: Fix comparison between tzinfo objects and timezone objects (GH-15390)Pablo Galindo2019-08-223-1/+10
| | | | | | | https://bugs.python.org/issue37915 Automerge-Triggered-By: @pablogsal
* bpo-28556: Add a regression test to typing (GH-15396)Ivan Levkivskyi2019-08-221-0/+17
| | | | | | This adds a regression test for the issue found in the Python 2 backport, see https://github.com/python/typing/issues/656 https://bugs.python.org/issue28556
* bpo-32554: Deprecate hashing arbitrary types in random.seed() (GH-15382)Raymond Hettinger2019-08-224-2/+30
|
* bpo-14050: Note that not all data can be sorted (GH-15381)Raymond Hettinger2019-08-221-0/+7
|
* bpo-27961: Remove leftovers from the times when long long wasn't required ↵Sergey Fedoseev2019-08-225-38/+26
| | | | (GH-15388)
* Add missing space to warning message (GH-14915)Florian Bruhin2019-08-221-1/+1
| | | This typo was introduced in GH-13409 when changing the message text.
* Refactor Parser/pgen and add documentation and explanations (GH-15373)Pablo Galindo2019-08-227-332/+753
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor Parser/pgen and add documentation and explanations To improve the readability and maintainability of the parser generator perform the following transformations: * Separate the metagrammar parser in its own class to simplify the parser generator logic. * Create separate classes for DFAs and NFAs and move methods that act exclusively on them from the parser generator to these classes. * Add docstrings and comment documenting the process to go from the grammar file into NFAs and then DFAs. Detail some of the algorithms and give some background explanations of some concepts that will helps readers not familiar with the parser generation process. * Select more descriptive names for some variables and variables. * PEP8 formatting and quote-style homogenization. The output of the parser generator remains the same (Include/graminit.h and Python/graminit.c remain untouched by running the new parser generator).
* bpo-37834: Fix test on Windows 7 (GH-15377)Steve Dower2019-08-221-0/+3
|
* bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes ↵Steve Dower2019-08-212-5/+10
| | | | (GH-15369)
* bpo-36311: Fixes decoding multibyte characters around chunk boundaries and ↵Steve Dower2019-08-213-9/+29
| | | | improves decoding performance (GH-15083)