Commit graph

23666 commits

Author SHA1 Message Date
Miss Islington (bot)
fdb11897d7
bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) (GH-25689)
(cherry picked from commit 4c49be7668)
2021-04-28 17:11:15 +02:00
Miss Islington (bot)
cf9d65c5af
bpo-37751: Update codecs.register() doc. (GH-25643)
(cherry picked from commit 5c84bb506a)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-04-28 11:26:11 +09:00
Miss Islington (bot)
531c81038e
bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 (GH-23096) (GH-25659)
(cherry picked from commit 32980fb669)

Co-authored-by: Hai Shi <shihai1992@gmail.com>

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-04-27 16:25:19 +02:00
Miss Islington (bot)
4a3d73d8ad
[doc] Remove duplicated operator.itemgetter example (GH-24178) (#25646)
* Remove duplicated itemgetter example
* Add spaces
(cherry picked from commit 743e2bae10)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-26 21:16:40 -07:00
Miss Islington (bot)
c816c1c779
Use the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH-25638)
(cherry picked from commit 52cd6d5e1b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-26 15:16:20 -07:00
Miss Islington (bot)
c9c1dbd253
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25635)
(cherry picked from commit 8a307e488d)

Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>

Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
2021-04-26 15:36:23 -04:00
Miss Islington (bot)
b348580da6
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
The check about the f argument type was removed in this commit:
2c94aa567e

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
(cherry picked from commit bd25bcd37a)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2021-04-26 07:24:17 -07:00
Miss Islington (bot)
d7a1a815d9
Update asyncio-subprocess.rst (GH-21680) (GH-25621)
(cherry picked from commit 3c4850e222)

Co-authored-by: Gabriel R F <github@gabrf.com>
2021-04-25 21:47:05 -07:00
Senthil Kumaran
debb23fae6
[3.9] documentation: clarification about the function remove in os library (GH-19024) (GH-25620)
(cherry picked from commit b6daab2f67)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
2021-04-25 21:30:32 -07:00
Miss Islington (bot)
4cb98169b3
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
(cherry picked from commit 7be870f945)

Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
2021-04-25 21:06:55 -07:00
Miss Islington (bot)
2b475dc1ff
Fix broken links and improve stand-alone tools list in FAQ GH-25609
(cherry picked from commit d28b346953)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-25 18:43:43 -07:00
Miss Islington (bot)
7349c12452
Fix id of 'Internet Message Format' RFC in email doc GH-25613
Previous ID (5233) refers to "Sieve Email Filtering: Subaddress
Extension". It seems that the actual reference should be "Internet
Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322).

(The typo probably comes from commit 29d1bc0842 in which the ID of
this RFC got updated from the obsolete 2822.)

Co-authored-by: Ambrose Chua <ambrose@hey.com>
(cherry picked from commit cb5c802dcf)
Co-authored-by: Denis Laxalde <denis@laxalde.org>
2021-04-25 18:42:56 -07:00
Miss Islington (bot)
b861ed1006
Fix copy.Error casing in documentation GH-22004 (#25611)
(cherry picked from commit 0d930f108c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-25 18:39:24 -07:00
Miss Islington (bot)
9b2c5b20a5
Remove mention of dst parameter from description of os.lstat() (GH-24704)
It looks like it was accidentally copy-pasted in
6fa7aada9b.
(cherry picked from commit 7f8e072c6d)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2021-04-25 14:47:54 -07:00
Miss Islington (bot)
ab99b6a8ba
Fix a typo in datamodel reference document (GH-24930)
(cherry picked from commit a1a5e3c4c8)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2021-04-25 14:36:57 -07:00
Miss Islington (bot)
2825f906c7
BaseHTTPRequestHandler, that path includes query (GH-25597)
* Clarify, for BaseHTTPRequestHandler, that path includes query

Co-authored-by: David Jones <drj@pobox.com>
(cherry picked from commit a89d8a94a0)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2021-04-25 10:30:15 -07:00
Miss Islington (bot)
52e9031fbd
bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500)
The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version.
Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part).
sys.getwindowsversion() is not updated to avoid launching executables from that module.
(cherry picked from commit 2a3f4899c6)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
2021-04-23 19:09:20 +01:00
Jason R. Coombs
d4fff1f580
bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)
Use a versionadded directive to generate the text "New in version
3.8." (to match with the documentation of other modules).

