Commit Graph

105528 Commits

Author SHA1 Message Date
Miss Islington (bot) 39a5c889d3
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
Correctly parenthesize filter-based statements that contain lambda
expressions in lib2to3.
(cherry picked from commit b821173b54)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-01-07 09:52:06 -08:00
Miss Islington (bot) bff48c6734 bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) (GH-17897)
(cherry picked from commit 950c6795aa)
2020-01-07 17:03:23 +00:00
Andrew Svetlov 4112a3da2e
[3.8] bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863) (#17894)
https://bugs.python.org/issue39191.
(cherry picked from commit 10ac0cded2)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-01-07 16:55:19 +02:00
Miss Islington (bot) a6b37589a0
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
(cherry picked from commit ca94677a62)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-01-07 00:04:43 -08:00
Miss Islington (bot) 6a8284d8f1
Doc: Change Python 2 status to EOL. (GH-17885)
(cherry picked from commit f4800b8ed3)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-01-06 22:59:28 -08:00
Miss Islington (bot) fb59f5ffe8
bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)
https://bugs.python.org/issue39041

Automerge-Triggered-By: @zooba
(cherry picked from commit b1ce22d086)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-01-06 13:41:33 -08:00
Miss Islington (bot) a9a43c221b
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit 7b79dc9200)

