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
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
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
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
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
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
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
nabin2004
6f8411cfd6
gh-108857: improve markup in inspect.Signature.replace() docs ( #108862 )
2023-09-05 17:27:59 -07:00
wim glenn
9bf350b066
gh-107755: Document the correct default value of slice step (GH-107756)
...
Document the correct default value of slice step.
2023-09-05 21:22:27 +02:00
Nikita Sobolev
ad1d6a1c20
gh-108903: Remove unneeded lambda
s from asyncio
(GH-108904)
2023-09-05 18:11:12 +03:00
Mark Shannon
8b515f60ee
GH-103082: Document PEP-669: Low Impact Monitoring for CPython (GH-107772)
2023-09-05 12:35:52 +01:00
Tian Gao
6304d983a0
gh-108463: Make expressions/statements work as expected in pdb ( #108464 )
2023-09-04 21:44:40 +00:00
Raymond Hettinger
f373c6b948
gh-107208: Fix iter_index() recipe to not swallow exceptions (gh-108835)
...
gh-107208: iter_index now supports "stop" and no longer swallows ValueError
2023-09-02 22:25:13 -05:00
Victor Stinner
4f9b706c6f
gh-108794: doctest counts skipped tests ( #108795 )
...
* Add 'skipped' attribute to TestResults.
* Add 'skips' attribute to DocTestRunner.
* Rename private DocTestRunner._name2ft attribute
to DocTestRunner._stats.
* Use f-string for string formatting.
* Add some tests.
* Document DocTestRunner attributes and its API for statistics.
* Document TestResults class.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-02 16:42:07 +02:00
Nikita Sobolev
5141b1ebe0
gh-101100: Fix sphinx warnings in unittest.mock-examples.rst
( #108810 )
2023-09-02 13:05:44 +01:00
Nikita Sobolev
dd05c2054f
Fix typo in uuid.rst
( #108809 )
2023-09-02 10:08:46 +00:00
Nikita Sobolev
21da4980f5
gh-101100: Fix sphinx warnings in uuid.rst
( #108805 )
...
* gh-101100: Fix sphinx warnings in `uuid.rst`
* Use anchors
2023-09-02 09:32:19 +00:00
TATHAGATA ROY
8f9ea43ee8
gh-105563: reference DateType in datetime's documentation ( #105946 )
2023-09-01 13:36:24 -07:00