Steve Dower
bad86a621a
bpo-46566: Add new py.exe launcher implementation (GH-32062)
2022-03-29 00:21:08 +01:00
Vincent Bernat
5c30388f3c
bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131)
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2022-03-29 00:50:26 +03:00
Maciej Górski
7b44ade018
bpo-47129: Add more informative messages to f-string syntax errors (32127)
...
* Add more informative messages to f-string syntax errors
* 📜 🤖 Added by blurb_it.
* Fix whitespaces
* Change error message
* Remove the 'else' statement (as sugested in review)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-03-28 17:08:36 -04:00
Irit Katriel
15ba8167d7
bpo-26120: make pydoc exclude __future__ imports from the data block of the module (GH-30888)
2022-03-28 22:02:57 +01:00
Eric Snow
4c116f716b
bpo-47146: Eliminate a race between make regen-deepfreeze and make regen-global-objects. (gh-32162)
...
The race likely originated with gh-32061.
https://bugs.python.org/issue47146
2022-03-28 14:56:05 -06:00
Steve Dower
295114dcd3
bpo-47138: Ensure Windows docs build uses the same pinned version as other platforms (GH-32161)
2022-03-28 21:38:31 +01:00
Jonathan
66584c890d
Fix typo in the sqlite3 docs (GH-31915)
...
Co-authored-by: Jonathan <89750679+AHypnotoad@users.noreply.github.com>
2022-03-28 11:44:41 -07:00
Pieter Eendebak
850687df47
bpo-47070: Add _PyBytes_Repeat() (GH-31999)
...
Use it where appropriate: the repeat functions of `array.array`, `bytes`, `bytearray`, and `str`.
2022-03-28 04:43:45 -04:00
vidhya
86384cf83f
bpo-28516: document contextlib.ExitStack.__enter__ behavior (GH-31636)
...
The enter_context is updated with following information: 'The :meth:`__enter__` method
returns the ExitStack instance, and performs no additional operations.'
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-27 21:31:32 -07:00
Yonatan Goldschmidt
76f14b0463
ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097)
2022-03-27 20:12:21 -07:00
ty
f6b3a07b7d
bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
...
Add missing terminated NUL in sockaddr_un's length
- Linux: https://man7.org/linux/man-pages/man7/unix.7.html
- *BSD: SUN_LEN
2022-03-27 13:22:22 -07:00
Kumar Aditya
58448cbd96
bpo-47127: Specialize calls for fastcall c methods with keywords (GH-32125)
...
* add PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS
2022-03-28 03:53:25 +08:00
Kumar Aditya
785cc67705
bpo-46429: tweak deepfreeze output ( #32107 )
2022-03-27 11:46:22 -07:00
Jouke Witteveen
c12ba6b2ff
bpo-45171: Remove tests of deprecated logger.warn(). (GH-32139)
2022-03-27 19:22:05 +01:00
Jouke Witteveen
5ca6d7469b
bpo-45171: Fix stacklevel handling in logging. (GH-28287)
2022-03-27 14:49:28 +01:00
Christian Heimes
5fd8c574e0
bpo-47098: Replace Keccak Code Package with tiny_sha3 (GH-32060)
2022-03-26 21:36:08 +01:00
Christian Heimes
b16b6bb8da
bpo-47095: Use libb2 to provide blake2 implementation (GH-32059)
2022-03-26 20:52:24 +01:00
Pieter Eendebak
c23ddf5ec2
bpo-47116: use _PyLong_FromUnsignedChar instead of PyLong_FromLong (GH-32110)
2022-03-26 15:47:38 -04:00
Matthew Rahtz
e8e737bcf6
bpo-43224: Implement PEP 646 grammar changes (GH-31018)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-26 09:55:35 -07:00
Pablo Galindo Salgado
26cca8067b
bpo-47117: Don't crash if we fail to decode characters when the tokenizer buffers are uninitialized (GH-32129)
...
Automerge-Triggered-By: GH:pablogsal
2022-03-26 09:29:02 -07:00
Alex Hedges
ee912ad6f6
bpo-47105: Cite grp.h instead of pwd.h in grp docs (GH-32091)
2022-03-25 20:09:40 -04:00
Andrew Svetlov
bad6ffaa64
bpo-47062: Rename factory argument to loop_factory (GH-32113)
2022-03-26 00:26:23 +02:00
Duprat
d03acd7270
bpo-43352: Add a Barrier object in asyncio lib (GH-24903)
...
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2022-03-26 00:01:21 +02:00
Andrew Svetlov
20e6e5636a
bpo-47118: Fix asyncio.Runner tests error (32117)
2022-03-25 19:59:29 +02:00
Kurt McKee
c07ca1aab6
Fix some typos in whatsnew (GH-32098)
...
* Fix some typos and phrasing
* Convert the `hash()` text to a link
* Remove definite article
2022-03-25 10:32:05 -07:00
Dennis Sweeney
cca43b7d64
bpo-47053: Reduce deoptimization in BINARY_OP_INPLACE_ADD_UNICODE (GH-31318)
...
* Don't deopt if refcounts are too big
* Detect more at specialization time
2022-03-25 16:13:19 +00:00
Mark Shannon
d7163bb35d
bpo-42197: Don't create `f_locals` dictionary unless we actually need it. (GH-32055)
...
* `PyFrame_FastToLocalsWithError` and `PyFrame_LocalsToFast` are no longer called during profile and tracing.
(Contributed by Fabio Zadrozny)
* Make accesses to a frame's `f_locals` safe from C code, not relying on calls to `PyFrame_FastToLocals` or `PyFrame_LocalsToFast`.
* Document new `PyFrame_GetLocals` C-API function.
2022-03-25 12:57:50 +00:00
Ezio Melotti
b68431fadb
Add an issue template config for the migration (GH-32101)
2022-03-25 00:45:50 +01:00
Christian Heimes
8a0a9e5b19
bpo-40280: Add wasm32-emscripten and wasm32-wasi SOABI (GH-32095)
...
Shared extension on Emscripten now have suffix
``.cpython-311-wasm32-emscripten.so`` (JS loader) and
``.cpython-311-wasm32-emscripten.wasm`` (WebAssembly code).
2022-03-24 14:09:42 -07:00
Andrew Svetlov
4119d2d7c9
bpo-47062: Implement asyncio.Runner context manager (GH-31799)
...
Co-authored-by: Zachary Ware <zach@python.org>
2022-03-24 21:51:16 +02:00
Irit Katriel
2f49b97cc5
bpo-46841: remove no-longer-used macro UPDATE_PREV_INSTR_OPARG (GH-32100)
2022-03-24 18:54:35 +00:00
Tomáš Hrnčiar
12c0012cf9
bpo-40465: Document random module changes in 3.11 What's new ( #31818 )
2022-03-24 15:22:58 +02:00
Shantanu
3354245daf
bpo-46480: rephrase typing.assert_type docs (GH-32069)
...
The goal here is to reduce potential confusion between
`assert_type(val, type)` and `assert isinstance(val, typ)`.
The former is meant to ask a type checker to confirm a fact, the latter
is meant to tell a type checker a fact. The behaviour of the latter more
closely resembles what I'd expect from the prior phrasing of
"assert [something] to the type checker".
2022-03-23 19:15:06 -07:00
Steve Dower
366c54633e
Fix GPG signing in Windows release build (GH-32089)
2022-03-23 23:36:26 +00:00
Andrew Svetlov
ff619c7dfe
bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086)
2022-03-23 23:17:07 +02:00
Christian Heimes
48e2010d92
bpo-47101: list only activated algorithms in hashlib.algorithms_available (GH-32076)
2022-03-23 13:30:05 -07:00
Russel Webber
c62b944dfc
bpo-31582: Created a new documentation section describing sys.path initialization (GH-31082)
2022-03-23 17:29:40 +00:00
Steve Dower
fe010605f8
bpo-47086: Remove dead link to old CHM documentation (GH-32075)
2022-03-23 16:13:55 +00:00
Eric Snow
febf54bcf3
bpo-46712: Do not Regen Deep-Frozen Modules before Generating Global Objects (gh-32061)
...
We have to run "make regen-deepfreeze" before running Tools/scripts/generate-global-objects.py; otherwise we will miss any changes to global objects in deep-frozen modules (which aren't committed in the repo). However, building $(PYTHON_FOR_FREEZE) fails if one of its source files had a global object (e.g. via _Py_ID(...)) added or removed, without generate-global-objects.py running first. So "make regen-global-objects" would sometimes fail.
We solve this by running generate-global-objects.py before *and* after "make regen-deepfreeze". To speed things up and cut down on noise, we also avoid updating the global objects files if there are no changes to them.
https://bugs.python.org/issue46712
2022-03-23 09:55:52 -06:00
Eric Snow
21412d037b
bpo-46541: Add a Comment About When to Use _Py_DECLARE_STR(). (gh-32063)
...
In a gh-32003 comment, I realized it wasn't very clear how _Py_DECLARE_STR() should be used. This changes adds a comment to clarify.
https://bugs.python.org/issue46541
2022-03-23 09:52:50 -06:00
Andrew Svetlov
0360e9f346
bpo-46829: Deprecate passing a message into Future.cancel() and Task.cancel() (GH-31840)
...
After a long deliberation we ended up feeling that the message argument for Future.cancel(), added in 3.9, was a bad idea, so we're deprecating it in 3.11 and plan to remove it in 3.13.
2022-03-23 08:43:05 -07:00
slateny
624e3986fb
Correctly document class instead of function (GH-32016)
2022-03-23 14:39:07 +00:00
Victor Stinner
b0f886d1bc
bpo-46836: Add Doc/c-api/frame.rst (GH-32051)
...
Reorganize the documentation of the PyFrameObject C API.
2022-03-23 13:19:13 +01:00
Julien Palard
3ac4e783e0
[doc] configparser: avoid inline comments. (GH-31247)
...
People are testing those blocs with the default
inline_comment_prefixes of None, leading to a:
configparser.InterpolationSyntaxError: '$' must be followed by '$' or '{', found: '$ sign ($ is the only character that needs to be escaped)'
2022-03-23 09:35:33 +01:00
Julien Palard
ec8906fb59
bpo-42238: [doc] Some lines moved in rst, but had hardcoded lineno in susp-ignored.csv. (GH-32070)
2022-03-23 09:34:30 +01:00
Kumar Aditya
bd1cf6ecee
bpo-47012: speed up iteration of bytes and bytearray (GH-31867)
2022-03-23 04:30:05 -04:00
Inada Naoki
894d0ea5af
bpo-46864: Suppress deprecation warnings for ob_shash. (GH-32042)
2022-03-23 17:11:22 +09:00
Matt Williams
795b365e8a
Fix typo in Path.iterdir docs (GH-31822)
2022-03-22 19:51:41 -07:00
neonene
cd05d0a423
bpo-43166: Disable ceval.c optimizations for Windows debug builds (GH-32023)
...
Also increases the stack allocation when run with `python_d.exe` to account for the extra stack checks that are added.
2022-03-23 00:35:25 +00:00
Daniël van Noord
7ba7eae508
bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932)
...
Co-authored-by: Piet Delport
Co-authored-by: Hugo Lopes Tavares
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-22 14:01:15 -07:00