Miss Islington (bot)
b7b7b4fcf8
Doc: Update py2app link. (GH-91585)
...
See: https://mail.python.org/archives/list/docs@python.org/thread/KDVFGNGGUGGPVRZT7WZYHHWXCRS2GEN7/
(cherry picked from commit b77a95f44a
)
Co-authored-by: Julien Palard <julien@palard.fr>
2022-05-09 14:25:33 -07:00
Miss Islington (bot)
1e4cdcf97f
gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)
...
(cherry picked from commit be3cdd66c9
)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2022-05-09 07:18:37 -07:00
Miss Islington (bot)
2505e22d92
What's New in Python 3.11: move C API changes (GH-92390)
...
Move C API changes to the C API > Porting to Python 3.11 section.
(cherry picked from commit d8104d13cd
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-05-09 03:55:45 -07:00
Miss Islington (bot)
ea58fea818
Enhance PyConfig documentation (GH-92394)
...
(cherry picked from commit 7b9803f93f
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-05-09 03:51:11 -07:00
Miss Islington (bot)
2f46cf637f
bpo-38056: overhaul Error Handlers section in codecs documentation (GH-15732)
...
* Some handlers were wrongly described as text-encoding only, but actually they can also be used in text-decoding.
* Add more description to each handler.
* Add two REPL examples.
* Add indexes for Error Handler's name.
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 5bc2390229
)
Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
2022-05-08 20:13:45 -07:00
Miss Islington (bot)
cffa76d476
pdb docs: workaround for double semicolon in strings (GH-17011)
...
see https://github.com/gotcha/ipdb/issues/172
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2888b1107f
)
Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
2022-05-08 16:36:37 -07:00
Miss Islington (bot)
574d7b8d7c
bpo-39229: fix formatting in library/functions.rst (GH-17857)
...
Missing reference of auditing event presents error when building translated documentation
(cherry picked from commit f298ba1f27
)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2022-05-08 16:34:01 -07:00
Miss Islington (bot)
b6da20fffa
gh-77521: Add link to builtin module names in modules tutorial (GH-92438)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 859250cc55
)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
2022-05-08 12:45:14 -07:00
Miss Islington (bot)
5917e71017
Use percentage over factor for 3.11 whatsnew performance (GH-92496)
...
(cherry picked from commit 9304f98558
)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2022-05-08 09:59:14 -07:00
Miss Islington (bot)
d6b83a3140
gh-80856: doc: reveal doctest directives (GH-92318)
...
* Doc: Reveal doctest directives.
* Fix whitespace.
Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 7b024e3a3f
)
Co-authored-by: Davide Rizzo <sorcio@gmail.com>
2022-05-08 09:33:11 -07:00
Miss Islington (bot)
8037fb708e
Fix the `versionadded` for asyncio.StreamWriter.start_tls() (GH-92378)
...
(cherry picked from commit 063e8ab72b
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-05-08 09:04:29 -07:00
Miss Islington (bot)
7c6d649c2b
gh-92417: `logging` docs: Remove warning that only applies to Python <3.2 (GH-92425)
...
(cherry picked from commit 318c4e91ef
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-08 09:04:00 -07:00
Miss Islington (bot)
6d8fd3f608
`typing.Text`: tweak deprecation notice (GH-92405)
...
https://github.com/python/cpython/pull/92351/filesGH-r866869469
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit bdc99a830f
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-08 08:36:54 -07:00
Miss Islington (bot)
29f592e6fe
[3.11] gh-92417: `asyncio` docs: `asyncio.run()` is available on all supported Python versions (GH-92419) (GH-92462)
...
(cherry picked from commit f4e317b304
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:30:52 -07:00
Miss Islington (bot)
dfad113715
[3.11] gh-92417: `json` docs: `dict` is ordered on all supported Python versions (GH-92422) (GH-92464)
...
(cherry picked from commit bc098cfdb7
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:30:27 -07:00
Miss Islington (bot)
c35da32cde
[3.11] gh-92417: `doctest` docs: remove references to Python <3.6 (GH-92420) (GH-92467)
...
(cherry picked from commit 5639ea1ef9
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:29:58 -07:00
Miss Islington (bot)
be6c89cf26
[3.11] GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432) (GH-92469)
...
* Remove redundant footnote ref: the footnote has been removed
* Fix footnote ref to match footnote
* Convert footnotes into reST footnotes: will error if missing
(cherry picked from commit 788ef54bc9
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:28:56 -07:00
Miss Islington (bot)
eec14f42c1
[3.11] gh-92417: `stdtypes` docs: delete discussion of Python 2 differences (GH-92423) (GH-92472)
...
Given that 2.7 has now been end-of-life for two and a half years,
I don't think we need such a detailed explanation here anymore of
the differences between Python 2 and Python 3.
(cherry picked from commit 8efda1e7c6
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:25:26 -07:00
Miss Islington (bot)
f71b305ddf
Update What's New in 3.11 faster cpython figures and contributors (GH-92401)
...
(cherry picked from commit b7380948f2
)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2022-05-08 08:20:34 -07:00
Miss Islington (bot)
c63c8ac238
bpo-45046: Support context managers in unittest (GH-28045)
...
Add methods enterContext() and enterClassContext() in TestCase.
Add method enterAsyncContext() in IsolatedAsyncioTestCase.
Add function enterModuleContext().
(cherry picked from commit 086c6b1b0f
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-08 08:12:19 -07:00
Miss Islington (bot)
a85bdd7e02
gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)
...
(cherry picked from commit e5b4bd4d60
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-08 08:04:31 -07:00
Miss Islington (bot)
d0d22ca9fb
gh-92448: Update the documentation builder to render the GitHub issue. (GH-92449)
...
(cherry picked from commit 45e1721d10
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-05-08 06:05:01 -07:00
Miss Islington (bot)
565a5a3296
gh-92308: Add Pending Removal section to 3.11 What's New (GH-92309)
...
* gh-92308: Add Pending Removal section to 3.11 What's New
* Use compact list; drop attributions
* Add short text, and also missing PyUnicode_InternImmortal
* Fix formatting
* markup fix
* Update Doc/whatsnew/3.11.rst
Co-authored-by: Victor Stinner <vstinner@python.org>
* Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 0924b95f6e
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-05-07 21:04:04 -07:00
Pablo Galindo Salgado
e89c01eac7
[3.11] Add CI step to check changes in the exported ABI ( #92442 )
2022-05-08 04:32:17 +01:00
Pablo Galindo
8d32a5c8c4
Update the SOURCE_URI in pyspecific.py to point to the new branch
2022-05-06 23:56:26 +01:00
larryhastings
5021064390
gh-92203: Add closure support to exec(). ( #92204 )
...
Add a closure keyword-only parameter to exec(). It can only be specified when exec-ing a code object that uses free variables. When specified, it must be a tuple, with exactly the number of cell variables referenced by the code object. closure has a default value of None, and it must be None if the code object doesn't refer to any free variables.
2022-05-06 10:09:35 -07:00
gophra
a79001ee16
gh-92368: Fix missing possessive apostrophe ( #92397 )
...
* Fix missing possessive apostrophe
2022-05-06 15:39:16 +02:00
Serhiy Storchaka
5fbaf80057
Fix What's New: use :gh: instead of :issue: ( #92395 )
2022-05-06 13:32:10 +01:00
Serhiy Storchaka
15dbe8570f
gh-91827: Add method info_pathlevel() in tkinter (GH-91829)
2022-05-06 13:50:38 +03:00
Alex Waygood
6f18b86fda
gh-92332: Docs-only deprecation of `typing.Text` (GH-92351)
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-06 18:15:18 +08:00
Alex Waygood
291945bc6e
Enum docs: Remove unnecessary apostrophes ( #92382 )
...
Replace "it's" with "its".
2022-05-06 11:53:00 +02:00
Matt Wozniski
740da8d37a
Document the lifetime of `PyUnicode_AsUTF8String` ( #92325 )
...
The current wording implied this, but didn't state it explicitly.
2022-05-06 10:37:08 +01:00
Raymond Hettinger
ebaf0945f9
GH-89519: Deprecate classmethod descriptor chaining ( #92379 )
2022-05-06 02:57:53 -05:00
Ethan Furman
93364f9716
gh-78157: [Enum] nested classes will not be members in 3.13 (GH-92366)
...
- add member() and nonmember() functions
- add deprecation warning for internal classes in enums not
becoming members in 3.13
Co-authored-by: edwardcwang
2022-05-06 00:16:22 -07:00
Gregory P. Smith
fa4f0a134e
gh-90622: Prevent max_tasks_per_child use with a fork mp_context. ( #91587 )
...
Prevent `max_tasks_per_child` use with a "fork" mp_context to avoid deadlocks.
Also defaults to "spawn" when no mp_context is supplied for safe convenience.
2022-05-06 00:04:53 -07:00
Inada Naoki
2b563f1ad3
gh-87901: Add encoding to os.popen (GH-92374)
2022-05-06 14:48:36 +09:00
Hai Shi
301351c6a2
update argparse's doc of append action. ( #92344 )
2022-05-05 22:32:35 -05:00
Victor Stinner
299692afd8
gh-88279: Deprecate PySys_SetArgvEx() ( #92363 )
...
Deprecate the following C functions:
* PySys_SetArgv()
* PySys_SetArgvEx()
* PySys_SetPath()
2022-05-06 05:24:29 +02:00
Victor Stinner
5f29268283
gh-57684: Document safe path in What's New in Python 3.11 ( #92362 )
...
Mention also -P and PYTHONSAFEPATH in the Security Considerations
page.
2022-05-06 04:53:00 +02:00
Paul Ganssle
1303f8c927
gh-80010: Expand fromisoformat to include most of ISO-8601 ( #92177 )
...
This expands `fromisoformat` to cover most of the common uses of ISO 8601. We may expand the scope more in the future.
2022-05-05 18:31:24 -06:00
Victor Stinner
ada8b6d1b1
gh-57684: Add -P cmdline option and PYTHONSAFEPATH env var ( #31542 )
...
Add the -P command line option and the PYTHONSAFEPATH environment
variable to not prepend a potentially unsafe path to sys.path.
* Add sys.flags.safe_path flag.
* Add PyConfig.safe_path member.
* Programs/_bootstrap_python.c uses config.safe_path=0.
* Update subprocess._optim_args_from_interpreter_flags() to handle
the -P command line option.
* Modules/getpath.py sets safe_path to 1 if a "._pth" file is
present.
2022-05-06 01:34:11 +02:00
Gregory P. Smith
f6dd14c653
gh-82616: Add process_group support to subprocess.Popen ( #23930 )
...
One more thing that can help prevent people from using `preexec_fn`.
Also adds conditional skips to two tests exposing ASAN flakiness on the Ubuntu 20.04 Address Sanitizer Github CI system. When that build is run on more modern systems the "problem" does not show up. It seems ASAN implementation related.
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-05 16:22:32 -07:00
cibofo
9a0a7b4868
gh-91996: Add an HTTPMethod StrEnum to http (GH-91997)
...
* Add HTTPMethod enum to http
Create a StrEnum for the 9 common HTTP methods.
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-05-05 15:39:02 -07:00
Gregory P. Smith
354ab7a5c8
minor hashlib doc example cleanup. ( #92340 )
...
Closes #85465
2022-05-05 09:48:17 -07:00
Soumendra Ganguly
ae553b3561
bpo-41818: Add os.login_tty() for *nix. ( #29658 )
...
* Add `os.login_tty(fd)` for Unix.
Reviewed-by: Christian Heimes <christian@python.org>
Signed-off-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
2022-05-05 09:04:44 -07:00
Robert Howlett
43b135f94e
gh-92047: Py_GetVersion multi-digit minor version (GH-92047) ( #92048 )
2022-05-05 11:33:35 +02:00
Sebastian Rittau
d1b2e989be
gh-92223: Remove pre-Python 3.7 alternative in asyncio docs ( #92224 )
2022-05-04 17:14:07 -07:00
Carl Meyer
7d7a378c1a
Fix typo in Sorting howto ( #92280 )
...
The phrase is usually "odds and ends," not "odd and ends."
2022-05-03 21:38:29 -06:00
Kabir Kwatra
48c6165c28
gh-91928: Add `datetime.UTC` alias for `datetime.timezone.utc` (GH-91973)
...
### fixes #91928
`UTC` is now module attribute aliased to `datetime.timezone.utc`.
You can now do the following:
```python
from datetime import UTC
```
2022-05-03 15:14:25 -07:00
Robert Yang
ee2205b208
gh-87304: Improve comments in language reference for imports ( #92164 )
2022-05-03 16:08:05 -06:00