Daniel Shahaf
fe175a87ad
Doc: Fix ambiguous pronoun (GH-26037)
2021-05-13 23:27:06 -07:00
josephernest
56b8ea65d2
Updated code example for asyncio.gather (GH-20604)
...
The previous example did not fully showcase the interest of using gather.
Here the example showcases "the result is an aggregate list of returned values".
2021-05-13 23:06:26 -07:00
Shantanu
65d180d983
bpo-38250: add version added for FlagBoundary (GH-25820)
...
* bpo-38250: add version added for FlagBoundary
* Also add versionadded for utilities
Co-authored-by: hauntsaninja <>
2021-05-13 22:59:53 -07:00
Saiyang Gou
3d4b5f1019
Update doc as relative import can be used with star import (GH-25667)
2021-05-13 22:37:19 -07:00
Ken Jin
53c91ac525
bpo-43977: Update pattern matching language reference docs (GH-25917)
...
* Update patma language reference with new changes to sequence and mapping
* update 3.10 whatsnew too
2021-05-13 22:31:28 -07:00
Petr Viktorin
ddd30b2dd2
Reword paragraph on specific value for Py_LIMITED_API (GH-26101)
2021-05-13 22:22:44 -07:00
Erlend Egeberg Aasland
a09fc9c63f
bpo-43908: Add What's New entry for Py_TPFLAGS_IMMUTABLETYPE flag (GH-25816)
2021-05-13 15:44:55 -07:00
Barney Gale
366c69f3f6
bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and chmod() in 3.10 whatsnew. (GH-26089)
2021-05-13 13:17:04 +01:00
Barney Gale
d1560d2429
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090)
2021-05-13 13:14:45 +01:00
Miguel Brito
8ea350ee90
bpo-44030: Fix formatting error in exceptions docs (GH-25929)
2021-05-13 01:11:36 +01:00
Victor Stinner
6cd0446ef7
bpo-44113: Deprecate old functions to config Python init (GH-26060)
...
Deprecate the following functions to configure the Python
initialization:
* PySys_AddWarnOption()
* PySys_AddWarnOptionUnicode()
* PySys_AddXOption()
* PySys_HasWarnOptions()
* Py_SetPath()
* Py_SetProgramName()
* Py_SetPythonHome()
* Py_SetStandardStreamEncoding()
* _Py_SetProgramFullPath()
Use the new PyConfig API of the Python Initialization Configuration
instead (PEP 587).
2021-05-12 23:59:25 +02:00
Victor Stinner
ff230153fd
bpo-44117: Add C API section to What's New in Python 3.11 (GH-26071)
...
Add also references to PyFrame_BlockPop() removal.
2021-05-12 18:46:29 +02:00
Mark Shannon
78b2abca8e
bpo-40222: Mention zero-cost exceptions in whats-new for 3.11 (GH-26021)
2021-05-12 11:31:48 +01:00
Irit Katriel
6574334a68
bpo-40640: doc -- add missing ... in example of Continue ( #26055 )
...
Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
2021-05-12 11:23:03 +01:00
Thomas Grainger
c1df8808e0
Correct the changelog entry for the syntax error message for multiple exception types (GH-26038)
2021-05-12 00:22:50 +01:00
Irit Katriel
23ae2c3bac
bpo-10548: expectedFailure does not apply to fixtures ( #23201 )
2021-05-11 22:48:20 +01:00
uniocto
5f2eb87f28
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016)
...
* Document os-system, subprocess Patch
* Update Doc/library/os.rst
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-05-11 13:47:05 -07:00
Irit Katriel
12e7d10dfd
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation ( #23192 )
2021-05-11 18:55:24 +01:00
Petr Viktorin
b05955d6f5
bpo-43795: PEP 652 user documentation (GH-25668)
...
- Reformat the C API and ABI Versioning page (and extend/clarify a bit)
- Rewrite the stable ABI docs into a general text on C API Compatibility
- Add a list of Limited API contents, and notes for the individual items.
- Replace `Include/README.rst` with a link to a devguide page with the same info
2021-05-11 07:04:33 -07:00
Julien Palard
d1b81574ed
Doc: http.server: directory is not a class attribute, but an argument. (GH-26017)
...
* Doc: http.server: directory is not a class attribute, but an argument.
2021-05-10 18:26:53 -07:00
dhoekstra2000
2a031723ee
bpo-43558: Add note about base class initialization to dataclasses doc (GH-25967)
2021-05-10 09:30:22 -04:00
Eric V. Smith
801497a115
Fix a word in dataclasses docs. (GH-26003)
2021-05-08 22:20:04 -04:00
Serhiy Storchaka
a0bd9e9c11
bpo-28307: Convert simple C-style formatting with literal format into f-string. (GH-5012)
...
C-style formatting with literal format containing only format codes
%s, %r and %a (with optional width, precision and alignment)
will be converted to an equivalent f-string expression.
It can speed up formatting more than 2 times by eliminating
runtime parsing of the format string and creating temporary tuple.
2021-05-08 22:33:10 +03:00
Pablo Galindo
6692dc1ca9
bpo-43149: Correct the syntax error message for multiple exception types (GH-25996)
...
Automerge-Triggered-By: GH:pablogsal
2021-05-08 11:24:41 -07:00
Pablo Galindo
873275e64a
Update references to master to point to main in customsourcelink.html (GH-25993)
2021-05-08 17:13:24 +01:00
Batuhan Taskaya
17229ab4a2
bpo-42725: mention the changes on what's new (GH-25974)
2021-05-08 14:49:40 +03:00
Ned Deily
42fcad26a4
Fix the whatsnew/3.11.rst to link to the blurb-generated changelog. (GH-25979)
2021-05-07 23:25:37 -04:00
Pablo Galindo
c40ab5b699
Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25977)
2021-05-08 03:43:23 +01:00
Mark Shannon
adcd220556
bpo-40222: "Zero cost" exception handling (GH-25729)
...
"Zero cost" exception handling.
* Uses a lookup table to determine how to handle exceptions.
* Removes SETUP_FINALLY and POP_TOP block instructions, eliminating (most of) the runtime overhead of try statements.
* Reduces the size of the frame object by about 60%.
2021-05-07 15:19:19 +01:00
Senthil Kumaran
b32c8e9795
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968)
2021-05-07 07:08:47 -07:00
Julien Palard
a0cb2e4302
Doc: What's new in Python 3.11 (GH-25963)
2021-05-07 10:06:45 +02:00
Inada Naoki
9ad8f109ac
bpo-44029: Remove Py_UNICODE APIs (GH-25881)
...
Remove deprecated `Py_UNICODE` APIs: `PyUnicode_Encode`,
`PyUnicode_EncodeUTF7`, `PyUnicode_EncodeUTF8`,
`PyUnicode_EncodeUTF16`, `PyUnicode_EncodeUTF32`,
`PyUnicode_EncodeLatin1`, `PyUnicode_EncodeMBCS`,
`PyUnicode_EncodeDecimal`, `PyUnicode_EncodeRawUnicodeEscape`,
`PyUnicode_EncodeCharmap`, `PyUnicode_EncodeUnicodeEscape`,
`PyUnicode_TransformDecimalToASCII`, `PyUnicode_TranslateCharmap`,
`PyUnicodeEncodeError_Create`, `PyUnicodeTranslateError_Create`.
See :pep:`393` and :pep:`624` for reference.
2021-05-07 15:58:29 +09:00
Scott Noyes
ee8e7c2fa9
Fix minor grammar problems in dataclasses documentation (GH-25948)
...
Some missing words; some odd word choices.
2021-05-06 17:52:46 -04:00
Tal Einat
92ceb1c840
docs: clearly document that ":#X" string formatting results in "0X..." (GH-25941)
...
* clearly document that ":#X" string formatting results in "0X..."
* put back the "serial comma"
2021-05-06 12:27:29 -07:00
Jean-Abou-Samra
09490298d4
Clarify rx parameter of compileall functions ( #25857 )
2021-05-04 21:37:39 +02:00
Roberto Hueso
a0b9915a8b
bpo-32822: Add finally with return/break/continue to the tutorial ( #25600 )
...
This documents in the tutorial docs the behavior of a finally clause in
case it should re-raise an exception but contains a
return/break/continue statement.
2021-05-04 14:36:01 +02:00
krisaoe
33d9bf298b
Fix error in Enum documentation example code that was referring to the wrong enum. ( #25837 )
2021-05-04 14:34:14 +02:00
Jelle Zijlstra
f6d7abc6e7
Copyedits to 3.10 What's New ( #25787 )
...
Co-authored-by: Dominic Davis-Foster <dominic@davis-foster.co.uk>
2021-05-04 11:19:23 +02:00
Terry Jan Reedy
3b200b2aa6
bpo-44025: Clarify when '_' is a keyword. ( #25873 )
...
In match statements, in case patterns and nowhere else.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-05-04 11:00:29 +02:00
Raymond Hettinger
70a071d9e1
bpo-40465: Remove random module features deprecated in 3.9 (GH-25874)
2021-05-04 10:55:40 +02:00
Jelle Zijlstra
87109f4d85
bpo-44001: improve Literal documentation (GH-25877)
2021-05-04 10:54:12 +02:00
Jelle Zijlstra
6fee0835cb
fix enum.property reference in docs (GH-25875)
2021-05-03 20:19:46 -07:00
Pablo Galindo
bb3e0c240b
Python 3.11.0a0
2021-05-03 21:25:35 +01:00
Pablo Galindo
c2931d31f8
bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854)
2021-05-03 15:50:24 +01:00
Julien Palard
440c025726
Doc: Fix random.uniform example comment. (GH-25784)
2021-05-03 02:20:54 -07:00
Eric V. Smith
72720a2639
dataclasses docs: add a missing word. (GH-25839)
2021-05-03 02:33:34 -04:00
Eric V. Smith
a21b3d2fa2
More clarification of kw_only args. (GH-25838)
...
Also, clarify that the dataclass decorator is what raises an error for some mutable defaults.
2021-05-03 01:55:13 -04:00
Raymond Hettinger
4ae828f3c0
Fix invalid markup ( #25833 )
2021-05-02 21:07:29 -07:00
Raymond Hettinger
8c598dbb94
bpo-25478: Add total() method to collections.Counter (GH-25829)
2021-05-02 20:19:51 -07:00
Tal Einat
b43cc31a27
bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)
...
Left click and drag to select lines. With selection, right click for context menu with copy and copy-with-prompts.
Also add copy-with-prompts to the text-box context menu.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-05-02 22:27:38 -04:00