Géry Ogam
46a116c1c9
bpo-38738: Fix formatting of True and False in the threading documentation (GH-31678)
...
* Fix formatting of True and False in the threading documentation
* Update threading.rst
2022-03-04 12:13:09 -08:00
slateny
cedd2473a9
bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)
2022-03-04 12:35:52 -05:00
Brandt Bucher
586b24d3be
bpo-46841: Fix error message hacks in GET_AWAITABLE
(GH-31664)
2022-03-04 12:41:17 +00:00
vidhya
10117f1d8c
bpo-6634: [doc] clarify that sys.exit() does not always exit the interpreter (GH-31639)
2022-03-03 14:23:47 +00:00
slateny
a8c87a239e
bpo-21910: Clarify docs for codecs writelines method (GH-31245)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-02 17:21:41 -08:00
slateny
3257d49d23
bpo-45492: Corrected documentation for co_names in inspect library doc (GH-31456)
2022-03-02 19:03:38 +00:00
Nikita Sobolev
20a1c8ee4b
bpo-46195: Do not add Optional
in get_type_hints
(GH-30304)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-01 21:29:46 -08:00
Kumar Aditya
41ddcd3f40
bpo-44011: Document ssl_shutdown_timeout added by revisited asyncio SSL implementation (GH-31597)
2022-02-26 15:06:43 +02:00
Charlie Zhao
e466faa9df
bpo-45735: Promise the long-time truth that args=list
works (GH-30982)
...
For threads, and for multiprocessing, it's always been the case that ``args=list`` works fine when passed to ``Process()`` or ``Thread()``, and such code is common in the wild. But, according to the docs, only a tuple can be used. This brings the docs into synch with reality.
Doc changes by Charlie Zhao.
Co-authored-by: Tim Peters <tim.peters@gmail.com>
2022-02-25 22:17:13 -06:00
Victor Stinner
5ab745fc51
bpo-46852: Remove the float.__set_format__() method (GH-31585)
...
Remove the undocumented private float.__set_format__() method,
previously known as float.__set_format__() in Python 3.7. Its
docstring said: "You probably don't want to use this function. It
exists mainly to be used in Python's test suite."
2022-02-26 00:53:27 +01:00
Kumar Aditya
dd69f73421
bpo-26897: Clarify Popen stdin, stdout, stderr file object docs (GH-30231)
2022-02-25 08:41:19 -08:00
Raymond Hettinger
26aba295a9
Update dict/OrderedDict differences with code equivalents. (GH-31563)
2022-02-25 08:49:53 -06:00
Brandt Bucher
0f41aac109
bpo-46841: Use *inline* caching for BINARY_OP
(GH-31543)
2022-02-25 12:11:34 +00:00
slateny
53ecf9e08d
bpo-34429: Noted TemporaryFile behavior on non-Posix/non-Cygwin systems (GH-31547)
2022-02-25 11:07:52 +00:00
Victor Stinner
4fccf91073
bpo-46659: Enhance LocaleTextCalendar for C locale (GH-31214)
...
If the LC_TIME locale is "C", use the user preferred locale.
2022-02-24 14:29:08 +01:00
Victor Stinner
b899126094
bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206)
...
The locale.getdefaultlocale() function is deprecated and will be
removed in Python 3.13. Use locale.setlocale(),
locale.getpreferredencoding(False) and locale.getlocale() functions
instead.
2022-02-22 22:06:43 +01:00
vidhya
bba8008f99
bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE (GH-31413)
2022-02-22 18:06:41 +00:00
Andrew Svetlov
4140bcb1cd
bpo-45390: Propagate CancelledError's message from cancelled task to its awaiter (GH-31383)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-02-21 22:59:04 +02:00
Mark Shannon
59585d6b2e
bpo-46329: Streamline calling sequence a bit. (GH-31465)
...
* Move handling of bound-methods to PRECALL.
* Remove call_shape.postcall_shrink
* Remove call_shape.callable
* Remove call_shape.callable. Change CALL oparg to match PRECALL oparg.
* Move KW_NAMES before PRECALL.
* Update opcode docs in dis.rst
2022-02-21 18:26:47 +00:00
Charles Brunet
99331fcf17
Counter doc mentions three methods, but lists four (GH-30706)
...
Was probably caused by the addition of the `total()` method
2022-02-18 18:23:53 -08:00
Nikita Sobolev
395029b0bd
bpo-46571: improve typing.no_type_check
to skip foreign objects (GH-31042)
...
There are several changes:
1. We now don't explicitly check for any base / sub types, because new name check covers it
2. I've also checked that `no_type_check` do not modify foreign functions. It was the same as with `type`s
3. I've also covered `except TypeError` in `no_type_check` with a simple test case, it was not covered at all
4. I also felt like adding `lambda` test is a good idea: because `lambda` is a bit of both in class bodies: a function and an assignment
<!-- issue-number: [bpo-46571](https://bugs.python.org/issue46571 ) -->
https://bugs.python.org/issue46571
<!-- /issue-number -->
2022-02-18 17:53:29 -08:00
Jörn Heissler
f80a97b492
[docs] Correct typos in SSLContext.sni_callback (GH-30623)
...
Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de>
2022-02-18 17:49:04 -08:00
Serhiy Storchaka
2923d87ca2
bpo-46777: Fix incorrect use of directives in asyncio documentation (GH-31388)
2022-02-18 10:58:48 +02:00
Géry Ogam
2945f5a7c5
Update html.parser.rst (GH-30678)
...
This PR for the documentation of the [html.parser](https://docs.python.org/3/library/html.parser.html ) module will
- fix a terminology mistake (‘start of a tag’ -> ‘start tag of an element’);
- mention the parameter names of the `HTMLParser.handle_*` methods where missing.
2022-02-17 04:20:40 -08:00
97littleleaf11
de6043e596
bpo-46066: Deprecate kwargs syntax for TypedDict definitions (GH-31126)
...
Closes python/typing#981
https://bugs.python.org/issue46066
2022-02-16 19:26:07 -08:00
Hakan Çelik
562c13f573
bpo-29418: Implement inspect.ismethodwrapper and fix inspect.isroutine for cases where methodwrapper is given (GH-19261)
...
Automerge-Triggered-By: GH:isidentical
2022-02-16 04:46:20 -08:00
Zackery Spytz
08ec80113b
bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)
2022-02-15 17:12:15 -06:00
David Gilbertson
04215a4272
Update the OMG link (GH-30383)
2022-02-14 13:49:11 -08:00
Rafael Fontenelle
6b9f27dd0b
doc: use colon for all color's rangs (GH-28998)
2022-02-14 11:46:40 -08:00
180909
5d53cf30f9
bpo-38619: Update the documentation for UUID.hex (GH-29830)
...
Explicitly state that it is lowercase.
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-02-14 10:58:22 -08:00
David Gilbertson
4e4e7c2684
Update __main__.rst (GH-30896)
...
The reference to `venv` appears in the paragraph below, instead of above.
Fixed the documentation.
2022-02-14 10:53:16 -08:00
Zackery Spytz
96084f4256
bpo-46747: Add missing key parameters in the bisect docs (GH-31323)
...
Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs.
2022-02-14 11:16:49 -05:00
John Belmonte
1d6ce67c29
Corrections to format precision description. (GH-31291)
...
* `precision` field is a decimal integer
* clarify that stated limitations are on presentation type
rather than input value type. Especially misleading is
"precision is not allowed for integer values", since integer
value input to a format like `.1f` is fine.
* regarding max field size, replace "non-number" with "string",
which is the only non-numeric presentation type
Automerge-Triggered-By: GH:ericvsmith
2022-02-13 16:00:32 -08:00
Meer Suri
9d9cfd61ec
bpo-46586: Fix documentation links (GH-31216)
...
* Fix enum.property documentation link
2022-02-11 20:21:38 -08:00
Alex Waygood
e0bc8ee945
bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281)
...
Remove pathlib classes from the list in stdtypes.rst of classes
that can be parameterized at runtime.
2022-02-11 22:39:37 +02:00
Géry Ogam
4f9386661d
Fix the signature of multiprocessing.set_executable (GH-31276)
...
Automerge-Triggered-By: GH:merwok
2022-02-11 06:42:54 -08:00
Henry Schreiner
5a3f97291e
bpo-43532: add version added to KW_ONLY (GH-31235)
...
Minor missing version note mentioned at the end of (and affected me independently before reading that note).
Automerge-Triggered-By: GH:ericvsmith
2022-02-09 12:56:10 -08:00
Jelle Zijlstra
243436f377
bpo-46475: Add typing.Never and typing.assert_never (GH-30842)
2022-02-08 10:50:26 -08:00
Victor Stinner
7a0486eaa9
bpo-46659: calendar uses locale.getlocale() (GH-31166)
...
The calendar.LocaleTextCalendar and calendar.LocaleHTMLCalendar
classes module now use locale.getlocale(), instead of using
locale.getdefaultlocale(), if no locale is specified.
2022-02-08 00:24:09 +01:00
James Hilton-Balfe
7ba1cc8049
bpo-46534: Implement PEP 673 Self in typing.py (GH-30924)
...
Co-authored-by: Pradeep Kumar Srinivasan <gohanpra@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-02-07 12:47:48 -08:00
Hugo van Kemenade
6c4e44ef8a
bpo-23952: Document cgi module's maxlen variable (GH-30338)
2022-02-06 05:59:32 -08:00
andrei kulakov
fea7290a0e
bpo-31369: include `RegexFlag
in
re.__all__
` (GH-30279)
...
* added RegexFlag to re.__all__; added RegexFlag.NOFLAG
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-02-04 19:54:28 -08:00
Manish Kumar ⛄
ba650af7d6
Optimize images by IMGbot (GH-21348)
...
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2022-02-04 15:49:43 +09:00
Nikita Sobolev
734b1f119b
bpo-46569: [Enum] fix typo in StrEnum
docs (GH-31007)
2022-02-03 07:22:41 -08:00
Miro Hrončok
6baa98e538
bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" (GH-31098)
2022-02-03 07:48:13 -06:00
Zackery Spytz
b4bd1e1422
bpo-44977: Deprecate delegation of int to __trunc__ (GH-31031)
...
Calling int(a) when type(a) implements __trunc__ but not __int__
or __index__ now raises a DeprecationWarning.
2022-02-03 11:43:25 +02:00
Hugo van Kemenade
e8659b47de
bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952)
...
* Revert "bpo-45173 Remove configparser deprecations"
This reverts commit df2284bc41
.
* bpo-45173: Note these configparser deprecations will be removed in 3.12
2022-02-02 08:59:39 -08:00
Raymond Hettinger
06a491179f
Add recipe for subslices (GH-31028)
2022-02-01 22:18:52 -06:00
Raymond Hettinger
f77beacf01
Fix minor details in the Counter docs (GH-31029)
2022-02-01 22:18:11 -06:00
Jelle Zijlstra
abcc3d75f6
bpo-46414: Add typing.reveal_type ( #30646 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-02-01 18:48:55 -08:00