Łukasz Langa
693a661478
[3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) (GH-27629)
...
* When trying to allocate very large regions on macOS, malloc does not fail silently. It sends a noisy error out to STDERR
* This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 15d3c14df3
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-08-06 15:35:11 +02:00
Miss Islington (bot)
7dad033751
bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166) (GH-27608)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com>
(cherry picked from commit a8dc4893d2
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-04 22:09:45 +02:00
Miss Islington (bot)
1a2c0ecfa2
[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899) (GH-27606)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7c5dab4340
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-04 22:00:52 +02:00
Miss Islington (bot)
60ec3b818e
Fix typo in 'xml.dom.minidom' documentation (GH-27602) (GH-27604)
...
(cherry picked from commit cc77193127
)
Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
2021-08-04 21:53:29 +02:00
Miss Islington (bot)
ed0d91bafa
Fix 404 link to the pyporting mailing list (GH-27320) (GH-27601)
...
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 977d99d1cc
)
Co-authored-by: Rohit Nishad <47008599+rohitnishad613@users.noreply.github.com>
2021-08-04 21:23:48 +02:00
Miss Islington (bot)
467c873e49
Note that tp_clear and m_clear are not always called (GH-27581) (GH-27597)
...
(cherry picked from commit 10faada709
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2021-08-04 20:24:03 +02:00
Miss Islington (bot)
bf9425be5d
Fix hyperlink conflict in turtle docs (GH-27592) (GH-27595)
...
(cherry picked from commit 3d2b4c6f18
)
Co-authored-by: Harry <harry.lees@gmail.com>
2021-08-04 20:15:19 +02:00
Miss Islington (bot)
f26fec4f74
bpo-41886: Fix documented type of PyType_Type (GH-22454)
...
(cherry picked from commit ac811f9b5a
)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2021-08-03 10:48:08 -07:00
Miss Islington (bot)
b5f0261127
bpo-41737: expand doc for NotADirectoryError (GH-27471) (GH-27577)
...
(cherry picked from commit f7c23a99cd
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-03 14:03:40 +02:00
Miss Islington (bot)
0b551db04a
bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27573)
...
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit 83ca46b778
)
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2021-08-03 12:10:54 +02:00
Miss Islington (bot)
c50a672eeb
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) (GH-27567)
2021-08-02 13:37:42 -05:00
Miss Islington (bot)
e0d599fa48
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27564)
...
(cherry picked from commit aa0894b379
)
Co-authored-by: Jake Stockwin <jake.stockwin@optimorlabs.com>
2021-08-02 20:08:10 +02:00
Miss Islington (bot)
77a96da556
Document PyMember_GetOne and PyMember_SetOne (GH-27555) (GH-27561)
...
(cherry picked from commit d382bde220
)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-08-02 18:53:55 +02:00
Miss Islington (bot)
0f6a7739df
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)
...
Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
(cherry picked from commit 043cd60abe
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 18:52:16 +02:00
Miss Islington (bot)
4817c14395
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) ( #27557 )
...
(cherry picked from commit 36d952d228
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 18:39:25 +02:00
Miss Islington (bot)
2ee09597f2
doc: "Mac OS " -> "macOS" (GH-27534) (GH-27549)
...
(cherry picked from commit 1342248f3a
)
Co-authored-by: partev <petrosyan@gmail.com>
2021-08-02 15:13:52 +02:00
Miss Islington (bot)
4f2405a749
doc: "Mac OS X" -> "macOS" (GH-27535) (GH-27547)
...
(cherry picked from commit 414dcb13aa
)
Co-authored-by: partev <petrosyan@gmail.com>
2021-08-02 15:13:34 +02:00
Miss Islington (bot)
2d11797c81
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27501)
...
(cherry picked from commit b6bde9fc42
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-02 11:44:01 +02:00
Miss Islington (bot)
2efa78180d
Trivial typo in docstring ( #27505 )
...
(cherry picked from commit 4b4227b907
)
Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
2021-07-31 07:04:38 +02:00
Miss Islington (bot)
0f42b726c8
bpo-42892: fix email multipart attribute error (GH-26903) (GH-27493)
...
(cherry picked from commit e3f877c32d
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-30 19:30:58 +02:00
Miss Islington (bot)
b57011d2a5
bpo-41911: Update docs for various expressions (GH-27470) (GH-27491)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 4bd9caafb6
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-30 19:25:58 +02:00
Miss Islington (bot)
73240d425b
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27489)
...
When sys.stdout.encoding is None compile_file will fall back to
sys.getdefaultencoding to encode/decode error messages.
Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
(cherry picked from commit 80f0707629
)
2021-07-30 19:12:29 +02:00
Miss Islington (bot)
882e4761c6
bpo-44753: Don't use logfile extension when determining old files to be deleted (GH-27475) (GH-27486)
...
(cherry picked from commit 6ff8903809
)
2021-07-30 17:20:24 +01:00
Pablo Galindo Salgado
3a806b1f05
[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)
...
(cherry picked from commit 7cad0bee80
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-30 15:51:13 +01:00
Łukasz Langa
168879e366
[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)
...
(cherry picked from commit be42c06bb0
)
Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
2021-07-30 16:34:04 +02:00
Miss Islington (bot)
a603aa472a
Add missing gdbm dependencies to the UNIX CI (GH-27467) (GH-27468)
...
(cherry picked from commit 851cca8c22
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-30 14:07:30 +02:00
Erlend Egeberg Aasland
0bc17658f5
[3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431) (GH-27465)
...
(cherry picked from commit 7e311e496b
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-07-29 22:12:55 +01:00
Miss Islington (bot)
c2c322b354
Fix typo in ast.rst (GH-27449) (GH-27455)
...
Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
(cherry picked from commit 6b61d74a3b
)
2021-07-29 19:41:51 +02:00
Miss Islington (bot)
e627c79478
To fix the random failed test cases of test___xxsubinterpreters in multiprocess. (GH-27240) (GH-27453)
...
(cherry picked from commit 9101b39e67
)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-07-29 19:28:22 +02:00
Miss Islington (bot)
6d4af4dfd6
bpo-44765: [doc] fix typo (GH-27430) (GH-27451)
...
(cherry picked from commit ccefa8a905
)
Co-authored-by: Pavel <69010336+pavel-lexyr@users.noreply.github.com>
2021-07-29 19:23:17 +02:00
Miss Islington (bot)
93d90871d2
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) (GH-27446)
...
(cherry picked from commit 6741794dd4
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-29 17:46:07 +02:00
Miss Islington (bot)
acaf3b9594
bpo-44752: Make rlcompleter not call @property
methods (GH-27401) ( #27445 )
...
* rlcompleter was calling these methods to identify whether to add
parenthesis to the completion, based on if the attribute is callable.
* for property objects, completion with parenthesis are never desirable.
* property methods with print statements behaved very strangely, which
was especially unfriendly to language newcomers. <tab> could suddenly
produce output unexpectedly.
(cherry picked from commit 50de8f74f8
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-29 15:53:39 +02:00
Miss Islington (bot)
12fc0d28fc
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) (GH-27443)
...
(cherry picked from commit e5c8ddb171
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-29 14:05:43 +02:00
Miss Islington (bot)
7922546859
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27440)
...
(cherry picked from commit 47fd4726a2
)
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-07-29 11:33:16 +02:00
Jason R. Coombs
49b5e20fa8
[3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27400)
...
* [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227)
* bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module
* 📜 🤖 Added by blurb_it.
* remove "else"
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* If running as a module, first check that it can run as a module. Alternate fix for bpo-44461.
Co-authored-by: Irit Katriel
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>.
(cherry picked from commit ee03bad25e
)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Ensure os_helper is imported.
* Actually, os_helper doesn't exist yet. Just reference rmtree from support.
2021-07-28 18:48:52 -04:00
Miss Islington (bot)
899e37b202
bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501)
...
(cherry picked from commit 92b5dc780d
)
Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
2021-07-28 22:52:11 +01:00
Dennis Sweeney
7d77368807
[doc] Remove reference to obsolute opcode (GH-27402)
2021-07-28 20:12:17 +01:00
Miss Islington (bot)
9337c60ba8
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) (GH-27427)
...
(cherry picked from commit cb1d76f10a
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-28 19:31:19 +02:00
Miss Islington (bot)
019a8b08fa
bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27425)
...
(cherry picked from commit c1e39d6b11
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-28 19:29:47 +02:00
Miss Islington (bot)
debb751f11
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) ( #27422 )
...
`pathlib.PureWindowsPath.is_reserved()` now identifies as reserved
filenames with trailing spaces or colons.
Co-authored-by: Barney Gale <barney.gale@foundry.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
(cherry picked from commit 56c1f6d7ed
)
2021-07-28 17:15:51 +02:00
Miss Islington (bot)
1b82dc1a61
Add missing end of sentence in docs (GH-27280) (GH-27420)
...
(cherry picked from commit 531e2fbc52
)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2021-07-28 16:54:40 +02:00
Miss Islington (bot)
f152c57969
Fix typo in sqlite3.rst (GH-27415) (GH-27418)
...
preceeding -> preceding
(cherry picked from commit fbe87023bf
)
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
2021-07-28 16:33:38 +02:00
Miss Islington (bot)
08870d0443
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27413)
...
(cherry picked from commit 2ff5bb4908
)
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
2021-07-28 15:57:03 +02:00
Miss Islington (bot)
fd2c2465d4
bpo-44756: in ./Doc, make build
depends on make html
(GH-27403) (GH-27411)
...
- venv rule is now conditional, and only does anything if $VENVDIR does not exist
- add rule "clean-venv"
(cherry picked from commit d22c876d5a
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-28 15:40:18 +02:00
Miss Islington (bot)
c48720576d
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
...
(cherry picked from commit ddf8ae31a0
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-07-28 06:33:03 -07:00
Inada Naoki
153365d864
[3.9] bpo-42853: Fix http.client fails to download >2GiB data over TLS (GH-27405)
...
Revert "bpo-36050: optimize HTTPResponse.read() (GH-12698)"
This reverts commit d6bf6f2d0c
.
2021-07-28 15:27:49 +02:00
Miss Islington (bot)
a13edfb857
Add windows build.bat counterpart for 'make regen-all' in error message (GH-26770)
...
(cherry picked from commit d61b69f02d
)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-26 23:32:45 -04:00
Miss Islington (bot)
cc602a71df
docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27375)
...
"Mac OS X" has been rebranded as macOS
https://www.apple.com/macos
(cherry picked from commit 5fdd2a14ce
)
Co-authored-by: partev <petrosyan@gmail.com>
2021-07-26 16:22:58 -04:00
Miss Islington (bot)
3f1389459a
The current documentation says it returns None if the name is not found, but (GH-26785) (GH-27372)
...
the implementation uses [] and will raise KeyError instead.
Noticed by @srittau in python/typeshed@5659.
(cherry picked from commit f22737abfa
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-07-26 21:35:46 +02:00
Miss Islington (bot)
7482fff297
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370)
...
(cherry picked from commit c97c2a050c
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-26 21:32:49 +02:00