]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Pablo Galindo [Fri, 10 Jan 2020 09:24:22 +0000 (09:24 +0000)]
bpo-39166: Fix trace of last iteration of async for loops (#17800)
Serhiy Storchaka [Fri, 10 Jan 2020 08:12:55 +0000 (10:12 +0200)]
bpo-39235: Check end_lineno and end_col_offset of AST nodes. (GH-17926)
Guido van Rossum [Thu, 9 Jan 2020 19:18:47 +0000 (11:18 -0800)]
bpo-39235: Fix end location for genexp in call args (GH-17925)
The fix changes copy_location() to require an extra node from which to extract the end location, and fixing all 5 call sites.
https://bugs.python.org/issue39235
Daniel Hahler [Thu, 9 Jan 2020 17:07:32 +0000 (18:07 +0100)]
Fix typo in test's docstring (GH-17856)
* Fix typo in test's docstring. contination -> continuation.
Steve Dower [Thu, 9 Jan 2020 17:00:29 +0000 (09:00 -0800)]
bpo-25172: Reduce scope of crypt import tests (GH-17881)
Karthikeyan Singaravelan [Thu, 9 Jan 2020 13:41:46 +0000 (19:11 +0530)]
Add test cases for dataclasses. (#17909)
* Add test cases for dataclasses.
* Add test for repr output of field.
* Add test for ValueError to be raised when both default and default_factory are passed.
Petr Viktorin [Thu, 9 Jan 2020 12:05:18 +0000 (13:05 +0100)]
bpo-39161: Document multi-phase init modules under Py_NewInterpreter() (GH-17896)
\+ this also adds a stronger warning against sharing objects between (sub-)interpreters.
https://bugs.python.org/issue39161
Alex Henrie [Thu, 9 Jan 2020 09:14:11 +0000 (09:14 +0000)]
bpo-39270: Remove dead assignment from config_init_module_search_paths (GH-17914)
Alex Henrie [Thu, 9 Jan 2020 09:12:12 +0000 (09:12 +0000)]
bpo-39272: Remove dead assignment from _ssl__SSLContext_load_verify_locations_impl (GH-17916)
Alex Henrie [Thu, 9 Jan 2020 06:27:52 +0000 (06:27 +0000)]
bpo-39271: Remove dead assignment from pattern_subx (GH-17915)
Alex Henrie [Thu, 9 Jan 2020 02:48:52 +0000 (02:48 +0000)]
closes bpo-39262: Use specific out-of-memory message in _sharedexception_bind. (GH-17908)
Alex Henrie [Thu, 9 Jan 2020 02:46:55 +0000 (02:46 +0000)]
closes bpo-39261: Remove dead assignment from pyinit_config. (GH-17907)
Victor Stinner [Wed, 8 Jan 2020 20:03:45 +0000 (21:03 +0100)]
Py_DECREF: only pass filename if Py_REF_DEBUG is defined (GH-17870)
Filename and line numbers are not needed when Py_REF_DEBUG are not
defined.
The static inline _Py_DECREF() function was introduced by
commit
2aaf0c12041bcaadd7f2cc5a54450eefd7a6ff12 .
An Long [Wed, 8 Jan 2020 18:28:14 +0000 (02:28 +0800)]
bpo-35292: Avoid calling mimetypes.init when http.server is imported (GH-17822)
Dong-hee Na [Wed, 8 Jan 2020 15:29:34 +0000 (00:29 +0900)]
bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)
Pablo Galindo [Wed, 8 Jan 2020 13:00:14 +0000 (13:00 +0000)]
bpo-39233: Update positional-only section in the glossary (GH-17874)
https://bugs.python.org/issue39233
Alex Henrie [Wed, 8 Jan 2020 12:52:44 +0000 (12:52 +0000)]
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
Dong-hee Na [Tue, 7 Jan 2020 17:30:55 +0000 (02:30 +0900)]
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
Correctly parenthesize filter-based statements that contain lambda
expressions in lib2to3.
Dong-hee Na [Tue, 7 Jan 2020 17:28:10 +0000 (02:28 +0900)]
bpo-38615: Add timeout parameter for IMAP4 and IMAP4_SSL constructor (GH-17203)
imaplib.IMAP4 and imaplib.IMAP4_SSL now have an
optional *timeout* parameter for their constructors.
Also, the imaplib.IMAP4.open() method now has an optional *timeout* parameter
with this change. The overridden methods of imaplib.IMAP4_SSL and
imaplib.IMAP4_stream were applied to this change.
Derek Brown [Tue, 7 Jan 2020 16:40:23 +0000 (08:40 -0800)]
bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689)
Victor Stinner [Tue, 7 Jan 2020 14:00:02 +0000 (15:00 +0100)]
bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882)
The select.epoll.unregister() method no longer ignores the EBADF
error.
Andrew Svetlov [Tue, 7 Jan 2020 13:23:01 +0000 (15:23 +0200)]
bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863)
https://bugs.python.org/issue39191
Inada Naoki [Tue, 7 Jan 2020 07:58:40 +0000 (16:58 +0900)]
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
Inada Naoki [Tue, 7 Jan 2020 06:52:44 +0000 (15:52 +0900)]
Doc: Change Python 2 status to EOL. (GH-17885)
YoSTEALTH [Mon, 6 Jan 2020 22:04:43 +0000 (16:04 -0600)]
bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)
Updated as Eric mentioned "By default, the initial value starts at 1"
https://bugs.python.org/issue39234
Automerge-Triggered-By: @ericvsmith
Steve Dower [Mon, 6 Jan 2020 21:23:10 +0000 (13:23 -0800)]
bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)
https://bugs.python.org/issue39041
Automerge-Triggered-By: @zooba
YoSTEALTH [Mon, 6 Jan 2020 19:53:36 +0000 (13:53 -0600)]
bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872)
* `enum.auto()` initial value is now specified as being `1`.
Anthony Wee [Mon, 6 Jan 2020 16:57:34 +0000 (08:57 -0800)]
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
Pablo Galindo [Mon, 6 Jan 2020 15:59:09 +0000 (15:59 +0000)]
bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)
Chandan Singh [Mon, 6 Jan 2020 15:18:16 +0000 (15:18 +0000)]
Fix link to bpo issue in Changelog (GH-17692)
Jason R. Coombs [Mon, 6 Jan 2020 12:59:36 +0000 (07:59 -0500)]
bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864)
Fixes error attempting to bind to IPv4 address.
Dong-hee Na [Mon, 6 Jan 2020 10:46:04 +0000 (19:46 +0900)]
argument-clinic: Simplify multi-line string handling (GH-17852)
Jason R. Coombs [Mon, 6 Jan 2020 03:32:19 +0000 (22:32 -0500)]
bpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851)
Tal Einat [Sun, 5 Jan 2020 23:51:48 +0000 (01:51 +0200)]
Minor formatting improvements and fixes to idle.rst (GH-17165)
Khalid Mammadov [Sun, 5 Jan 2020 22:39:38 +0000 (22:39 +0000)]
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)
To be consistent with document layout, it should say when the feature was added.
Although it's mentioned few other places in the doc but it's not explicitly say that at that place.
https://bugs.python.org/issue39130
HongWeipeng [Sun, 5 Jan 2020 22:20:29 +0000 (16:20 -0600)]
Fix the parameter list of object. _rpow_ (#GH-16477)
Oleg Höfling [Sun, 5 Jan 2020 22:08:14 +0000 (23:08 +0100)]
Replace links in howto/pyporting.rst with sphinx references (GH-17781)
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
Pablo Galindo [Sun, 5 Jan 2020 18:52:39 +0000 (18:52 +0000)]
Organise and clean test_positional_only_arg and add more tests (GH-17842)
Pablo Galindo [Sun, 5 Jan 2020 17:30:53 +0000 (17:30 +0000)]
bpo-39200: Correct the error message for range() empty constructor (GH-17813)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Anthony Sottile [Sun, 5 Jan 2020 17:03:56 +0000 (12:03 -0500)]
Fix constant folding optimization for positional only arguments (GH-17837)
Terry Jan Reedy [Sun, 5 Jan 2020 16:23:58 +0000 (11:23 -0500)]
bpo-39152: add missing ttk.Scale.configure return value (GH-17815)
tkinter.ttk.Scale().configure([name]) now returns a configuration tuple for name
or a list thereof for all options. Based on patch Giovanni Lombardo.
Serhiy Storchaka [Sun, 5 Jan 2020 12:15:50 +0000 (14:15 +0200)]
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
Serhiy Storchaka [Sun, 5 Jan 2020 12:15:27 +0000 (14:15 +0200)]
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)
No longer import the re module if it is not needed.
Serhiy Storchaka [Sun, 5 Jan 2020 12:14:31 +0000 (14:14 +0200)]
bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)
Ignore leading dots and no longer ignore a trailing newline.
Anthony Sottile [Sun, 5 Jan 2020 01:57:21 +0000 (20:57 -0500)]
Fix SystemError when nested function has annotation on positional-only argument (GH-17826)
Anthony Shaw [Sat, 4 Jan 2020 12:56:31 +0000 (23:56 +1100)]
bpo-28367: Add additional baud rates for termios (GH-13142)
Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Andrew Svetlov [Sat, 4 Jan 2020 09:10:14 +0000 (11:10 +0200)]
Fix #39191: Don't spawn a task before failing (#17796)
Zackery Spytz [Fri, 3 Jan 2020 12:16:12 +0000 (05:16 -0700)]
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-16857)
Emmanuel Nosa E [Fri, 3 Jan 2020 12:10:16 +0000 (13:10 +0100)]
Add link to zlib v1.1.3 vulnerability (GH-17156)
Raymond Hettinger [Fri, 3 Jan 2020 05:21:18 +0000 (22:21 -0700)]
bpo-39158: ast.literal_eval() doesn't support empty sets (GH-17742)
Ned Deily [Fri, 3 Jan 2020 03:28:37 +0000 (22:28 -0500)]
Update copyright year in macOS installer license copy (GH-17806)
Benjamin Peterson [Fri, 3 Jan 2020 02:56:34 +0000 (18:56 -0800)]
Bring Python into the next decade. (GH-17801)
Batuhan Taşkaya [Thu, 2 Jan 2020 18:20:04 +0000 (21:20 +0300)]
bpo-38870: Throw ValueError on invalid yield from usage (GH-17798)
Anthony Shaw [Thu, 2 Jan 2020 17:32:55 +0000 (04:32 +1100)]
Remove outdated mention of hg.exe from Tools/msi/README.txt (GH-17792)
Pablo Galindo [Thu, 2 Jan 2020 11:38:44 +0000 (11:38 +0000)]
bpo-39114: Fix tracing of except handlers with name binding (GH-17769)
When producing the bytecode of exception handlers with name binding (like `except Exception as e`) we need to produce a try-finally block to make sure that the name is deleted after the handler is executed to prevent cycles in the stack frame objects. The bytecode associated with this try-finally block does not have source lines associated and it was causing problems when the tracing functionality was running over it.
Rafael Fontenelle [Wed, 1 Jan 2020 22:26:33 +0000 (19:26 -0300)]
bpo-39183: Fix formatting in library/ensurepip (GH-17787)
Remove extra space to fix formatting and avoid from splitting text in to strings.
https://bugs.python.org/issue39183
Jendrik Seipp [Wed, 1 Jan 2020 22:21:43 +0000 (23:21 +0100)]
bpo-13601: always use line-buffering for sys.stderr (GH-17646)
Vinay Sajip [Wed, 1 Jan 2020 19:32:11 +0000 (19:32 +0000)]
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773)
This uses the heuristic of assuming a named tuple is a subclass of
tuple with a _fields attribute. This change means that contents of
a named tuple wouldn't be converted - if a user wants to have
ConvertingTuple functionality from a namedtuple, they will have to
implement it themselves.
Anthony Sottile [Wed, 1 Jan 2020 06:11:16 +0000 (01:11 -0500)]
Document CodeType.replace (GH-17776)
Ned Batchelder [Wed, 1 Jan 2020 02:40:58 +0000 (21:40 -0500)]
bpo-39176: Improve error message for 'named assignment' (GH-17777)
Terry Jan Reedy [Tue, 31 Dec 2019 18:34:22 +0000 (13:34 -0500)]
Fix idlelib README typo. (GH-17770)
Борис Верховский [Tue, 31 Dec 2019 12:28:18 +0000 (07:28 -0500)]
Minor doc fixes in urllib.parse (GH-17745)
Batuhan Taşkaya [Tue, 31 Dec 2019 02:31:52 +0000 (05:31 +0300)]
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
Inada Naoki [Tue, 31 Dec 2019 01:58:37 +0000 (10:58 +0900)]
bpo-38588: Optimize list comparison. (GH-17766)
Mitigate performance regression of the list comparison caused by
2d5bf56 .
Dong-hee Na [Tue, 31 Dec 2019 01:04:22 +0000 (10:04 +0900)]
bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (GH-17734)
Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call.
Terry Jan Reedy [Mon, 30 Dec 2019 22:16:43 +0000 (17:16 -0500)]
bpo-34118: memoryview, range, and tuple are classes (GH-17761)
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.
Zackery Spytz [Mon, 30 Dec 2019 19:32:58 +0000 (12:32 -0700)]
bpo-38610: Fix possible crashes in several list methods (GH-17022)
Hold strong references to list elements while calling PyObject_RichCompareBool().
Batuhan Taşkaya [Mon, 30 Dec 2019 16:08:08 +0000 (19:08 +0300)]
bpo-39019: Implement missing __class_getitem__ for SpooledTemporaryFile (GH-17560)
Batuhan Taşkaya [Mon, 30 Dec 2019 16:02:04 +0000 (19:02 +0300)]
bpo-39019: Implement missing __class_getitem__ for subprocess classes (GH-17558)
Kyle Stanley [Mon, 30 Dec 2019 11:50:19 +0000 (06:50 -0500)]
bpo-34790: Implement deprecation of passing coroutines to asyncio.wait() (GH-16977)
Mark Shannon [Mon, 30 Dec 2019 09:53:36 +0000 (09:53 +0000)]
Fix handling of line numbers around finally-blocks. (#17737)
Géry Ogam [Mon, 30 Dec 2019 05:24:51 +0000 (05:24 +0000)]
bpo-39037: Fix lookup order of magic methods in with statement documentation (GH-17608)
* __enter__ is now looked up before __exit__ to give a more intuitive error message
* add pseudo-code equivalent for the with statement
* fix pseudo-code for the async with statement to use a finally clause
* use SUITE rather than BLOCK for consistency with the language grammar
Patch by Géry Ogam.
Antoine [Sun, 29 Dec 2019 22:14:22 +0000 (23:14 +0100)]
Fix typos and remove deprecated deprecation warning. (GH-17741)
Pablo Galindo [Sun, 29 Dec 2019 21:35:54 +0000 (21:35 +0000)]
bpo-39157: Skip test_pidfd_send_signal if the system does not have enough privileges to use pidfd (GH-17740)
Pablo Galindo [Sun, 29 Dec 2019 20:18:36 +0000 (20:18 +0000)]
Fix error when running with -uall in test_unparse (GH-17739)
Pablo Galindo [Sun, 29 Dec 2019 19:20:55 +0000 (19:20 +0000)]
bpo-38870: Run always tests that heavily use grammar features in test_unparse (GH-17738)
Oleg Höfling [Sun, 29 Dec 2019 17:26:35 +0000 (18:26 +0100)]
links in importlib.metadata.rst replaced with sphinx references (GH-17730)
The importlib.metadata documentation uses hardcoded links to internal
pages. This results in minor rendering issues. This change replaces
the hardcoded links with suitable Sphinx roles.
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
Gurupad Hegde [Sat, 28 Dec 2019 22:16:02 +0000 (17:16 -0500)]
bpo-39136: Fixed typos (GH-17720)
funtion -> function; configuraton -> configuration; defintitions -> definitions;
focusses -> focuses; necesarily -> necessarily; follwing -> following;
Excape -> Escape,
Batuhan Taşkaya [Sat, 28 Dec 2019 02:53:03 +0000 (05:53 +0300)]
bpo-38731: Fix function signature of quiet in docs (GH-17719)
Anthony Shaw [Sat, 28 Dec 2019 02:32:48 +0000 (13:32 +1100)]
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)
Pablo Galindo [Fri, 27 Dec 2019 21:55:56 +0000 (21:55 +0000)]
Move comment about permanent generation to gcmodule.c (GH-17718)
The comment about the collection rules for the permanent generation was
incorrectly referenced by a comment in gcmodule.c (the comment has been
moved long ago into a header file). Moving the comment into the relevant
code helps with readability and avoids broken references.
Michael Wayne Goodman [Fri, 27 Dec 2019 03:01:08 +0000 (11:01 +0800)]
closes bpo-39135: Remove 'time.clock()' mention in docs. (GH17709)
`time.clock()` was removed in Python 3.8, but it was still mentioned
in the documentation for when `time.get_clock_info()` is given the
argument `'clock'`. This commit removes that mention.
Batuhan Taşkaya [Fri, 27 Dec 2019 02:51:34 +0000 (05:51 +0300)]
closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)
Pablo Galindo [Thu, 26 Dec 2019 21:56:40 +0000 (21:56 +0000)]
Update what's new with the latest GC improvements (GH-17708)
Aurora Lanes [Thu, 26 Dec 2019 14:22:13 +0000 (14:22 +0000)]
Update 3.9.0a2.rst (GH-17703)
Fixed small grammatical issue
Automerge-Triggered-By: @Mariatta
Fabio Sangiovanni [Wed, 25 Dec 2019 22:45:30 +0000 (23:45 +0100)]
bpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917) (GH-17677)
cocoatomo [Wed, 25 Dec 2019 15:39:35 +0000 (00:39 +0900)]
Fix the miscellaneous typo (GH-17700)
A character "i" is omitted.
toonarmycaptain [Wed, 25 Dec 2019 11:25:36 +0000 (05:25 -0600)]
Update 3.9.0a2.rst - correct small typos (GH-17665)
Small typo/formatting corrections.
`whethen` -> `whether`
`exaustion' -> `exhaustion`
Assorted appending periods `.` and slight reformattings to place `Path contributed by` on the same line as description, matching the majority of document.
NB Some of these might need to be backported, as I saw the first error in the [changelog for 3.8.1](https://docs.python.org/3.8/whatsnew/changelog.html#python-3-8-1)
William Ayd [Wed, 25 Dec 2019 04:25:56 +0000 (23:25 -0500)]
Minor C API documentation improvements. (GH-17696)
The added parentheses around the PyIter_Next assignment suppress the following warning which gcc throws without:
```
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
```
The other change is a typo fix
Andrew Svetlov [Tue, 24 Dec 2019 10:46:42 +0000 (12:46 +0200)]
Fix import path for asyncio.TimeoutError (#17691)
Éric Araujo [Mon, 23 Dec 2019 17:03:30 +0000 (12:03 -0500)]
Add comment to avoid ACKS losing order (GH-17678)
Pablo Galindo [Mon, 23 Dec 2019 16:42:48 +0000 (16:42 +0000)]
Revert "bpo-38870: Remove dependency on contextlib to avoid performance regression on import (GH-17376)" (GH-17687)
This reverts commit
ded8888fbc33011dd39b7b1c86a5adfacc4943f3 .
Batuhan Taşkaya [Mon, 23 Dec 2019 16:11:00 +0000 (19:11 +0300)]
bpo-38870: Refactor delimiting with context managers in ast.unparse (GH-17612)
Co-Authored-By: Victor Stinner <vstinner@python.org>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Jürgen Gmach [Mon, 23 Dec 2019 14:53:18 +0000 (15:53 +0100)]
bpo-38914 Do not require email field in setup.py. (GH-17388)
When checking `setup.py` and when the `author` field was provided, but
the `author_email` field was missing, erroneously a warning message was
displayed that the `author_email` field is required.
The specs do not require the `author_email`field:
https://packaging.python.org/specifications/core-metadata/#author
The same is valid for `maintainer` and `maintainer_email`.
The warning message has been adjusted.
modified: Doc/distutils/examples.rst
modified: Lib/distutils/command/check.py
https://bugs.python.org/issue38914
Michael Morehouse [Mon, 23 Dec 2019 14:37:47 +0000 (14:37 +0000)]
[typo] fix dupe in datetime.fromisoformat docs (GH-17295)
Fixes a nearly word for word duplication of a sentence that appears
earlier in the caution section of datetime.datetime.fromisoformat in
Doc/Library/datetime.rst.
No issue created as it's a trivial change.
Automerge-Triggered-By: @pganssle
cocoatomo [Sun, 22 Dec 2019 17:46:45 +0000 (02:46 +0900)]
Add missing markup (GH-17680)
"HH", "MM" and "ffffff" are enclosed with double back quotes, but "SS" is left being bare
Bar Harel [Sun, 22 Dec 2019 09:57:27 +0000 (11:57 +0200)]
bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336)
Quick subclasshook fix using the same method is being used in collections.abc (up to a certain degree).
Parth Sharma [Fri, 20 Dec 2019 19:18:33 +0000 (00:48 +0530)]
bpo-38918: Add __module__ entry for function & method type in inspect docs table (GH-17408)
Adds` __module__ ` entries for function & method types in inspect docs table.
https://bugs.python.org/issue38918
Éric Araujo [Fri, 20 Dec 2019 14:53:33 +0000 (09:53 -0500)]
reorder entries in Misc/ACKS (#17663)
Jesús Cea [Fri, 20 Dec 2019 02:21:03 +0000 (03:21 +0100)]
Doc typo (#17667)