Miss Islington (bot)
c5ecfa0a1e
[3.11] GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917) (GH-93969)
...
(cherry picked from commit b1ae4af5e8
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
2022-06-30 02:47:16 -07:00
Miss Islington (bot)
5084a64d38
bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)
...
(cherry picked from commit 68fb03249f
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-06-29 13:53:42 -07:00
Miss Islington (bot)
cbd562ff4e
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901) (GH-94425)
...
(cherry picked from commit 22b783aba0
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2022-06-29 19:22:11 +02:00
Christian Heimes
a548a45633
[3.11] gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413) (GH-94415)
...
``PY_STDMODULE_CFLAGS`` may contain include directories with system
headers. This can break compiling with built-in libmpdec.
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-29 16:22:41 +02:00
Christian Heimes
9140c413d0
[3.11] GH-93516: Drop broken assert, fixes GH-93769 (GH-94411)
2022-06-29 13:53:56 +01:00
Christian Heimes
0122ab235b
[3.11] gh-94026: Buffer regrtest worker stdout in temporary file (GH-94253) (GH-94408)
...
Co-authored-by: Victor Stinner <vstinner@python.org>.
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-29 13:51:25 +02:00
Miss Islington (bot)
aaa85b55d9
gh-94404: makesetup: use correct CFLAGS and macOS workaround (GH-94405)
...
``makesetup`` now works around an issue with sed on macOS and uses correct
CFLAGS for object files that end up in a shared extension.
(cherry picked from commit 5150cbcd68
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-29 01:10:58 -07:00
Mark Shannon
3b4f5ed168
[3.11] GH-93516: Backport GH-93769 (GH-94231)
...
* Store offset of first traceable instruction to avoid having to recompute it all the time when tracing.
2022-06-28 16:30:22 +01:00
Miss Islington (bot)
50a2e36ce9
gh-88116: Avoid undefined behavior when decoding varints in code objects (GH-94375)
...
(cherry picked from commit c485ec014c
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-06-28 06:54:30 -07:00
Pablo Galindo Salgado
648469299d
[3.11] Backport ABI regeneration script ( #94376 )
2022-06-28 14:33:08 +01:00
Miss Islington (bot)
3937dbfaf8
gh-61585: Clarify import scope in modules tutorial (GH-93455) (GH-94373)
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
(cherry picked from commit 4b854b7466
)
2022-06-28 12:29:38 +02:00
Miss Islington (bot)
926bf235da
[3.11] gh-86404: [doc] Fix missing space in idle documentation. (GH-94366) (GH-94369)
...
This should have been spotted by sphinx-lint, tracked here:
https://github.com/sphinx-contrib/sphinx-lint/issues/39
(cherry picked from commit bc7f6fcdf1
)
Co-authored-by: Julien Palard <julien@palard.fr>
Automerge-Triggered-By: GH:JulienPalard
2022-06-28 03:11:36 -07:00
Miss Islington (bot)
64365d0df9
gh-91860: Add docs for typing.dataclass_transform field specifier params (GH-94354) (GH-94372)
...
(cherry picked from commit 81ac9ac492
)
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2022-06-28 12:10:42 +02:00
Miss Islington (bot)
cf64db6d6d
gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)
...
Three test cases were failing on FreeBSD with latest OpenSSL.
(cherry picked from commit 1bc86c2625
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-28 00:59:57 -07:00
Miss Islington (bot)
1d2c8ff38f
gh-82006: IDLE doc improvements (GH-94349)
...
0. Update text start and stop conditions.
1. Title-case sections but not subsections.
2. Edit Shell Window sections: title, execute, restart.
(cherry picked from commit e6391e08bf
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-06-27 16:24:08 -07:00
Miss Islington (bot)
5751530f51
gh-94315: Check for DAC override capability (GH-94316)
...
``os.geteuid() == 0`` is not a reliable check whether the current user
has the capability to bypass permission checks. Tests now probe for DAC
override.
(cherry picked from commit 7e0d98ecb3
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-27 11:51:45 -07:00
Christian Heimes
56f5f90496
[3.11] gh-90473: Reduce recursion limit on WASI even further (GH-94333) (GH-94334)
...
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-27 18:33:01 +02:00
Christian Heimes
4ec146cefd
[3.11] gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301) (GH-94317)
...
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-27 09:23:04 +02:00
Terry Jan Reedy
bc8d81a8fe
[3.11] gh-84623: Remove unused imports in stdlib ( #94313 )
...
#93773
Backport only for 2 idlelib files.
Cherrypicked from 259dd71c32
2022-06-26 23:54:10 -04:00
Irit Katriel
575997af62
[3.11] gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282) (GH-94311)
...
(cherry picked from commit d71f5adc41
)
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
2022-06-26 23:00:52 +01:00
Miss Islington (bot)
442dd8ffa5
gh-94192: Fix error for dictionary literals with invalid expression as value. (GH-94304)
...
* Fix error for dictionary literals with invalid expression as value.
* Remove trailing whitespace
(cherry picked from commit 8c237a7a71
)
Co-authored-by: wookie184 <wookie1840@gmail.com>
2022-06-26 12:07:02 -07:00
Serhiy Storchaka
1b27ec5ac6
[3.11] gh-93820: Pickle enum.Flag by name (GH-93891). (GH-94288)
...
(cherry picked from commit 536985814a
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-06-26 14:24:04 +03:00
Miss Islington (bot)
5ce819f3c5
GH-94254: Make _struct module types immutable (GH-94269)
...
(cherry picked from commit 17ed560fcd
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-06-26 03:42:41 -07:00
Irit Katriel
ad23df97ed
[3.11] [doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140) (GH-94293)
...
(cherry picked from commit 32d595fdcd
)
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
2022-06-26 11:11:19 +01:00
Miss Islington (bot)
f0f3a424af
Run Tools/scripts/reindent.py (GH-94225)
...
Reindent files which were not properly formatted (PEP 8: 4 spaces).
Remove also some trailing spaces.
(cherry picked from commit e87ada48a9
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-06-26 01:56:55 -07:00
Miss Islington (bot)
68112c3f70
gh-83499: Fix closing file descriptors in tempfile (GH-93874)
...
(cherry picked from commit d4792ce916
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-06-26 01:38:06 -07:00
Miss Islington (bot)
4ec1f8d643
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
...
(cherry picked from commit 9af6b75298
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-06-25 15:51:19 -07:00
Miss Islington (bot)
8b77681469
bpo-39971: Change examples to be runnable (GH-32172)
...
(cherry picked from commit c57a1c76d7
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-06-25 13:59:43 -07:00
Erlend Egeberg Aasland
0a1517dc41
[3.11] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) ( #94272 )
...
Also add adapters and converter recipes.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com.
(cherry picked from commit bd3c1c187e
)
2022-06-25 22:55:17 +02:00
Miss Islington (bot)
125146771c
gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259)
...
(cherry picked from commit 75cb3abc3b
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-06-25 09:10:08 -07:00
Miss Islington (bot)
4bc5f9fe8c
gh-94207: Fix struct module leak (GH-94239) (GH-94265)
...
Make _struct.Struct a GC type
This fixes a memory leak in the _struct module, where as soon
as a Struct object is stored in the cache, there's a cycle from
the _struct module to the cache to Struct objects to the Struct
type back to the module. If _struct.Struct is not gc-tracked, that
cycle is never collected.
This PR makes _struct.Struct GC-tracked, and adds a regression test.
(cherry picked from commit 6b865349aa
)
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2022-06-25 15:40:14 +01:00
Miss Islington (bot)
89ba660717
gh-94217: Skip import tests when _testcapi is a builtin (GH-94218)
...
(cherry picked from commit 0a40025b80
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-24 11:54:47 -07:00
Miss Islington (bot)
b140e5a4ac
IDLE: replace if statement with expression (GH-94228)
...
(cherry picked from commit 91f9947f23
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-06-24 10:30:32 -07:00
Miss Islington (bot)
251193e7fb
Docs: Remove Provides [...]
from multiprocessing.shared_memory
description (GH-92761)
...
(cherry picked from commit a91ffcf3fa
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-06-24 10:15:25 -07:00
Miss Islington (bot)
c966e0816e
gh-84461: Build Emscripten with WASM BigInt support (GH-94219)
...
(cherry picked from commit e69306f08b
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-24 08:30:46 -07:00
Miss Islington (bot)
41e4b426ce
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
...
(cherry picked from commit 51fd4de101
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-06-24 04:20:16 -07:00
Miss Islington (bot)
4d2c972ff7
gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142)
...
- c_longlong and c_longdouble need experimental WASM bigint.
- Skip tests that need threading
- Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
(cherry picked from commit 8625802d85
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-24 04:17:21 -07:00
Miss Islington (bot)
e4d72d1863
gh-93692: remove "build finished successfully" message from setup.py (GH-93693)
...
The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit ab077d1e17
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-06-24 04:02:14 -07:00
Miss Islington (bot)
fbf31454e9
[Enum] Remove automatic docstring generation (GH-94188)
...
(cherry picked from commit 28a2ccfff2
)
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
2022-06-23 14:18:20 -07:00
Pablo Galindo Salgado
65ed8b47ee
[3.11] gh-92858: Improve error message for some suites with syntax error before ':' (GH-92894) ( #94180 )
...
(cherry picked from commit 2fc83ac3af
)
Co-authored-by: wookie184 <wookie1840@gmail.com>
Co-authored-by: wookie184 <wookie1840@gmail.com>
2022-06-23 18:38:06 +01:00
Miss Islington (bot)
ee82f0f314
gh-93771: Clarify how deepfreeze.py is run (GH-94150)
...
(cherry picked from commit 4e796f5646
)
Co-authored-by: Guido van Rossum <guido@python.org>
2022-06-23 09:57:29 -07:00
Miss Islington (bot)
1f00e8c55e
[3.11] GH-91742: Fix pdb crash after jump (GH-94171) ( #94176 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-06-23 17:36:00 +01:00
Ken Jin
852b4d4bcd
[3.11] gh-93382: Cache result of PyCode_GetCode
in codeobject (GH-93383) ( #93493 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
2022-06-23 17:24:49 +01:00
Miss Islington (bot)
96a76141d5
[Enum] fix typo (GH-94158)
...
(cherry picked from commit b4e0d6124a
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-06-23 08:14:45 -07:00
Christian Heimes
cf3f8d4728
[3.11] gh-84461: Fix test_sqlite for Emscripten/WASI (GH-94125) (GH-94157)
...
(cherry picked from commit 15bfabd1aa
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-06-23 03:11:35 -07:00
Julien Palard
5a692ca5d2
[3.11] gh-86404: [doc] Fix missing backtick and double target name. (GH-94120) (GH-94159)
...
(cherry picked from commit 11e865c74b
)
Co-authored-by: Julien Palard <julien@palard.fr>
2022-06-23 11:13:11 +02:00
Miss Islington (bot)
321acd4138
gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457)
...
When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
(cherry picked from commit fb1e9506c1
)
Co-authored-by: Oscar R <89599049+oscar-LT@users.noreply.github.com>
2022-06-22 23:46:33 -07:00
Miss Islington (bot)
00a25f87f3
Closes gh-94152: Update pyvideo.org URL (GH-94075)
...
The URL is now https://pyvideo.org , which uses HTTPS and avoids a redirect.
(cherry picked from commit 7c439dca13
)
Co-authored-by: partev <petrosyan@gmail.com>
2022-06-22 20:43:02 -07:00
Miss Islington (bot)
a562d2dc8b
gh-84623: Remove unused imports in idlelib (GH-94143)
...
Remove commented code in test_debugger_r.py.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 576dd90117
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-06-22 15:36:47 -07:00
Miss Islington (bot)
5bca4bba98
gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)
...
* gh-94114
(cherry picked from commit 8661c5053f
)
Co-authored-by: partev <petrosyan@gmail.com>
2022-06-22 10:05:04 -07:00