Commit graph

113841 commits

Author SHA1 Message Date
Miss Islington (bot)
7df3a1ce4b
gh-95285: py.exe launcher fails with short argv0 (GH-95295) (GH-95298)
(cherry picked from commit 7ac5bb3e6a)

Co-authored-by: Steve Dower <steve.dower@python.org>
2022-07-27 10:06:59 +02:00
Miss Islington (bot)
0d812a58a7
gh-94635: Add sqlite3 'Introduction' and 'Tutorial' doc headings (GH-95269) (GH-95304)
(cherry picked from commit 2e35a13e46)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-27 10:05:50 +02:00
Miss Islington (bot)
820904eab2
gh-95041: Fix several minor issues in syslog.openlog() (GH-95058) (GH-95261)
* syslog_get_argv() swallows exceptions, but not in all cases.
* if ident is non UTF-8 encodable, syslog.openlog() fails after setting the
  global reference to ident. Now the C string saved internally in the previous
  call to openlog() points to the freed memory.
* PySys_Audit() can crash if ident is NULL.
* There may be a race condition with syslog.syslog(), because the global
  reference to ident is decrefed before setting the new value.
* Possible use of freed memory if syslog.openlog() is called while
  the GIL is released in syslog.syslog().
(cherry picked from commit 68c555a50a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-26 12:21:48 +02:00
Miss Islington (bot)
5e971e816d
gh-93351: Add news entry and what's new entry for changes in gh-93351 (GH-95175) (GH-95177)
(cherry picked from commit 9762572d0a)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-26 12:20:51 +02:00
Miss Islington (bot)
6fe7e0264f
gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93793)
Suppress writing an XML declaration in open files in ElementTree.write()
with encoding='unicode' and xml_declaration=None.

If file patch is passed to ElementTree.write() with encoding='unicode',
always open a new file in UTF-8.
(cherry picked from commit d7db9dc3cc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-26 12:20:33 +02:00
Miss Islington (bot)
86eb500068
[3.11] gh-95185: Check recursion depth in the AST constructor (GH-95186) (GH-95208)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 0047447294)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-26 12:19:22 +02:00
Miss Islington (bot)
5a9920fcf5
gh-95235: Add explicit parameter list to some sqlite3 methods (GH-95240) (GH-95263)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 5012bedc7c)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-26 12:17:59 +02:00
Miss Islington (bot)
6284f23258
gh-95205: Improve WASM README.md (GH-95267) (GH-95270)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit e8f3e8f0ab)

