Commit graph

108554 commits

Author SHA1 Message Date
Miss Islington (bot)
982e8ecbdf
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677)
(cherry picked from commit 0242494a15)

Co-authored-by: Ned Deily <nad@python.org>
2021-03-01 00:01:43 -08:00
Miss Islington (bot)
132e31f4bf
bpo-43335: Update macro to check gcc version (GH-24662)
(cherry picked from commit bf9de7ab24)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-02-27 16:51:36 -08:00
Miss Islington (bot)
6c4c11763f
bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650)
Co-authored-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
(cherry picked from commit c6ccdfb479)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-02-25 21:44:17 -08:00
Miss Islington (bot)
540749ed6d
bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
(cherry picked from commit 9525a18b5b)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-25 18:36:27 -08:00
Miss Islington (bot)
adea9b86a9
bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is
the proper behaviour for a tool that can be used in scripts.
(cherry picked from commit cc3df6368d)

Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
2021-02-26 10:13:17 +09:00
Miss Islington (bot)
f82578ace1
bpo-43293: Doc: move note about GIL to top of threading module (GH-24622)
The note about the GIL was buried pretty deep in the threading documentation,
and this made it hard for first time users to discover why their attempts
at using threading to parallelizing their application did not work.

In this commit, the note is moved to the top of the module documention for
visibility.
(cherry picked from commit 32181be608)

Co-authored-by: Guanzhong Chen <quantum2048@gmail.com>
2021-02-24 11:01:33 -08:00
Terry Jan Reedy
d81a20454e
[3.9] bpo-41841: revise header (GH-24634) 2021-02-23 21:32:20 -05:00
Miss Islington (bot)
e202f1e4db
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
Printing to IDLE's Shell is often slower than printing to a system
terminal, but it can be made faster by pre-formatting a single
string before printing.
(cherry picked from commit 2827e8a177)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-23 17:03:37 -08:00
Miss Islington (bot)
93853b73b6
bpo-36346: Document removal schedule of deprecate APIs (GH-20879)
We will remove wstr cache in Python 3.12. See PEP 623.
(cherry picked from commit 2d6f2eed14)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-22 15:30:52 -08:00
Miss Islington (bot)
30fe3ee6d3
bpo-23882: Doc: Clarify unittest discovery document (GH-21560)
Unittest discovery support namespace package as start
directory. But it doesn't find namespace package in
the start directory automatically.

Otherwise, unittest discovery search into unexpected
directories like `vendor/` or `node_modules/`.
(cherry picked from commit 5a4aa4c03e)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-21 22:37:18 -08:00
Inada Naoki
d51436f95b
bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)
When very large data remains in TextIOWrapper, flush() may fail forever.

So prevent that data larger than chunk_size is remained in TextIOWrapper internal
buffer.

Co-Authored-By: Eryk Sun
(cherry picked from commit 01806d5)
2021-02-22 10:32:55 +09:00
Neil Schemenauer
44fe32061d
[3.9] bpo-43288: Fix bug in test_importlib test. (GH-24616)
* bpo-43288: Fix bug in test_importlib test. (GH-24612)
* Fix failed merge of bpo-43288. (GH-24614)
2021-02-21 15:24:41 -08:00
Miss Islington (bot)
693aeacf88
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
In the Running User Code section, gather together paragraphs about two
processes and the sys.stdstream replacements, preparing to add another.
(cherry picked from commit 4cf7bb8e22)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-21 00:07:33 -08:00
Miss Islington (bot)
7cc58890b3
bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595)
Previously, the doc at least strongly implied that it had to be an iterator.
(cherry picked from commit 2f9ef514fb)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-20 18:55:49 -08:00
Miss Islington (bot)
216cb1469f
Fix typo in dis module doc (GH-24509)
(cherry picked from commit 292f23186c)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2021-02-19 20:46:34 -08:00
Pablo Galindo
f9d1bf2de0
[3.9] bpo-43272: Fix old parser test failures for backported grammar constructs (GH-24591) 2021-02-20 01:36:15 +00:00
Miss Islington (bot)
a67fd011ea
bpo-43042: Augment tutorial sentence (GH-24514)
Calling same function also gets new local namespace.
(cherry picked from commit b30fcba3a8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-19 16:46:57 -08:00
Miss Islington (bot)
1cfed3d5b0
closes bpo-43266: Improve array formatting. (GH-24573)
(cherry picked from commit 2d3e463e4a)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-02-19 07:55:44 -08:00
Łukasz Langa
8cc6e27bd6
Post 3.9.2 2021-02-19 13:32:44 +01:00
Łukasz Langa
1a79785e3e
Python 3.9.2 2021-02-19 13:31:44 +01:00
Miss Islington (bot)
1384887505
closes bpo-43254: Fix *snprintf() man page refs. (GH-24563)
(cherry picked from commit e92d67dfbb)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-02-18 18:16:30 -08:00
Miss Islington (bot)
ec2385e315
Remove all links to mingw.org (GH-24552)
This lease on this domain has lapsed. This not only makes these dead links, but a potential attack vector for readers of python.org as the domain can be obtained by an untrustworthy party.

I considered redirecting these links to http://mingw-w64.org/ which is a maintained fork of mingw, but beyond my unfamiliarity with the exact level of compatibility, at the time of this PR that site had an expired cert and so is not much of a vulnerability fix.

Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 743932d508)

