- 24 Aug, 2019 15 commits
-
-
Terry Jan Reedy authored
Redo of #15402 by GeeTransit and Kyle Stanley.
-
Jürgen Gmach authored
"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
-
Raymond Hettinger authored
-
Terry Jan Reedy authored
This reverts commit a50f0a4c.
-
Shashi Ranjan authored
Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com>
-
Dong-hee Na authored
-
Raymond Hettinger authored
-
Greg Price authored
-
GeeTransit authored
-
shireenrao authored
* 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. -
Serhiy Storchaka authored
Fix compilation of "break" and "continue" in the "finally" block when the corresponding "try" block contains "return" with a non-constant value.
-
Serhiy Storchaka authored
-
Raymond Hettinger authored
-
Ned Deily authored
-
Antoine authored
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
-
- 23 Aug, 2019 14 commits
-
-
Dong-hee Na authored
-
Zackery Spytz authored
-
Raymond Hettinger authored
-
Victor Stinner authored
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.
-
Victor Stinner authored
-
Victor Stinner authored
-
Sergey Fedoseev authored
_PyTime_t type is defined as int64_t, and so min/max are INT64_MIN/INT64_MAX, not PY_LLONG_MIN/PY_LLONG_MAX.
-
Stefan Behnel authored
-
Victor Stinner authored
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.
-
Victor Stinner authored
Fix code handling TimeoutExpired exception in _timedout().
-
Victor Stinner authored
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.
-
Andre Delfino authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 22 Aug, 2019 9 commits
-
-
Raymond Hettinger authored
-
Pablo Galindo authored
https://bugs.python.org/issue37915 Automerge-Triggered-By: @pablogsal
-
Ivan Levkivskyi authored
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
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Sergey Fedoseev authored
-
Florian Bruhin authored
This typo was introduced in GH-13409 when changing the message text.
-
Pablo Galindo authored
* 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).
-
Steve Dower authored
-
- 21 Aug, 2019 2 commits
-
-
Steve Dower authored
-
Steve Dower authored
bpo-36311: Fixes decoding multibyte characters around chunk boundaries and improves decoding performance (GH-15083)
-