Yuki K
bfd94ab9e9
gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ``howto/urllib2.rst`` ( #107966 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-29 08:35:29 +00:00
Maciej Olko
8898a8683b
gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` ( #109424 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-29 11:27:43 +03:00
Nikita Sobolev
f1b1680a72
gh-109961: Use proper `module` for `copy` method docs ( #110027 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-29 11:26:55 +03:00
Nikita Sobolev
d102d39bbe
gh-101100: Fix sphinx warnings in `library/difflib.rst` ( #110074 )
2023-09-29 11:03:59 +03:00
Jelle Zijlstra
7dc2c5093e
gh-110045: Update symtable module for PEP 695 ( #110066 )
2023-09-29 02:08:04 +00:00
Davide Rizzo
c4eda57345
Whitespace fix in asyncio-stream.rst ( #110015 )
2023-09-28 09:34:35 -07:00
Nikita Sobolev
0baf72696e
gh-109961: Docs: Fix incorrect rendering of `__replace__` in `copy.rst` ( #109968 )
2023-09-28 14:51:33 +03:00
Adam Turner
526380e286
GH-109190: Copyedit 3.12 What's New: Bytecode ( #109821 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-28 04:40:59 +00:00
Jacob Coffee
99fba5f156
gh-109812: Fix phrasing for `collections.Counter` (gh-109813)
2023-09-27 21:29:39 -05:00
Jelle Zijlstra
f49958c886
Enhance TypedDict docs around required/optional keys ( #109547 )
...
As discussed in comments to #109544 , the semantics of this attribute
are somewhat confusing. Add a note explaining its limitations and
steering users towards __required_keys__ and __optional_keys__ instead.
2023-09-27 10:35:46 -07:00
Sam Gross
773614e03a
gh-109740: Use 't' in `--disable-gil` SOABI ( #109922 )
...
Shared libraries for CPython 3.13 are now marked with a 't' for
threading. For example, `binascii.cpython-313t-darwin.so`.
2023-09-27 15:24:12 +00:00
Adam Turner
b35f0843fc
GH-109190: Copyedit 3.12 What's New: Release highlights ( #109770 )
2023-09-27 17:31:55 +03:00
Nikita Sobolev
d9809e84fb
gh-101100: Fix sphinx warnings in `library/devmode.rst` ( #109963 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-27 16:07:28 +03:00
Adam Turner
0e28d0f7a1
GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) ( #109927 )
...
Merge the two ``os`` entries
2023-09-27 07:59:42 +03:00
Victor Stinner
3538930d87
gh-101100: Fix Sphinx warnings in Doc/using/configure.rst ( #109931 )
2023-09-27 02:01:48 +02:00
Adam Turner
87ddfa74e2
GH-109190: Copyedit 3.12 What's New: Deprecations ( #109766 )
2023-09-27 00:24:44 +03:00
Victor Stinner
b1e4f6e83e
gh-109276, gh-109508: Fix libregrtest stdout ( #109903 )
...
Remove replace_stdout(): call sys.stdout.reconfigure() instead of set
the error handler to backslashreplace.
display_header() logs an empty line and flush stdout.
Remove encoding workaround in display_header() since stdout error
handler is now set to backslashreplace earlier.
2023-09-26 21:34:50 +02:00
Barney Gale
ecd813f054
GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)
...
Treat symlink loops like other errors: in strict mode, raise `OSError`, and
in non-strict mode, do not raise any exception.
2023-09-26 17:57:17 +01:00
Victor Stinner
859618c8cd
gh-109566, regrtest: Add --fast-ci and --slow-ci options ( #109570 )
...
* Add --fast-ci and --slow-ci options to libregrtest:
* --fast-ci uses a default timeout of 10 minutes and "-u all,-cpu"
(skip slowest tests).
* --slow-ci uses a default timeout of 20 minues and "-u all" (run
all tests).
* regrtest header now lists test resources.
* Makefile changes:
* "make test", "make hostrunnertest" and "make coverage-report" now
use --fast-ci option and TESTTIMEOUT variable.
* "make buildbottest" now uses "--slow-ci". Remove options which
became redundant with "--slow-ci".
* "make testall" and "make testuniversal" now use --slow-ci option
and TESTTIMEOUT variable.
* "make testall" now uses "find -exec rm ..." instead of
"find ... -print|xargs rm ...", same as "make clean".
* GitHub Actions workflow:
* Ubuntu and Address Sanitizer jobs now use "make test". Remove
options which became redundant with "--fast-ci".
* Windows jobs now use --fast-ci option.
* Use -j0 to detect the number of CPUs.
* Set Makefile TESTTIMEOUT default to an empty string, since
--slow-ci and --fast-ci use different default timeout. It's now
accepted to pass "--timeout=" to regrtest: treated as not timeout.
* Tools/scripts/run_tests.py now uses --fast-ci option.
* Tools/buildbot/test.bat now uses --slow-ci option. Remove
--timeout=1200 option, redundant with --slow-ci.
2023-09-26 17:22:50 +02:00
lohaswinner
8100612bac
no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902)
2023-09-26 22:12:32 +09:00
Nikita Sobolev
7c61a361fc
gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` ( #109881 )
2023-09-26 10:46:09 +03:00
Antoine Pitrou
88a6137cdb
gh-109599: Add types.CapsuleType ( #109600 )
...
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2023-09-25 19:50:39 +02:00
Adam Turner
86e7c611ac
GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes ( #109836 )
2023-09-25 17:42:03 +03:00
Adam Turner
64ab9f7d5c
GH-109190: Copyedit 3.12 What's New: Synchronise C API deprecations with the 3.12 branch ( #109844 )
2023-09-25 17:04:36 +03:00
Adam Turner
bccc1b7800
GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section ( #109751 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-09-25 12:38:07 +00:00
Adam Turner
4e478534d7
GH-109190: Copyedit 3.12 What's New: Use the present tense ( #109754 )
2023-09-25 15:18:22 +03:00
Adam Turner
f08772cfd8
GH-109190: Copyedit 3.12 What's New: Trivia ( #109760 )
2023-09-25 15:11:37 +03:00
Adam Turner
7495a93e0f
GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links ( #109753 )
2023-09-25 15:11:06 +03:00
Nikita Sobolev
f2eaa92b0c
gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` ( #109814 )
2023-09-25 00:31:56 -06:00
Adam Turner
7b8bfe1644
GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance ( #109755 )
2023-09-25 00:24:02 -06:00
Adam Turner
09a73d50f6
GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal ( #109768 )
2023-09-25 00:22:00 -06:00
Gregory P. Smith
e81bd3fa16
Sync whatsnew with the edit I made in the 3.12 backport PR. ( #109807 )
...
A post main merge edit to the text was added in the 3.12 backport PR.
e38d7104b8
This includes that in main. It's a minor edit over #109767 to resolve the comment there.
2023-09-24 17:27:24 +00:00
Adam Turner
8d365b60ba
GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role ( #109756 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-24 16:05:57 +00:00
Nikita Sobolev
649768fb67
gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` ( #109799 )
...
gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst`
2023-09-24 12:49:02 +03:00
Serhiy Storchaka
92af0cc580
gh-109634: Use :samp: role (GH-109635)
2023-09-23 09:31:20 +03:00
Gregory P. Smith
5e7ea95d9d
gh-100228: Document the os.fork threads DeprecationWarning. ( #109767 )
...
Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.
Many reviews and doc cleanup edits by Adam & Hugo. 🥳
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-23 05:04:20 +00:00
Adam Turner
b10de68c6c
GH-95913: Add the release date for Python 3.11 ( #109750 )
2023-09-22 21:07:06 -07:00
Jelle Zijlstra
612400d446
Fix indentation in 3.13 What's New ( #109769 )
...
The previous layout made it look like the other three deprecations are part of the first one, when in fact they are independent.
The new layout is consistent with that used for sqlite3 in 3.12 (https://docs.python.org/3.13/whatsnew/3.12.html#deprecated ).
2023-09-22 20:45:26 -07:00
Hugo van Kemenade
8a82bff12c
Docs: Update Donghee Na's name ( #109743 )
2023-09-22 12:52:57 -06:00
Adam Turner
c32abf1f21
GH-109190: Copyedit 3.12 What's New: asyncio ( #109661 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-22 15:32:32 +02:00
Adam Turner
168c3a8a89
GH-109190: Copyedit 3.12 What's New: PEP 669 ( #109658 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-22 15:31:49 +02:00
Łukasz Langa
46b63ced25
Remove outdated docstring from the `quantify` itertools recipe ( #109726 )
2023-09-22 15:09:32 +02:00
Adam Turner
cade5960ae
GH-109190: Copyedit 3.12 What's New: Other Language Changes ( #109660 )
2023-09-22 15:05:39 +02:00
Adam Turner
e94a2232ea
GH-109190: Copyedit 3.12 What's New: PEP 684 ( #109657 )
2023-09-22 14:53:53 +02:00
Adam Turner
d9415f6a45
GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) ( #109665 )
...
bytecode: suppress reference to removed LOAD_METHOD
2023-09-22 14:50:20 +02:00
Adam Turner
34ddcc3fa1
GH-109190: Copyedit 3.12 What's New: calendar ( #109662 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-22 06:29:48 +00:00
Adam Turner
d3fe1a902f
GH-109190: Copyedit 3.12 What's New: tokenize ( #109663 )
2023-09-22 00:28:13 -06:00
Adam Turner
291401389b
GH-109190: Copyedit 3.12 What's New: Consistently show module names ( #109664 )
...
Consistently show module names
2023-09-22 08:37:44 +03:00
Adam Turner
e47d12e222
GH-109190: Copyedit 3.12 What's New: PEP 701 ( #109655 )
2023-09-21 13:37:28 -06:00
Adam Turner
16c24023c1
GH-109190: Copyedit 3.12 What's New: Improved Error Messages ( #109654 )
2023-09-21 13:24:44 -06:00
Adam Turner
11636788da
GH-109190: Copyedit 3.12 What's New: Typing PEPs ( #109659 )
2023-09-21 13:05:54 -06:00
Adam Turner
22b70ca480
GH-109190: Copyedit 3.12 What's New: PEP 709 ( #109656 )
2023-09-21 12:50:33 -06:00
AN Long
869f177b5c
gh-74481: Add missing debug function docs and constants to msvcrt (GH-109650)
2023-09-21 16:44:24 +01:00
Adam Turner
712cb173f8
GH-109209: Bump the minimum Sphinx version to 4.2 ( #109210 )
2023-09-21 09:06:36 +03:00
Heinz-Alexander Fuetterer
ef6d475db3
Fix typos in docs and comments ( #109619 )
2023-09-20 16:58:23 +00:00
Victor Stinner
d41d2e69f6
gh-109054: Document configure variables ( #109224 )
2023-09-20 18:51:53 +02:00
Victor Stinner
ced6924630
gh-108973: Fix asyncio test_subprocess_consistent_callbacks() ( #109431 )
...
SubprocessProtocol process_exited() method can be called before
pipe_data_received() and pipe_connection_lost() methods. Document it
and adapt the test for that.
Revert commit 282edd7b2a
.
_child_watcher_callback() calls immediately _process_exited(): don't
add an additional delay with call_soon(). The reverted change didn't
make _process_exited() more determistic: it can still be called
before pipe_connection_lost() for example.
Co-authored-by: Davide Rizzo <sorcio@gmail.com>
2023-09-20 15:54:19 +02:00
James Gerity
def828995a
fixes gh-109559: Update `unicodedata` for Unicode 15.1.0 (GH-109560)
...
---------
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2023-09-19 22:07:47 -07:00
Mateusz Nowak
5a740cd06e
gh-109109: Expose retrieving certificate chains in SSL module ( #109113 )
...
Adds APIs to get the TLS certificate chains, verified or full unverified, from SSLSocket and SSLObject.
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
2023-09-20 01:20:54 +00:00
Raymond Hettinger
f2636d2c45
Misc itertool recipe improvements, mostly docstrings and comments (gh-109555)
2023-09-19 07:39:44 -05:00
Victor Stinner
59f32a785f
gh-109435: Add Doc/library/cmdline.rst ( #109436 )
...
Document modules providing a command-line interface (CLI).
2023-09-19 13:57:28 +02:00
Xuehai Pan
74f315edd0
gh-102757: fix function signature mismatch for `functools.reduce` between code and documentation ( #102759 )
2023-09-18 10:42:58 -06:00
Hugo van Kemenade
2209d814ca
Docs: getopt is deprecated in Python 3.13 ( #109438 )
2023-09-18 13:45:59 +03:00
Anthony Sottile
ce5b3e19e6
Fix extraneous backslashes in hashlib docs ( #109468 )
2023-09-18 00:25:33 -07:00
Serhiy Storchaka
add16f1a5e
gh-108511: Add C API functions which do not silently ignore errors (GH-109025)
...
Add the following functions:
* PyObject_HasAttrWithError()
* PyObject_HasAttrStringWithError()
* PyMapping_HasKeyWithError()
* PyMapping_HasKeyStringWithError()
2023-09-17 14:23:31 +03:00
AlberLC
929cc4e4a0
gh-109451: Fix wrong format specifier in logging documentation (GH-109465)
2023-09-16 10:06:04 +01:00
Vinay Sajip
a6846d45ff
gh-109414: Add some basic information about venvs in the introduction. (GH-109440)
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-16 09:49:02 +01:00
partev
0b38ce440b
gh-109474: Update two Unix packaging URLs ( #109307 )
...
update packaging URLs
fix a broken URL for fedora RPM packaging guide and fix a URL redirect for Slackware packaging guide.
2023-09-16 10:46:09 +03:00
Brett Cannon
e218e5022e
GH-83417: Allow `venv` to add a `.gitignore` file to environments via a new `scm_ignore_file` parameter (GH-108125)
...
This feature is off by default via code but on by default via the CLI. The `.gitignore` file contains `*` which causes the entire directory to be ignored.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-15 22:38:08 +00:00
Gregory P. Smith
59073c9ab8
gh-109096: Deprecate `http.server.CGIHTTPRequestHandler` ( #109387 )
...
Deprecate `http.server.CGIHTTPRequestHandler`.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-09-15 14:26:45 -07:00
Egil Martinsson
3d881453d3
gh-109350: Fix outdated captured output in unittest.mock documentation ( #109353 )
2023-09-15 19:25:16 +01:00
Hugo van Kemenade
b434dd7e36
Docs: Superseded modules: list only module names ( #109439 )
2023-09-15 15:56:23 +03:00
Nikita Sobolev
21e80f4c19
gh-101100: Fix sphinx warnings in `turtle.rst` ( #109394 )
2023-09-14 14:24:18 -04:00
Victor Stinner
d7a27e527d
gh-107298: Document PyMODINIT_FUNC macro ( #109236 )
...
Document PyMODINIT_FUNC macro.
Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are
not documented. These macros should only be used to define the Python
C API. They should not be used outside Python code base.
2023-09-14 14:56:43 +02:00
Brandt Bucher
22e65eecaa
GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300)
2023-09-13 10:25:45 -07:00
Oleksandr Kravets
a0c06a4f93
Fix variable name in dis documentation example (GH-109343)
...
BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency.
2023-09-13 08:07:56 +03:00
Thomas Grainger
6c0ddca409
gh-105189: fix importlib.resources.abc deprecation docs ( #105232 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-13 07:42:26 +03:00
Adam Turner
90cf345ed4
GH-104395: Add a link in 'Meta Information' to the docs download page ( #104443 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-12 20:32:13 +00:00
Irit Katriel
b303d3ad3e
gh-109319: deprecate dis.HAVE_ARGUMENT ( #109320 )
2023-09-12 16:45:35 +01:00
Irit Katriel
0e76cc359b
gh-109184: update traceback module doc w.r.t notes (message is no longer always at the end) ( #109201 )
2023-09-12 14:54:04 +00:00
AN Long
e121fca33b
gh-109266: Fix msvcrt.kbhit's documented return value (GH-109267)
2023-09-12 15:44:48 +01:00
Irit Katriel
8b55adfa8f
gh-109256: allocate opcode IDs for internal opcodes in their own range ( #109269 )
2023-09-12 10:36:17 +00:00
Raymond Hettinger
f2a55fecd0
Fix iter_index() to work with lists which do not support stop=None. (gh-109306)
2023-09-12 04:04:28 +02:00
Carl Meyer
2b1e2f1cd1
gh-109292: add symtable impact of PEP 709 to What's New ( #109293 )
2023-09-11 18:03:04 -06:00
wim glenn
1ee50e2a78
gh-107322: zipapp: Remove the suggestion to remove .dist-info directories ( #107296 )
...
Removed zipapp suggestion to rm .dist-info subdirectories. This totally breaks importlib.metadata
2023-09-11 15:44:13 -04:00
Hugo van Kemenade
57b6205523
gh-109190: What's New in 3.12: Add subheadings to removals for easy linking ( #109159 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-11 19:06:16 +03:00
Delgan
2dd6a86c4e
Fix "FSTRING_MIDDLE" typo in py312 "What's New" ( #109222 )
2023-09-10 10:55:56 +00:00
Serhiy Storchaka
92578919a6
gh-109174: Add support of SimpleNamespace in copy.replace() (GH-109175)
2023-09-10 08:09:25 +03:00
Raymond Hettinger
d3ed9921cd
Improve the sieve() recipe in the itertools docs (gh-109199)
...
Lazier sieve
2023-09-09 17:50:04 -05:00
Shantanu
74fc96bc60
Add version directives to ast docs ( #108788 )
2023-09-07 11:34:18 -07:00
Christoph Anton Mitterer
403ab1306a
gh-107924: re-order os.sendfile() flag documentation ( #107926 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 18:50:10 +03:00
Mark Dickinson
b72251de93
gh-102823: Document return type of floor division on floats ( #102824 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 14:20:33 +00:00
Nikita Sobolev
ac31f714c3
gh-107544: Add docs about `json.dumps(..., default=)` ( #108259 )
2023-09-07 06:53:33 -07:00
Stanley
891236f482
gh-71770: Add more details on behavior of configparser's default_section ( #31562 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 13:52:58 +00:00
Colin Watson
1294fcede0
GH-90915: Document that SystemExit doesn't trigger sys.excepthook ( #31357 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 13:14:27 +00:00
Ori Hoch
6b15ff5235
socket documentation fix - rename triple to 3-tuple ( #24722 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 10:33:02 +00:00
Karthikeyan Singaravelan
e183a71eef
bpo-38157: Add example about per file output for mock_open. ( #16090 )
...
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 09:19:13 +00:00
Adam Turner
f0f96a9f40
GH-108202: Document ``calendar``'s command-line interface ( #109020 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-06 21:19:54 +00:00
Serhiy Storchaka
6f3c138dfa
gh-108751: Add copy.replace() function (GH-108752)
...
It creates a modified copy of an object by calling the object's
__replace__() method.
It is a generalization of dataclasses.replace(), named tuple's _replace()
method and replace() methods in various classes, and supports all these
stdlib classes.
2023-09-06 23:55:42 +03:00
Shahriar Heidrich
9f0c0a46f0
gh-107732: Mention dir support in importlib.resources docs ( #107734 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-06 20:53:32 +00:00