Co-authored-by: Christian Heimes <christian@python.org>
2022-07-26 12:17:05 +02:00
Miss Islington (bot)
19d953682e
gh-95051: ensure that timeouts scheduled with asyncio.Timeout that have already expired are deliverered promptly (GH-95109) (GH-95216)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 0c6f898005)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-26 12:16:12 +02:00
Pablo Galindo
2fb64a0687
Post 3.11.0b5 2022-07-26 11:12:43 +01:00
Pablo Galindo
0771d71eea
Python 3.11.0b5 2022-07-25 23:21:18 +01:00
Pablo Galindo Salgado
7f73194339
[3.11] GH-92678: Expose managed dict clear and visit functions (GH-95246). (#95256)
Co-authored-by: Mark Shannon <mark@hotpy.org>
2022-07-25 23:05:27 +01:00
Miss Islington (bot)
4c10dbab4e
gh-95235: Document undocumented parameters in sqlite3 functions and methods (GH-95236)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit ac6a94c669)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-25 09:55:01 -07:00
Miss Islington (bot)
92170517d7
gh-93610: Improve docs for importlib.resources (GH-93611) (GH-95247)
(cherry picked from commit ccd7c7a0bd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-07-25 18:26:46 +02:00
Mark Shannon
e5ff5ec3ff
[3.11] GH-94739: Backport GH-94958 to 3.11 (#94965) 2022-07-25 12:11:06 +01:00
Miss Islington (bot)
df95ad3d72
gh-95205: Improve wasm README (GH-95206)
Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit 310f94871a)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-07-25 02:52:47 -07:00
Miss Islington (bot)
3ec139fa4d
gh-95087: Fix IndexError in parsing invalid date in the email module (GH-95201)
Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
(cherry picked from commit ea5ed0ba51)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-24 23:40:17 -07:00
Miss Islington (bot)
49d038496e
gh-95212: make multiprocessing test case parallel-safe (GH-95213)
(cherry picked from commit 5956de16cd)

Co-authored-by: Christian Heimes <christian@python.org>
2022-07-24 22:11:30 -07:00
Miss Islington (bot)
88ea2b6952
gh-95173: Revert commit 51ed2c56a1 (GH-95176)
(cherry picked from commit 9007dec606)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-24 15:01:47 -07:00
Miss Islington (bot)
687dd50760
gh-95199: upgrade bundled setuptools to 63.2.0 (gh-95200)
(cherry picked from commit 3c94d3395e)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
2022-07-24 04:28:24 -07:00
Miss Islington (bot)
9639cc1126
gh-95194: upgrade bundled pip to 22.2 (gh-95195)
upgrade bundled pip to 22.2
(cherry picked from commit 068ffafa54)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
2022-07-24 03:22:12 -07:00
Miss Islington (bot)
00cda6b530
gh-95174: Handle missing waitpid and gethostbyname in WASI (GH-95181)
(cherry picked from commit 8184f0fce3)

Co-authored-by: Christian Heimes <christian@python.org>
2022-07-23 23:30:39 -07:00
Miss Islington (bot)
22f06d6ce3
gh-93157: Fix fileinput didn't support errors in inplace mode (GH-95128)
(cherry picked from commit 5c7f3bcdaf)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2022-07-23 20:05:10 -07:00
Pablo Galindo Salgado
e8edbda897
[3.11] gh-93351: Add news entry and what's new entry for changes in gh-93351 (GH-95175) (#95178)
(cherry picked from commit 9762572d0a)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-23 19:44:44 +01:00
Miss Islington (bot)
f15be2fad1
gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165)
(cherry picked from commit d291a82df3)

Co-authored-by: Christian Heimes <christian@python.org>
2022-07-23 04:09:10 -07:00
Miss Islington (bot)
0d688bd2b6
gh-90473: Fix more tests on platforms without umask (GH-95164)
(cherry picked from commit 6839324894)

Co-authored-by: Christian Heimes <christian@python.org>
2022-07-23 03:51:29 -07:00
Miss Islington (bot)
62bc052c1e
gh-89758: Track all socket module dependencies (GH-95157)
(cherry picked from commit 41a5b84eaf)

Co-authored-by: Christian Heimes <christian@python.org>
2022-07-23 03:03:05 -07:00
Miss Islington (bot)
a1a1fd0dee
Doc: Add omitted secondary prompt in inputoutput tutorial (GH-30317)
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8f75)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
2022-07-23 02:33:17 -07:00
Erlend Egeberg Aasland
5d3f2fbf37
[3.11] gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory (GH-95146) (#95158)
This PR partially reverts gh-24421 (PR) and fixes the remaining concerns
given in gh-93044 (issue):

- keyword arguments are passed as positional arguments to factory()
- if an argument is not passed to sqlite3.connect(), its default value
  is passed to factory()

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>.
(cherry picked from commit a3d4d15f53)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-07-23 10:23:19 +02:00
Brandt Bucher
064462a719
[3.11] GH-94036: Fix more attribute location quirks (GH-95028) (GH-95156)
(cherry picked from commit 900bfc53cb)
2022-07-22 17:31:06 -07:00
Miss Islington (bot)
bbdacb402b
GH-94438: Handle extended arguments and conditional pops in mark_stacks (GH-95110)
(cherry picked from commit e4d3a96a11)

Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2022-07-22 16:48:53 -07:00
Miss Islington (bot)
3a33e9b7a0
Fix copy-friendliness of tutorial example (GH-93424)
(cherry picked from commit 34d11f1b0c)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
2022-07-22 13:21:41 -07:00
Brandt Bucher
5a48ab01e9
[3.11] GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121) (GH-95143)
(cherry picked from commit e402b26b7f)
2022-07-22 11:56:10 -07:00
Miss Islington (bot)
e99496e1c2
Fix async method reference links in compound_stmts docs (GH-94935)
(cherry picked from commit 79d2f549ad)

