Miss Islington (bot)
edf744990e
gh-99392: Fix sqlite3 converter recipes (GH-99393)
...
(cherry picked from commit dfc1b17a23 )
Co-authored-by: naglis <827324+naglis@users.noreply.github.com>
2022-11-12 11:48:52 -08:00
Miss Islington (bot)
944ac46b88
[3.11] gh-99304: [Enum] clarify what constitutes a flag alias (GH-99395) (GH-99415)
...
gh-99304: [Enum] clarify what constitutes a flag alias (GH-99395)
(cherry picked from commit 73a921b070 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-12 10:43:32 -08:00
Miss Islington (bot)
d75b2e2fc8
gh-87604: Clarify in docs that sys.addaudithook is not for sandboxes (GH-99372)
...
(cherry picked from commit c3c3871415 )
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-11-11 05:42:44 -08:00
Miss Islington (bot)
b31b64570a
gh-84522: Add for-loop to apply-method-to-sequence FAQ (GH-94660)
...
(cherry picked from commit 97c493dd35 )
Co-authored-by: Samuel Sloniker <sam@kj7rrv.com>
2022-11-10 20:26:31 -08:00
Miss Islington (bot)
edd92a11ab
gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (GH-98437)
...
fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py
[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
(cherry picked from commit d26ee8a0a5 )
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
2022-11-10 17:30:50 -08:00
Miss Islington (bot)
17f1c0ab06
GH-99183: Document behavior of count() for empty substrings (GH-99339)
...
(cherry picked from commit 2f4af2d99c )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-11-10 13:29:16 -08:00
Miss Islington (bot)
014940ac70
Update reference to the size of PyPI (GH-99076)
...
Update reference to the size of PyPI
Last changed in 2008 (528576031d ).
(cherry picked from commit 58ee5d8677 )
Co-authored-by: jmcb <joelsgp@protonmail.com>
2022-11-09 11:36:10 -08:00
Miss Islington (bot)
cf5dbb47a2
[Enum] Typo: fix DuplicateFreeEnum example docs (GH-99265)
...
(cherry picked from commit b3bd69c1bf )
Co-authored-by: Bruno Neyra <112962296+blv-brunoneyra@users.noreply.github.com>
2022-11-08 16:51:04 -08:00
Miss Islington (bot)
00147a84fc
gh-99238: clarify the type of the env dict. (GH-99253)
...
(cherry picked from commit 2eee9d9cd7 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2022-11-08 13:09:04 -08:00
Miss Islington (bot)
ca944628ac
Fix broken link in asyncio-subprocesses doc (GH-99214)
...
GH- Fix broken link in Doc/library/asyncio-subprocess.rst
This is a trivial fix in documentation to fix a broken link.
There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.htmlGH-asyncio.subprocess.Process ) for the function ``wait_for``:

I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs.
This PR fixes the link and the result looks like the following:

(cherry picked from commit acf4d5d5bd )
Co-authored-by: Mikael Koli <koli.mikael@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
2022-11-08 08:33:51 -08:00
Miss Islington (bot)
2d00190591
gh-92119: ctypes: Print exception class name instead of its representation (GH-98302)
...
(cherry picked from commit b9dedfe61d )
Co-authored-by: Kamil Turek <kamil.turek@hotmail.com>
2022-11-07 21:20:06 -08:00
Miss Islington (bot)
857f6a44a5
[3.11] gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) (GH-99212)
...
gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002)
The flag is not inherited, but its effect -- a NULL tp_new -- is.
Drop hints for people who come here wanting to “disallow instantiation”.
(cherry picked from commit 1438b77997 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2022-11-07 19:55:58 +01:00
Miss Islington (bot)
3dbf2708f5
doc: Formatting and typo fixes (GH-98974)
...
(cherry picked from commit 728e42fcf5 )
Co-authored-by: jmcb <joelsgp@protonmail.com>
2022-11-07 09:14:52 -08:00
Miss Islington (bot)
c4408d35f6
gh-94286 Fix documentation of print default param (GH-94297)
...
(cherry picked from commit 2db55e0c00 )
Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
2022-11-06 12:24:02 -08:00
Miss Islington (bot)
be4bab8c2b
gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148)
...
* fix auto() failure during multiple assignment
i.e. `ONE = auto(), 'text'` will now have `ONE' with the value of `(1,
'text')`. Before it would have been `(<an auto instance>, 'text')`
(cherry picked from commit 8feb7ab77c )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-11-06 06:30:32 -08:00
Miss Islington (bot)
e0fc2b3fd1
[doc] fix typo (GH-99143)
...
(cherry picked from commit 586b07e1f9 )
Co-authored-by: Doj <34577424+visualdoj@users.noreply.github.com>
2022-11-05 14:12:22 -07:00
Jason R. Coombs
07734a42db
[3.11] gh-98706: Sync with importlib_metadata 4.13.0. (GH-98875)
...
These changes are already applied to main but have been selected from importlib_metadata 4.x for their bug fixes.
2022-11-05 06:55:04 -07:00
Miss Islington (bot)
f7d2c948f5
minor edits to locale doc (GH-98537)
...
(cherry picked from commit c0bf7607a1 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-11-04 06:12:01 -07:00
Miss Islington (bot)
2ef2eaac15
Docs: add named to the list of styles in the sqlite3.paramstyle attr docs (GH-99078)
...
(cherry picked from commit 016c7d37b6 )
Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-11-03 16:27:53 -07:00
Miss Islington (bot)
eb023a84d9
gh-98740: Fix validation of conditional expressions in RE (GH-98764)
...
In very rare circumstances the JUMP opcode could be confused with the
argument of the opcode in the "then" part which doesn't end with the
JUMP opcode. This led to incorrect detection of the final JUMP opcode
and incorrect calculation of the size of the subexpression.
NOTE: Changed return value of functions _validate_inner() and
_validate_charset() in Modules/_sre/sre.c. Now they return 0 on success,
-1 on failure, and 1 if the last op is JUMP (which usually is a failure).
Previously they returned 1 on success and 0 on failure.
(cherry picked from commit e9ac890c02 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-11-03 00:47:39 -07:00
Miss Islington (bot)
2199a7dace
gh-65002: Make note that null bytes are used to pad bytes (GH-98635)
...
(cherry picked from commit 8cd21c2c5d )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-11-02 19:24:24 -07:00
Miss Islington (bot)
e0df94dc7c
Docs: Add 'as, match statement' to the index (GH-99001)
...
(cherry picked from commit 26720fffd0 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-11-02 19:22:41 -07:00
Miss Islington (bot)
8b4d5b1047
argparse howto: Use f-string in preference to "...".format() (GH-98883)
...
(cherry picked from commit 1fd20d0b57 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-11-02 19:17:33 -07:00
Miss Islington (bot)
88736db5d6
gh-96997: Clarify the contract of PyMem_SetAllocator() (GH-98977)
...
(cherry picked from commit c053284e39 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-11-02 14:57:26 -07:00
Miss Islington (bot)
46ccb35a40
gh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)
...
(cherry picked from commit 898d0d9ad8 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-11-01 22:12:52 -07:00
Miss Islington (bot)
d683bcc7d0
gh-96265: Formatting changes for faq/programming (GH-98242)
...
* Formatting changes for faq/programming
* Add missing method formatting, use non-literal formatting
* Fix sphinx warnings
* Some extra formatting missed earlier
* More formatting suggestions from review
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Add missing colon, avoid referening external module
(cherry picked from commit 0689b99bb8 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-01 22:06:26 -07:00
Miss Islington (bot)
b2e28c8700
gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958)
...
(cherry picked from commit 65d1407737 )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-11-01 21:00:13 -07:00
Miss Islington (bot)
67f63b82b8
[3.11] [doc] Update cookbook example for socket-based logging in a production sett… (GH-98922) (GH-98980)
...
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-01 23:34:32 +00:00
Miss Islington (bot)
129de5d4a2
Doc: use "unnumbered" footnotes (GH-98954)
...
Use unnumbered footnote in this file to avoid reseting the footnotes numbering.
Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1.
(cherry picked from commit f042646595 )
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
2022-11-01 06:35:34 -07:00
Miss Islington (bot)
e02ce485ac
[3.11] Missing PS1 prompt in tutorial example (GH-98921) (GH-98944)
...
(cherry picked from commit d22bde983e )
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
Automerge-Triggered-By: GH:rhettinger
2022-11-01 04:08:26 -07:00
Miss Islington (bot)
217a317425
Fix wording in Functional Programming HOWTO (GH-98939)
...
(cherry picked from commit f4d56292e9 )
Co-authored-by: partev <petrosyan@gmail.com>
2022-10-31 19:57:42 -07:00
Miss Islington (bot)
46a3cf4fe3
gh-98692: Enable treating shebang lines as executables in py.exe launcher (GH-98732)
...
(cherry picked from commit 88297e2a8a )
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-10-31 14:31:26 -07:00
Miss Islington (bot)
a4f8db19ad
Fix typo in sorting HOWTO (GH-98888)
...
(cherry picked from commit 3b86538661 )
Co-authored-by: partev <petrosyan@gmail.com>
2022-10-31 11:07:14 -07:00
Miss Islington (bot)
43cbb3df9a
Doc: Fix sphinx-lint issues (GH-98911)
...
They were introduced right between GH-98441 and GH-98408.
(cherry picked from commit c1c3be0f9d )
Co-authored-by: Julien Palard <julien@palard.fr>
2022-10-31 10:29:30 -07:00
Miss Islington (bot)
f6f07b252f
gh-98576: Fix types in dataclass.InitVar example (gh-98577)
...
(cherry picked from commit 880bafc574 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-10-31 08:14:04 -07:00
Miss Islington (bot)
a55bd6f884
glossary.rst: Fix typo in package definition (GH-98865)
...
This is a tiny typo fix of package definition in glossary.
According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly.
Automerge-Triggered-By: GH:AlexWaygood
(cherry picked from commit fc94d55ff4 )
Co-authored-by: ab <abousselmi@users.noreply.github.com>
2022-10-29 15:50:31 -07:00
Miss Islington (bot)
d038307b10
Fix typo in docs (GH-98863)
...
(cherry picked from commit bfecff5f73 )
Co-authored-by: Yuvi Panda <yuvipanda@gmail.com>
2022-10-29 13:56:27 -07:00
Miss Islington (bot)
f8fb0d8e77
gh-93358: Fix python-config docs for how to embed Python (GH-98649)
...
(cherry picked from commit e063c23c65 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-29 11:55:01 -07:00
Miss Islington (bot)
e237bf6862
dataclasses docs: consistent indentation (4 spaces) in examples (GH-98855)
...
(cherry picked from commit d10c2b9742 )
Co-authored-by: FC Stegerman <flx@obfusk.net>
2022-10-29 10:15:16 -07:00
Miss Islington (bot)
12957d7cbd
Fix typo in contextvars docs (GH-98823)
...
(cherry picked from commit 72fa57a8fe )
Co-authored-by: cburroughs <chris.burroughs@gmail.com>
2022-10-28 14:23:26 -07:00
Miss Islington (bot)
2d4b6e00f0
argparse docs: normalize constant references (GH-98765)
...
(cherry picked from commit b27b57c6e4 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-10-28 05:25:58 -07:00
Miss Islington (bot)
434943e0b4
[3.11] Python documents state elsewhere that a comma is not an operator (GH-98736) ( #98757 )
...
Python documents state elsewhere that a comma is not an operator, so calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.htmlGH-operators and https://docs.python.org/3/faq/programming.htmlGH-id22 .
(cherry picked from commit d578aaea62 )
Co-authored-by: Gerardwx <Gerardwx@users.noreply.github.com>
2022-10-28 12:15:34 +02:00
Stanley
5f86275ec2
[3.11] Change links to label refs (GH-98454) ( #98725 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 268129a74f )
2022-10-26 13:18:50 -07:00
Miss Islington (bot)
78df56ec69
gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720)
...
(cherry picked from commit 365852a03a )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-26 08:01:54 -07:00
Miss Islington (bot)
ca266aaf45
gh-98644: point people to tomllib from configparser’s docs (GH-98645)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 5e74bad93c )
Co-authored-by: Philipp A <flying-sheep@web.de>
2022-10-26 07:14:44 -07:00
Miss Islington (bot)
2aedba59ec
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
...
(cherry picked from commit 216f45e4fe )
Co-authored-by: fancidev <fancidev@gmail.com>
2022-10-25 20:55:29 -07:00
Miss Islington (bot)
7a25d27ec2
gh-77753: Add example for values that compare equal in stdtypes (GH-98497)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 0ca6a4d640 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-25 20:02:44 -07:00
Miss Islington (bot)
8777d059bb
gh-84747: Add async for comment for StreamReader (GH-98633)
...
(cherry picked from commit 4196ee5c8b )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-25 19:23:08 -07:00
Miss Islington (bot)
fa95b69856
fix a typo in whatsnew/3.11 (GH-98603)
...
(cherry picked from commit 45644905ea )
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
2022-10-25 16:50:09 -07:00
Miss Islington (bot)
298364f794
Fix typos in deprecation section of 3.11 What's New (GH-98628)
...
(cherry picked from commit faea6a131a )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2022-10-25 16:44:18 -07:00