Co-authored-by: Anthony Wee <awee@box.com>
2020-01-06 09:17:36 -08:00
Miss Islington (bot) 0048833e13 bpo-39041: Add GitHub Actions support (GH-17594)
(cherry picked from commit a76ba362c4)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-01-06 08:46:55 -08:00
Miss Islington (bot) b2e281aaa2
bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)
(cherry picked from commit 5ec91f78d5)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-01-06 08:26:13 -08:00
Miss Islington (bot) 33cb4a62bf bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864) (GH-17865)
Fixes error attempting to bind to IPv4 address.
(cherry picked from commit 7cdc31a14c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2020-01-06 08:28:27 -05:00
Miss Islington (bot) 5ed9d60bc5 bpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851) (#17854)
(cherry picked from commit ee94bdb059)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2020-01-06 07:34:10 -05:00
Miss Islington (bot) 5a065ac181
Minor formatting improvements and fixes to idle.rst (GH-17165)
(cherry picked from commit d6c08db853)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2020-01-05 16:09:56 -08:00
Miss Islington (bot) 89947881ac
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
(cherry picked from commit 94d9cfc4ed)

Co-authored-by: Khalid Mammadov <khalidmammadov9@gmail.com>
2020-01-05 14:45:35 -08:00
Miss Islington (bot) cfeacf2289
Fix the parameter list of object. _rpow_ (GH-GH-16477)
(cherry picked from commit abc0c4fa99)

Co-authored-by: HongWeipeng <961365124@qq.com>
2020-01-05 14:37:44 -08:00
Miss Islington (bot) 183fbd1982
Replace links in howto/pyporting.rst with sphinx references (GH-17781)
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
(cherry picked from commit e6ae90dede)

Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com>
2020-01-05 14:13:57 -08:00
Miss Islington (bot) 49c108c832
Fix constant folding optimization for positional only arguments (GH-17837)
(cherry picked from commit b121a4a45f)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2020-01-05 09:21:47 -08:00
Miss Islington (bot) 636a850ed8
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.
(cherry picked from commit 5ea7bb25e3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-05 09:07:30 -08:00
Miss Islington (bot) 34aa3e71dc
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
(cherry picked from commit b19c0d77e6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-01-05 04:36:48 -08:00
Miss Islington (bot) e1caa49f68
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)
No longer import the re module if it is not needed.
(cherry picked from commit 41ec17e45d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-01-05 04:33:08 -08:00
Miss Islington (bot) fc84d501b9
bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)
Ignore leading dots and no longer ignore a trailing newline.
(cherry picked from commit 6a265f0d0c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-01-05 04:32:00 -08:00
Miss Islington (bot) 859525590c
Fix SystemError when nested function has annotation on positional-only argument (GH-17826)
(cherry picked from commit ec007cb43f)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2020-01-04 18:14:58 -08:00
Andrew Svetlov 867d8333ce
[3.8] bpo-39191: Don't spawn a task before failing (GH-17796) (GH-17820)
(cherry picked from commit 3a5de51159)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-01-04 11:49:11 +02:00
Miss Islington (bot) aa3efea9c5 bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-17811)
(cherry picked from commit e02ab59fdf)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-01-03 13:50:11 +01:00
Miss Islington (bot) 526f0b3d93
Update copyright year in macOS installer license copy (GH-17806)
(cherry picked from commit 32f1443aa9)

Co-authored-by: Ned Deily <nad@python.org>
2020-01-02 19:49:59 -08:00
Miss Islington (bot) 10dc738bda
Bring Python into the next decade. (GH-17801)
(cherry picked from commit 946b29ea0b)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2020-01-02 19:15:37 -08:00
Miss Islington (bot) 6bf382ac9a
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
(cherry picked from commit 149175c6df)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2020-01-01 14:32:23 -08:00
Miss Islington (bot) 1d5a7e5694 bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) (GH-17785)
(cherry picked from commit 46abfc1416)
2020-01-01 20:06:52 +00:00
Miss Islington (bot) dad526eb36
Document CodeType.replace (GH-17776)
(cherry picked from commit 22424c02e5)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2019-12-31 22:27:56 -08:00
Miss Islington (bot) 6c004955ac bpo-39176: Improve error message for 'named assignment' (GH-17777) (GH-17778)
(cherry picked from commit 37143a8e3b)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2019-12-31 21:28:08 -06:00
Miss Islington (bot) 302b35f82b
Fix idlelib README typo. (GH-17770)
(cherry picked from commit ba82ee894c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-12-31 10:52:38 -08:00
Dong-hee Na 2ee87913dd [3.8] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17764)
* [3.8] 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.
(cherry picked from commit 2d5bf568ea)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>

* Update Objects/listobject.c

@methane's suggestion

Co-Authored-By: Inada Naoki <songofacandy@gmail.com>

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2019-12-31 04:15:36 +00:00
Miss Islington (bot) a278ae19b4
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
(cherry picked from commit d0c92e81aa)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
2019-12-30 18:51:18 -08:00
Miss Islington (bot) ec941568bd
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.
(cherry picked from commit ee9ff05ec2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-12-30 14:24:27 -08:00
Miss Islington (bot) fcaf14cd91
bpo-38610: Fix possible crashes in several list methods (GH-17022)
Hold strong references to list elements while calling PyObject_RichCompareBool().
(cherry picked from commit d9e561d23d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-12-30 11:51:06 -08:00
Miss Islington (bot) cbfafa3e36
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.
(cherry picked from commit 226e6e7d43)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2019-12-29 21:31:18 -08:00
Miss Islington (bot) e06be0820f
Fix typos and remove deprecated deprecation warning. (GH-17741)
(cherry picked from commit 32a12aed6d)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
2019-12-29 14:20:52 -08:00
Terry Jan Reedy df647f3340
[3.8] bpo-39136: Fixed typos (GH-17720)
funtion -> function; configuraton -> configuration; defintitions -> definitions;
focusses -> focuses; necesarily -> necessarily; follwing -> following;
Excape -> Escape,

(cherry picked from commit 6c7bb38ff2)
2019-12-28 19:05:15 -05:00
Éric Araujo 9ee1b15614
Reorder entries in Misc/ACKS (GH-17663) (GH-17673) 2019-12-28 15:41:21 -05:00
Miss Islington (bot) 04c1efe5ac
bpo-38731: Fix function signature of quiet in docs (GH-17719)
(cherry picked from commit 98f0f04b50)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
2019-12-27 18:58:47 -08:00
Miss Islington (bot) 2786fdec79
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)
(cherry picked from commit ef7eaafc9d)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
2019-12-27 18:50:34 -08:00
Miss Islington (bot) 5dd1909680
closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)
(cherry picked from commit c0052f3fe3)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
2019-12-26 19:10:52 -08:00
Benjamin Peterson b9b92d3464
[3.8] closes bpo-39135: Remove 'time.clock()' mention in docs. (GH-17713)
`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.
(cherry picked from commit 91874bb071)

Co-authored-by: Michael Wayne Goodman <goodman.m.w@gmail.com>
2019-12-26 21:07:21 -06:00
Miss Islington (bot) a5deabd8e4
bpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917) (GH-17677)
(cherry picked from commit e28aff54d9)

Co-authored-by: Fabio Sangiovanni <4040184+sanjioh@users.noreply.github.com>
2019-12-25 14:51:22 -08:00
Miss Islington (bot) ff67612fa3
Fix the miscellaneous typo (GH-17700)
A character "i" is omitted.
(cherry picked from commit 527f9de6ef)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
2019-12-25 07:45:52 -08:00
Miss Islington (bot) 8c0f0016e2
bpo-38753: AsyncMock added in version 3.8 (GH-17102)
(cherry picked from commit 279d8df5e5)

Co-authored-by: John Belmonte <john@neggie.net>
2019-12-24 20:42:24 -08:00
Miss Islington (bot) e9039f32b3 Minor C API documentation improvements. (GH-17697)
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
(cherry picked from commit 5c7ed7550e)

Co-authored-by: William Ayd <william.ayd@icloud.com>
2019-12-24 22:35:01 -06:00
Miss Islington (bot) 4ed79b7800
Fix import path for asyncio.TimeoutError (GH-17691)
(cherry picked from commit 025eeaa196)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2019-12-24 03:04:12 -08:00
Bar Harel 0846e5d460 [3.8] bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) (GH-17684)
https://bugs.python.org/issue38878
2019-12-23 18:31:00 +00:00
Miss Islington (bot) 7eb8c6d2c8 Doc typo (GH-17667) (#17668)
(cherry picked from commit b0d4949f1f)

Co-authored-by: Jesús Cea <jcea@jcea.es>

Co-authored-by: Jesús Cea <jcea@jcea.es>
2019-12-23 16:52:29 +01:00
Miss Islington (bot) a542aec092
[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
(cherry picked from commit e7b406f4e2)

Co-authored-by: Michael Morehouse <640167+yawpitch@users.noreply.github.com>
2019-12-23 06:44:04 -08:00