Automerge-Triggered-By: GH:jaraco.
(cherry picked from commit adf24bd835)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-23 15:46:16 +09:00
Miss Islington (bot)
8db72cd342
Add more tests. Fix code excerpt. (GH-25549) (GH-25550) 2021-04-22 20:26:56 -07:00
Miss Islington (bot)
34be48450f
bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)
Reported by Yahor Harunovich.
(cherry picked from commit 14092b5a4a)
2021-04-22 18:16:16 -07:00
Miss Islington (bot)
87a392db40
bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH-22608)
(cherry picked from commit 660592f67c)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2021-04-21 21:32:40 -07:00
Miss Islington (bot)
072ec69af5
bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) (GH-25472) 2021-04-19 08:56:38 -07:00
Christian Heimes
cdf0287979
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25451)
Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b467d9a240)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-17 11:35:24 +02:00
Terry Jan Reedy
56c76df6e8
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
Change threading.activeCount to synonym threading.active_count.
2021-04-16 02:08:07 -04:00
Miss Islington (bot)
95e4431804
bpo-20364: Improve sqlite3 placeholder docs (GH-25003)
(cherry picked from commit 3386ca0b36)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-04-14 16:28:11 +03:00
Miss Islington (bot)
57873af35a
bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)
(cherry picked from commit 133705b85c)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2021-04-13 22:34:39 -07:00
Pablo Galindo
4da5ca52b7
Revert "Add ignore file for the abidump check (GH-25323)" (GH-25394)
This reverts commit b3fec753bb.
2021-04-14 00:26:43 +01:00
Miss Islington (bot)
de06baa9de
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)
(cherry picked from commit 67c0b3d89c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-12 09:03:08 -07:00
Miss Islington (bot)
dbc0e19a48
Fix description of behaviour of an exception class in 'from' clause (GH-24303) (GH-25341)
(cherry picked from commit 79650d0118)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2021-04-11 10:27:51 +01:00
Miss Islington (bot)
28fb2d1c4d
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25333) 2021-04-10 09:19:49 -07:00
Pablo Galindo
b3fec753bb
Add ignore file for the abidump check (GH-25323) 2021-04-09 23:12:08 +01:00
Miss Islington (bot)
7c8796a750
bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)
ripemd160 is not available in OpenSSL 3.0.0's default crypto provider.
It's only present in legacy provider.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2d7fdc9073)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 13:46:17 -07:00
Miss Islington (bot)
54d89a33e0
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6f37ebc61e)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 09:21:54 -07:00
Pablo Galindo
4d9336d114
Add CI step to check changes in the exported ABI (GH-25230) 2021-04-09 01:34:08 +01:00
Miss Islington (bot)
a9228d02d1
[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)
(cherry picked from commit 1e051a21b7)


Co-authored-by: Saiyang Gou <gousaiyang@163.com>

Automerge-Triggered-By: GH:brandtbucher
2021-04-08 16:03:53 -07:00
Miss Islington (bot)
5490b49fa6
[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
The previous "Fundamental data types" section says a c_char_p must be bytes (or None).
(cherry picked from commit 14829b09eb)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-08 04:21:35 -04:00
Saiyang Gou
3b1cf20297
[3.9] bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235) (GH-25259)
(cherry picked from commit 58d72cab89)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2021-04-07 20:32:48 +01:00
Miss Islington (bot)
f91fc7a679
bpo-43755: Update docs to reflect that lambda is not allowed in comp_if since 3.9 (GH-25231) (GH-25233) 2021-04-07 19:17:56 +01:00
Steve Dower
34f93002ba
bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2021-04-07 18:12:42 +01:00
Miss Islington (bot)
c7ccb0ff61
bpo-17305: Link to the third-party idna package. (GH-25208)
So long as we don't have idna2008 in the standard library, we should at least point people to the third-party solution.
(cherry picked from commit 1d023e374c)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2021-04-06 01:19:15 -07:00
Miss Islington (bot)
028d5286d4
bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH-25202) 2021-04-05 13:11:50 -07:00
Miss Islington (bot)
d56bcf915b
[3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH-25183) (GH-25184)
(cherry picked from commit 2b5913b4ee)


Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>

Automerge-Triggered-By: GH:gvanrossum
2021-04-04 08:36:21 -07:00
Miss Islington (bot)
de0b2b1330
bpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178) 2021-04-03 20:05:50 -07:00
Miss Islington (bot)
cbfa09b70b
Replace broken example code with correct simpler code. (GH-25162) (GH-25166) 2021-04-03 13:42:43 -07:00
Miss Islington (bot)
f12ae0b31a
Add more tests for the descriptor tutorial (GH-25164) (#25165)
(cherry picked from commit e4c8895ee5)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2021-04-03 13:42:28 -07:00
Miss Islington (bot)
63c69440c7
bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)
Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit b2a91e0c9e)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-04-02 15:26:32 -07:00
Miss Islington (bot)
d104a786ff
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140) 2021-04-01 17:06:30 -07:00
Miss Islington (bot)
244fa236e4
Doc: io: Remove "In-memory streams" section (GH-24927)
(cherry picked from commit b045cdaf34)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-04-01 15:11:49 +09:00
Miss Islington (bot)
b3c1e2c493
bpo-42840: Document providing kwargs to type. (GH-24173)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 72fcd14a82)

Co-authored-by: Erik Soma <stillusingirc@gmail.com>
2021-03-31 17:10:36 -07:00
Miss Islington (bot)
84694c3e7a
bpo-42225: IDLE - document two unix-related problems. (GH-25078)
1. Bad IP masquerade rules can prevent startup.
2. X cannot handle some complex colored chars.
(cherry picked from commit 1b4a9c7956)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-03-30 22:44:26 -07:00