Co-authored-by: Jeremy Paige <ucodery@gmail.com>
2021-02-18 12:07:30 -08:00
Zackery Spytz
ebe20d9e7e
bpo-43155: Add PyCMethod_New to PC/python3.def (GH-24500) (GH-24554)
(cherry picked from commit 8a8b5df93f)
2021-02-17 11:53:45 +01:00
Łukasz Langa
eba45a8ea7
Post 3.9.2rc1 2021-02-16 22:34:29 +01:00
Łukasz Langa
4064156d62
Python 3.9.2rc1 2021-02-16 21:10:19 +01:00
Miss Islington (bot)
85fd9f4e45
bpo-42819, readline: Disable bracketed paste (GH-24108) (GH-24545)
(cherry picked from commit 755f3c1521)

Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>

Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
2021-02-16 01:18:07 +01:00
Pablo Galindo
9cc70bc220
[3.9] Minor improvements to the convolve() recipe (GH-24520) 2021-02-15 23:02:41 +00:00
Senthil Kumaran
c9f07813ab
[3.9] bpo-42967: only use '&' as a query string separator (GH-24297) (#24528)
(cherry picked from commit fcbe0cb04d)

* [3.9] bpo-42967: only use '&' as a query string separator (GH-24297)

bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl().

urllib.parse will only us "&" as query string separator by default instead of both ";" and "&" as allowed in earlier versions. An optional argument seperator with default value "&" is added to specify the separator.

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
2021-02-15 10:03:31 -08:00
Miss Islington (bot)
242f6c9ffe
bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 762fe7deed)
2021-02-13 00:20:24 -05:00
Miss Islington (bot)
df2197f2ec
bpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit 5ec7d53558)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-02-12 03:18:38 -08:00
Miss Islington (bot)
68d6bc798b
bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)
(cherry picked from commit fedd86df24)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-12 13:33:35 +09:00
Ken Jin
917eca700a
bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24493) 2021-02-09 08:55:03 -08:00
Miss Islington (bot)
863eb7170b
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
These 3 statements cannot be used at module scope -- nor in exec with one namespace.
(cherry picked from commit 0ec57e25c9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-07 09:14:16 -05:00
Miss Islington (bot)
39aeb9ff90
Simple typo fix (GH-24448)
(cherry picked from commit 5f18c22339)

Co-authored-by: Andrew Tennikoff <atenni@users.noreply.github.com>
2021-02-05 10:44:23 -08:00
Miss Islington (bot)
c8b4375fe1
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH-24450) (GH-24457)
PyObject_RichCompareBool() returns -1 on error, but this case is
not handled by the find_in_strong_cache() function.  Any exception
raised by PyObject_RichCompareBool() should be propagated.
(cherry picked from commit effaec0bb5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-02-05 19:13:40 +02:00
Miss Islington (bot)
b0b01811bb
bpo-35295: Remove outdated comment. (GH-24453)
(cherry picked from commit d938816acf)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-04 20:44:17 -08:00
Miss Islington (bot)
29584aa6ac
bpo-43102: Set namedtuple __new__'s internal builtins to a dict. (GH-24439) (GH-24452) 2021-02-04 16:12:34 -08:00
Miss Islington (bot)
48d16b4b0f
build(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.1 to v2.2.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.1...e448a9b857ee2131e752b06002bf0e093c65e571)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit aa4caf9887)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 11:21:37 -08:00
Miss Islington (bot)
0898dcb3a0
bpo-42773: fix tests not being run on pushes (GH-24004)
There was a typo, we were checking if the "GITHUB_BASE_REF" string
literal was empty instead of the $GITHUB_BASE_REF value. When
$GITHUB_BASE_REF is empty, the action that triggered the run was not a
pull request, so we always run the full test suite.

Signed-off-by: Filipe Laíns <lains@riseup.net>
(cherry picked from commit 4ac923f275)

Co-authored-by: Filipe Laíns <lains@riseup.net>
2021-02-03 15:38:55 -08:00
Miss Islington (bot)
2603d77a6b
Fix typo (GH-23019)
Fixed possible typo in comment
(cherry picked from commit bfe544d2f2)

Co-authored-by: Harry <harry.lees@gmail.com>
2021-02-03 13:48:22 -08:00
Miss Islington (bot)
12bfc595c4
bpo-43108: Fix a reference leak in the curses module (GH-24420)
(cherry picked from commit bb739ec922)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-02-03 05:41:09 -08:00
Miss Islington (bot)
f02ef7afcf
bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394) (GH-24427) 2021-02-02 19:33:35 -08:00
Miss Islington (bot)
3b9452691a
Add link to Microsoft docs for limitations in Windows Store package (GH-24422)
(cherry picked from commit 1ba08a121a)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-02-02 17:35:55 -08:00
Miss Islington (bot)
0874491bcc
bpo-41748: Handles unquoted attributes with commas (GH-24072)
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a139f)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
2021-02-01 12:54:43 -08:00
Miss Islington (bot)
304f9d2622
bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24407)
(cherry picked from commit a1e9a1e120)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-02-01 09:37:29 +02:00
Miss Islington (bot)
7e729978fa
bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH-23888)
Automerge-Triggered-By: GH:ronaldoussoren
(cherry picked from commit b3c77ecbbe)

Co-authored-by: erykoff <erykoff@stanford.edu>
2021-02-01 00:15:23 -05:00
Miss Islington (bot)
d6675fee1a
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bc)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2021-01-31 23:22:48 -05:00
Serhiy Storchaka
3c8d693443
[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)
(cherry picked from commit 3243e8a4b4)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2021-01-31 21:44:31 +02:00
Serhiy Storchaka
e9d4960d15
[3.9] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399)
(cherry picked from commit d64fd4bb5b)
2021-01-31 18:11:13 +02:00
Miss Islington (bot)
8a833a6f94
bpo-43083: Fix error handling in _sqlite3 (GH-24395)
(cherry picked from commit 9073180db5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-31 08:06:15 -08:00