Michael Droettboom
ce1e73fbfd
gh-96272: Replace `test_source_encoding`'s `test_pep263` with `test_import_encoded_module` from `test_imp` (GH-96275)
...
Editors don't agree that `test_source_encoding.py` was valid koi8-r, making it
hard to edit that file without the editor breaking it in some way (see gh-96272).
Only one test actually relied on the koi8-r encoding and it was a duplicate of a
test from the deprecated `imp` module's `test_imp`, so here we replace
`test_pep263` with `test_import_encoded_module` stolen from `test_imp` and
set `test_source_encoding.py`'s encoding to utf-8 to make editing it easier
going forward.
2022-08-25 14:19:16 -05:00
ov2k
caa2a9799a
Clarify API stability of PyTypeObject in relation to static types. (GH-96217)
...
Fixes:
https://github.com/python/cpython/issues/95300
Related:
https://github.com/python/cpython/issues/91271
2022-08-25 15:32:12 +02:00
Harry
ad7340e8c5
gh-92445 Improve interaction between nargs="*" and choices() (GH-92565)
2022-08-25 06:18:38 -05:00
Sam Ezeh
cd492d43a2
gh-76728: Coerce DictReader and DictWriter fieldnames argument to a list (GH-32225)
2022-08-25 05:13:24 -05:00
Mark Shannon
c09fa7542c
GH-96237: Allow non-functions as reference-holder in frames. (GH-96238)
2022-08-25 10:16:55 +01:00
Vinay Sajip
8db7693bbf
gh-91070: Add note about SysLogHandler on macOS 12.x (Monterey). (GH-94803)
2022-08-25 08:27:30 +01:00
Ross Burton
df11012697
gh-95243: Mitigate the race condition in testSockName ( #96173 )
...
find_unused_port() has an inherent race condition, but we can't use
bind_port() as that uses .getsockname() which this test is exercising.
Try binding to unused ports a few times before failing.
Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-08-24 18:37:18 -07:00
Pablo Galindo Salgado
e34c82abeb
GH-93503: Add thread-specific APIs to set profiling and tracing functions in the C-API ( #93504 )
...
* gh-93503: Add APIs to set profiling and tracing functions in all threads in the C-API
* Use a separate API
* Fix NEWS entry
* Add locks around the loop
* Document ignoring exceptions
* Use the new APIs in the sys module
* Update docs
2022-08-24 23:21:39 +01:00
Guido van Rossum
657976ad95
Add gvanrossum to asyncio experts ( #96248 )
2022-08-24 13:16:41 -07:00
Irit Katriel
fba3b67af4
gh-87092: use basicblock_last_instr consistently in the compiler (GH-96243)
2022-08-24 16:58:42 +01:00
prego
4317b25a23
GH-96179: Fix misleading example on the bisect documentation (GH-96228)
...
The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960.
2022-08-24 17:47:13 +02:00
Dong-hee Na
09563a764e
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
2022-08-24 23:03:36 +09:00
Mark Shannon
a4a9f2e879
GH-96177: Move GIL and eval breaker code out of ceval.c into ceval_gil.c. (GH-96204)
2022-08-24 14:21:01 +01:00
Serhiy Storchaka
4de06e3cc0
gh-96021: Explicitly close the IsolatedAsyncioTestCase runner in tests (GH-96135)
...
Tests for IsolatedAsyncioTestCase.debug() rely on the runner be closed
in __del__. It makes tests depending on the GC an unreliable on other
implementations. It is better to close the runner explicitly even if
currently there is no a public API for this.
2022-08-24 15:07:20 +03:00
Irit Katriel
420f39f457
gh-93678: add _testinternalcapi.optimize_cfg() and test utils for compiler optimization unit tests (GH-96007)
2022-08-24 11:02:53 +01:00
C.A.M. Gerlach
6bda5b85b5
gh-94635: Frame sqlite3 how-to headings as such & move default adapters to reference ( #96136 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-08-24 09:14:14 +02:00
Raymond Hettinger
1f0eafa844
GH-96145: Add AttrDict to JSON module for use with object_hook ( #96146 )
2022-08-23 16:22:00 -05:00
Michael Droettboom
054328f0dd
gh-96189: Fix test_invalid_utf8 on a number of build bots (GH-96190)
...
The clearing of the temporary directory is not working on some platforms and
leaving behind files.
This has been updated to use the pattern in test_cmd_line.py [1] using the
special TESTFN rather than a test directory.
[1] https://github.com/python/cpython/blob/main/Lib/test/test_cmd_line.py#L559
2022-08-23 13:52:55 -07:00
Yury Selivanov
e046cf872e
Drop myself from owners of genobject ( #96216 )
2022-08-23 12:21:10 -07:00
Kevin Kirsche
58f6953d6d
gh-96175: add missing self._localName assignment in `xml.dom.minidom.Attr` ( #96176 )
...
X-Ref: https://github.com/python/typeshed/pull/8590#discussion_r951473977
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-08-23 09:16:02 -07:00
Mark Shannon
575f8880bf
GH-96068: Document object layout (GH-96069)
2022-08-23 13:55:43 +01:00
Pablo Galindo Salgado
16ebae4cd4
GH-96187: Prevent _PyCode_GetExtra to return garbage for negative indexes (GH-96188)
2022-08-23 11:13:53 +01:00
Jeong YunWon
ba7d4b9dc1
gh-96197: Add `del sys.breakpointhook` behavior test (gh-96198)
2022-08-23 17:58:38 +09:00
C.A.M. Gerlach
d6259c58cb
gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants ( #96134 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-08-23 08:51:20 +02:00
Erlend E. Aasland
04c73e5efb
gh-95432: Add doctest for sqlite3 tutorial ( #96193 )
2022-08-23 08:48:13 +02:00
Duncan Grisby
1499d73b3e
gh-96159: Fix significant performance degradation in logging.TimedRotat… (GH-96182)
2022-08-23 07:28:43 +01:00
Kumar Aditya
129998bd7b
GH-96075: move interned dict under runtime state (GH-96077)
2022-08-22 12:05:21 -07:00
Kumar Aditya
079baee196
GH-96071: add regression test for #96071 (GH-96137)
...
Automerge-Triggered-By: GH:ericsnowcurrently
2022-08-22 11:40:23 -07:00
Terry Jan Reedy
216ccacda1
gh-96076: Change test_launcher to use non-admin location for py.ini (GH-96091)
...
Patch authored by Eryksun.
2022-08-22 17:23:27 +01:00
Erlend E. Aasland
18b1782192
gh-96121: Merge sqlite3.Row examples into sqlite3.Row class doc ( #96122 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-22 10:03:24 +02:00
Christian Heimes
53e6a9a725
gh-96046: Initialize ht_cached_keys in PyType_Ready() (GH-96047)
2022-08-21 22:24:03 -07:00
sand8089
d8c7a1174c
small grammatical change (GH-96138)
...
changed a to an under An example that uses most of the list methods
2022-08-21 09:56:52 -05:00
Raymond Hettinger
511dea0a3e
GH-95880: Clarify StringIO append/overwrite behavior. (GH-96104)
2022-08-21 09:42:15 -05:00
Raymond Hettinger
0e28a3a50f
Add polynomial_from_roots() to the itertools recipes ( #96102 )
2022-08-21 09:41:29 -05:00
Raymond Hettinger
eea8f42ded
GH-93179: Document the thread safety of functools.lru_cache (GH-96101)
2022-08-21 09:40:13 -05:00
Nick Coghlan
bcc4cb0c7d
gh-96098: Clearly link concurrent.futures from threading & multiprocessing docs (GH-96112)
...
Clearly link concurrent.futures from threading & multiprocessing docs
Also link directly to asyncio from the beginning of the threading docs.
2022-08-21 14:09:05 +12:00
Dong-hee Na
6ec57e7c5a
gh-90536: Fix link syntax to LLVM-BOLT repository (gh-96141)
2022-08-21 00:11:35 +09:00
Kumar Aditya
e0d54a4a79
GH-96071: fix deadlock in PyGILState_Ensure (GH-96124)
...
Alternative of #96107
2022-08-19 12:43:00 -07:00
Christian Heimes
822955c166
gh-96125: Fix sys.thread_info.name on pthread platforms (GH-96126)
...
Automerge-Triggered-By: GH:tiran
2022-08-19 12:41:25 -07:00
Brandt Bucher
5bfb3c372b
GH-90997: Wrap yield from/await in a virtual try/except StopIteration (GH-96010)
2022-08-19 12:33:44 -07:00
Carl Friedrich Bolz-Tereick
2d9f252c0c
gh-96019: Fix caching of decompositions in makeunicodedata (GH-96020)
2022-08-19 12:20:44 +03:00
Erlend E. Aasland
ee9f22d346
Docs: Fix markup of module name in sqlite3 docs ( #96115 )
2022-08-19 10:18:08 +02:00
C.A.M. Gerlach
303ef0913e
Doc: Use consistent markup for example Point class in sqlite3 ( #96095 )
2022-08-19 09:41:16 +02:00
Erlend E. Aasland
1a140af40b
Docs: group sqlite3.Connection attributes and methods ( #96090 )
2022-08-19 09:30:41 +02:00
Erlend E. Aasland
ede771cdf9
gh-94635: Remove sqlite3 doc introduction heading ( #96089 )
2022-08-19 09:21:11 +02:00
Christian Heimes
6087f491ea
gh-95853: WASM: better version and asset handling in scripts (GH-96045)
...
- support EMSDK tot-upstream and git releases
- allow WASM assents for wasm64-emscripten and WASI. This makes single file distributions on WASI easier.
- decouple WASM assets from browser builds
2022-08-19 08:36:12 +02:00
MrSuspicious
757c383d24
gh-96039: Corrected wording error in itertools doc (GH-96105)
2022-08-19 01:20:45 -05:00
Christian Heimes
d9c1b746b5
gh-96017: Fix some compiler warnings (GH-96018)
...
- "comparison of integers of different signs" in typeobject.c
- only define static_builtin_index_is_set in DEBUG builds
- only define recreate_gil with ifdef HAVE_FORK
2022-08-19 08:08:43 +02:00
Raymond Hettinger
6740680b57
GH-95822: Need _PyType_Lookup() in descriptor howto code equivalent. (GH-95967)
2022-08-18 23:56:58 -05:00
C.A.M. Gerlach
b6d88b7225
gh-95914: Add Py_UNICODE encode APIs removed in PEP 624 to 3.11 What's New ( #96016 )
...
* 3.11 Whatsnew: Add Py_UNICODE encode functions removed in PEP 624
* Just use :func: instead of :c:func: for non-resolved funcs so ! works
2022-08-19 00:52:59 +01:00