Co-authored-by: July Tikhonov <july.tikh@gmail.com>
2022-07-22 10:13:02 -07:00
Miss Islington (bot)
0fda8742a4
Fix scheme count in sysconfig whatsnew entry (GH-94110)
(cherry picked from commit 9c47cf337c)

Co-authored-by: Frank Dana <ferdnyc@gmail.com>
2022-07-22 09:58:34 -07:00
Miss Islington (bot)
791c3fd2c9
Fix incorrect directive in multiprocessing module documentation (GH-93517)
(cherry picked from commit 346aabf916)

Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
2022-07-22 09:57:07 -07:00
Miss Islington (bot)
6a3b6c2cee
Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)
(cherry picked from commit 2a9c227ac1)

Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
2022-07-22 09:45:20 -07:00
Miss Islington (bot)
12b56e4b78
gh-81040: Improve sqlite3.Cursor.rowcount docs (GH-94940)
(cherry picked from commit f9b3706df6)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-22 00:43:12 -07:00
Miss Islington (bot)
a61aa52965
gh-95112: Fix What's New 3.11 contribution note periods (GH-95115)
Some are missing, a few placed after the ')'.
(cherry picked from commit 8df8ef9743)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-21 17:44:54 -07:00
Miss Islington (bot)
6c43f3e496
gh-95112: Fix What's New 3.10 contribution note periods (GH-95114)
Some are missing, a few placed after the ')'.
One ') was missing.
(cherry picked from commit c944649ffc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-21 17:09:14 -07:00
Miss Islington (bot)
deacc3c9a6
gh-95105: Return Iterator from wsgiref.types.InputStream.__iter__ (GH-95106)
(cherry picked from commit b4378948a0)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-21 13:52:11 -07:00
Miss Islington (bot)
120f226889
gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)
The wrapper macros are more readable and match the form recommended in
the OpenSSL documentation. They also slightly less error-prone, as the
mapping of arguments to SSL_CTX_ctrl is not always clear. (Though in
this case it's straightforward.)
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_get_max_proto_version.html
(cherry picked from commit 936f71e5d4)

Co-authored-by: David Benjamin <davidben@davidben.net>
2022-07-21 12:11:07 -07:00
Miss Islington (bot)
e693f84cf7
[3.11] GH-95060: Fix PyCode_Addr2Location when addrq < 0 (GH-95094)
(cherry picked from commit a6daaf2a13)


Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2022-07-21 08:23:06 -07:00
Miss Islington (bot)
d19b5d8533
gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_watcher (GH-95009)
The test was never run, because it was missing the TestCase class.
The test failed because the wrong attribute was patched.
(cherry picked from commit 834bd5dd76)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-21 06:01:05 -07:00
Miss Islington (bot)
e2e8ec0760
GH-95029: Describe Windows Store package isolation and redirection in more detail (GH-95030)
(cherry picked from commit b1924b1006)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
2022-07-20 17:11:01 -07:00
Miss Islington (bot)
57375d1d74
gh-90654: Remove unneeded blank line (GH-95044) (#95047)
(cherry picked from commit bd390ef825)

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-20 18:03:35 -04:00
Brandt Bucher
e2fce3a8e7
[3.11] GH-91409: Don't overwrite valid locations with NOP locations (GH-95067) (GH-95068)
(cherry picked from commit 742d4614e1)
2022-07-20 15:01:42 -07:00
Miss Islington (bot)
6515738c0e
gh-54781: Move NEWS item to Tests, and improve wording (GH-95063)
(cherry picked from commit 8ede67cdcf)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-20 12:33:38 -07:00
Miss Islington (bot)
2ac1096423
gh-94998: Remove redundant condition in test_sqlite3/__main__.py (GH-95052)
(cherry picked from commit 9d09e7b026)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-20 10:01:58 -07:00
Miss Islington (bot)
6cc9489a3a
gh-94844: Add pathlib support to shutil archive management (GH-94846)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
(cherry picked from commit ed4441567e)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-07-20 09:19:35 -07:00