Miss Islington (bot)
a3510c3a4e
gh-100247: Improve documentation for custom shebang commands in py.exe launcher (GH-101083)
...
(cherry picked from commit 30753c37c6
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-01-16 09:13:47 -08:00
Steve Dower
87ade7ebda
gh-100320: Fix path calculations on Windows when python.exe is moved outside of the normal location (GH-100947)
2023-01-16 17:00:34 +00:00
Miss Islington (bot)
63690e9af8
gh-101056: Fix memory leak in formatfloat()
in bytesobject.c
(GH-101057)
...
(cherry picked from commit b1a74a182d
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-01-16 03:12:23 -08:00
Nikita Sobolev
855b1a935e
[3.11] GH-100942: Fix incorrect cast in property_copy(). (GH-100965). ( #101008 )
...
(cherry picked from commit 94fc7706b7
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-01-15 12:38:25 +05:30
Miss Islington (bot)
6d98282ed4
[3.11] Sync-up parameter name in equivalent code snippet of enumerate
(GH-101029) ( #101030 )
...
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)
(cherry picked from commit ef633e5000
)
Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2023-01-15 12:16:06 +05:30
Miss Islington (bot)
c7aa39286b
gh-100668: Clarify how sqlite3 maps parameters onto placeholders (GH-100960)
...
(cherry picked from commit 206f05a46b
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-14 15:04:53 -08:00
Miss Islington (bot)
39c1f68fff
gh-101021: Document binary parameters as bytes (GH-101024)
...
(cherry picked from commit 49cae39ef0
)
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2023-01-14 12:22:08 -08:00
Raymond Hettinger
ba88628808
[3.11] Add recipes to showcase tee(), zip*, batched, starmap, and product. (GH-101028)
2023-01-13 22:32:32 -06:00
Miss Islington (bot)
d06315a6fa
[3.11] GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (GH-100959) ( #101019 )
...
(cherry picked from commit 1bc7a73683
)
2023-01-13 13:58:20 -08:00
Miss Islington (bot)
6492492ce7
gh-100247: Fix py.exe launcher not using entire shebang command for finding custom commands (GH-100944)
...
(cherry picked from commit 468c3bf798
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-01-13 04:52:28 -08:00
Serhiy Storchaka
2834fdc689
[3.11] gh-100160: Tweak the documentation for the default asyncio policy (GH-100969)
2023-01-13 10:15:23 +02:00
Steve Dower
55a26de6ba
gh-96290: Support partial/invalid UNC drives in ntpath.normpath() and splitdrive() (GH-100351)
...
This brings the Python implementation of `ntpath.normpath()` in line with the C implementation added in 99fcf15
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
2023-01-12 21:32:26 +00:00
Miss Islington (bot)
75717645bc
Fix typo in enum
module documentation (GH-100992)
...
(cherry picked from commit 2161bbf243
)
Co-authored-by: Noam Cohen <noam@noam.me>
2023-01-12 07:51:11 -08:00
Nikita Sobolev
cb6ff54b01
[3.11] gh-100931: Test all pickle
protocols in test_slice
(GH-100932). (GH-100979)
...
(cherry picked from commit 8795ad1bd0
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:AlexWaygood
2023-01-12 03:24:09 -08:00
Nikita Sobolev
db2643737d
[3.11] gh-100871: Improve copy
module tests (GH-100872) ( #100976 )
...
(cherry picked from commit 729ab9b622
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-01-12 11:15:00 +00:00
Miss Islington (bot)
e8097d49f6
GH-100894: Updated the doc for sys.winver
to clarify its usual contents (GH-100913)
...
(cherry picked from commit d9dff4c8b5
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2023-01-11 16:21:07 -08:00
Miss Islington (bot)
b594f25327
Skip py.exe launcher tests in full layout CI test (GH-100948)
...
These tests become flaky when py.exe exists on the test machine but isn't the one that was just built. They also don't provide any useful information for this scenario, so easiest to just skip them.
(cherry picked from commit 5ff029f7a3
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-01-11 09:52:10 -08:00
Kumar Aditya
e707671684
[3.11] GH-100892: Fix race in clearing threading.local
(GH-100922). ( #100937 )
...
(cherry picked from commit 762745a124
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-01-11 21:01:48 +05:30
Serhiy Storchaka
1b2459dc64
[3.11] gh-100160: Remove any deprecation warnings in asyncio.get_event_loop() ( #100412 )
...
Some deprecation warnings will reappear (in a slightly different form) in 3.12.
Co-authored-by: Guido van Rossum <guido@python.org>
2023-01-10 12:20:09 -08:00
Miss Islington (bot)
a7f9afdd46
[3.11] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100918)
...
Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
2023-01-10 10:38:57 +00:00
Hugo van Kemenade
1e74a12bde
[3.11] Fix typos in Doc folder (GH-100880). ( #100914 )
...
Co-authored-by: Semen Zhydenko <semen.zhydenko@gmail.com>
2023-01-10 11:42:03 +02:00
Miss Islington (bot)
ecb3be91b4
gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)
...
(cherry picked from commit 57a5259a43
)
Co-authored-by: Ned Deily <nad@python.org>
2023-01-09 21:39:38 -08:00
Miss Islington (bot)
03732b1bd9
gh-100893: update bpo reference in Mac README (GH-100905)
...
(cherry picked from commit be23a20242
)
Co-authored-by: Ned Deily <nad@python.org>
2023-01-09 19:40:34 -08:00
Miss Islington (bot)
13453a205b
gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100901)
...
(cherry picked from commit d7ab7149f8
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-01-09 16:51:49 -08:00
Miss Islington (bot)
4e096ec647
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
...
(cherry picked from commit e098137cd3
)
Co-authored-by: Ryan Ozawa <ryan.ozawa21@gmail.com>
2023-01-09 13:52:43 -08:00
Miss Islington (bot)
2d1128e9eb
GH-81061: Fix refcount issue when returning None
from a ctypes.py_object
callback (GH-13364)
...
(cherry picked from commit 837ba05267
)
Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>
2023-01-09 08:06:17 -08:00
Miss Islington (bot)
074b881e11
[3.11] Update copyright year in README (GH-100863) (GH-100864)
...
(cherry picked from commit e47b13934b
)
Co-authored-by: Ned Deily <nad@python.org>
Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com>
2023-01-08 21:55:52 -05:00
Miss Islington (bot)
07d1f99e8f
[3.11] Update copyright years to 2023. (gh-100848) (GH-100849)
...
(cherry picked from commit 11f99323c2
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2023-01-08 17:57:17 -08:00
Miss Islington (bot)
6184b800ee
GH-100805: Support numpy.array() in random.choice(). (GH-100830)
...
(cherry picked from commit 9a68ff12c3
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-01-08 12:04:49 -08:00
Miss Islington (bot)
6c7e32f6a8
gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745)
...
* gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)"
This reverts commit 7c83eaa536
.
(cherry picked from commit b034fd3e59
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-01-08 05:19:37 -08:00
Shantanu
be7c19723f
[3.11] gh-100776: Fix misleading default value in help(input) (GH-100788) ( #100841 )
...
(cherry picked from commit a2141882f2
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-08 01:23:12 -08:00
Miss Islington (bot)
87076d880c
gh-100783: fix os.path.join documentation (GH-100811)
...
- Use "drive", not "drive letter", because of UNC paths
- Previous components are not thrown away from relative drive letters
- Use "segment" instead of "component" for consistency with pathlib
- Other miscellaneous improvements
(cherry picked from commit 53455a319f
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-08 01:22:44 -08:00
Miss Islington (bot)
caed845fb5
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
...
(cherry picked from commit 6d3bc4a795
)
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2023-01-08 00:16:49 -08:00
Raymond Hettinger
4b4e6da7b5
[3.11] Future-proof recipe by renaming dotproduct() to sumprod() (GH-100828)
2023-01-07 15:16:38 -06:00
Miss Islington (bot)
a3e2407f5c
gh-100673: Removed erroneous note in the get_type_hints docs (GH-100701)
...
Removed erroneous note in the get_type_hints docs
typing.get_type_hints still includes base class type hints.
(cherry picked from commit deaf090699
)
Co-authored-by: FrozenBob <30644137+FrozenBob@users.noreply.github.com>
2023-01-07 09:38:32 -08:00
Miss Islington (bot)
72263f2a20
gh-99026 update dataclasses docs for when annotations are inspected (gh-100798)
...
update dataclasses docs for when annotations are inspected
(cherry picked from commit 659c2607f5
)
Co-authored-by: Akshit Tyagi <37214399+exitflynn@users.noreply.github.com>
2023-01-06 06:34:30 -08:00
Carl Meyer
f488831576
[3.11] gh-90104: avoid RecursionError on recursive dataclass field repr (gh-100756) (GH-100784)
...
Avoid RecursionError on recursive dataclass field repr
(cherry picked from commit 0a7936a38f
)
Automerge-Triggered-By: GH:ericvsmith
2023-01-05 18:08:33 -08:00
Miss Islington (bot)
d6b8413e94
gh-87691: clarify use of anchor in pathlib docs (GH-100782)
...
This is feedback from https://github.com/python/cpython/pull/100737GH-discussion_r1062968696
This matches the wording from the `os.path.join` docs better:
https://docs.python.org/3/library/os.path.htmlGH-os.path.join
In particular, the previous use of "anchor" was incorrect given the
pathlib definition of "anchor".
(cherry picked from commit 2f2fa03ff3
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2023-01-05 17:59:27 -08:00
Miss Islington (bot)
75861006d8
gh-87691: add an absolute path pathlib example in / operator docs (GH-100737)
...
The behaviour is fully explained a couple paragraphs above, but it may be useful to have a brief example to cover the behaviour.
(cherry picked from commit 1ae619c911
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Automerge-Triggered-By: GH:hauntsaninja
2023-01-05 15:04:39 -08:00
Miss Islington (bot)
a34f0bdcf6
GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100767)
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2023-01-05 03:46:13 +00:00
Miss Islington (bot)
541e7b8029
gh-100739: Respect mock spec when checking for unsafe prefixes (GH-100740)
...
(cherry picked from commit 7f1eefc6f4
)
Co-authored-by: Christian Klein <167265+cklein@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-01-04 15:08:37 -08:00
Miss Islington (bot)
eba6b00953
[3.11] gh-81611: Improve range
paragraph in 8.3 of language reference (GH-98353) ( #100704 )
...
gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353)
(cherry picked from commit 8b1f125121
)
Co-authored-by: 4l4k4z4m <alakazamjoined@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-01-04 15:57:24 -05:00
Miss Islington (bot)
c915f00eca
docs: fix ssizeobjargproc
parameters (GH-100736)
...
(cherry picked from commit 5fb1c08e15
)
Co-authored-by: David Lechner <david@lechnology.com>
2023-01-04 07:40:06 -08:00
Miss Islington (bot)
ad40764f5b
GH-86508: skip binding to local addresses of different family in asyncio.open_connection
(GH-100615)
...
(cherry picked from commit ba8dcdbcab
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-01-04 00:28:00 -08:00
Eli Schwartz
d8073ee6f3
[3.11] gh-89419: gdb: fix bug causing AttributeError in py-locals when no frame is available (GH-100611) ( #100738 )
...
gh-89419: gdb: fix bug causing AttributeError in py-locals when no frame is available (GH-100611)
```
Unable to read information on python frame
Python Exception <class 'AttributeError'>: 'NoneType' object has no attribute 'co_name'
```
Regression in commit b4903afd4d
. While
refactoring the code into a while loop, the previous early return when
no frame exists went missing. We have just printed a message that we
cannot get information about this, so the frame will be None, and we
cannot attempt to use it.
Discovered on python 3.11, in python 3.12a2 this should error out with
`.is_shim()` instead of `co_name`.
(cherry picked from commit 8586949833
)
2023-01-04 13:29:21 +05:30
Zachary Ware
b93bd153d5
[3.11] Docs: Fix the Show Source link (GH-100733)
...
See also python/release-tools#10
2023-01-03 16:51:36 -06:00
Miss Islington (bot)
7e9b2b0aa7
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
...
(cherry picked from commit 64ed609c53
)
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
2023-01-03 14:27:38 -08:00
Zachary Ware
f49006e6a2
gh-100700: Remove Date and Release fields in past whatsnews (GH-100729)
2023-01-03 16:10:57 -06:00
Miss Islington (bot)
50409a2968
[3.11] gh-100637: Fix int and bool __sizeof__ calculation to include the 1 element ob_digit array for 0 and False (GH-100663) ( #100717 )
...
gh-100637: Fix int and bool __sizeof__ calculation to include the 1 element ob_digit array for 0 and False (GH-100663)
Fixes behaviour where int (and subtypes like bool) __sizeof__ under-reports true size as it did not take into account the size 1 `ob_digit` array for the zero int.
(cherry picked from commit d7e7f79ca7
)
Co-authored-by: Ionite <dev@ionite.io>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2023-01-03 17:59:40 +00:00
Miss Islington (bot)
861cdefc1b
gh-95882: fix regression in the traceback of exceptions propagated from inside a contextlib context manager (GH-95883)
...
(cherry picked from commit b3722ca058
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2023-01-03 08:18:45 -08:00