Hyunkyun Moon
d5c7954d0c
gh-95672 fix typo SkitTest to SkipTest (gh-102119)
...
Co-authored-by: HyunKyun Moon <hyunkyun.moon@linecorp.com>
2023-02-22 02:39:00 +09:00
Vo Hoang Long
0d4c7fcd4f
gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100)
...
Co-authored-by: Long Vo <long.vo@linecorp.com>
2023-02-22 00:14:41 +09:00
Irit Katriel
c2b85a95a5
gh-102008: simplify test_except_star by using sys.exception() instead of sys.exc_info() ( #102009 )
2023-02-21 15:11:31 +00:00
Owain Davies
7346a381be
gh-101903: Remove obsolete undefs for previously removed macros Py_EnterRecursiveCall and Py_LeaveRecursiveCall ( #101923 )
2023-02-21 11:58:47 +00:00
ram vikram singh
b40dd71241
gh-100556: Improve clarity of or
docs ( #100589 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-21 11:34:56 +01:00
Owain Davies
350ba7c07f
gh-101777: Make PriorityQueue
docs slightly clearer ( #102026 )
...
Adjust wording slightly, and use min(entries) instead of
sorted(list(entries))[0] as an example.
2023-02-21 11:24:33 +01:00
Owain Davies
0f7a972530
gh-101965: Fix usage of Py_EnterRecursiveCall return value in _bisectmodule.c (GH-101966)
...
Closes #101965
Automerge-Triggered-By: GH:erlend-aasland
2023-02-21 02:03:50 -08:00
Erlend E. Aasland
02d9f1504b
gh-101578: Amend exception docs ( #102057 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-21 09:15:49 +01:00
Gihwan Kim
6f25657b83
gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068)
2023-02-21 12:10:29 +09:00
Irit Katriel
022b44f254
gh-102056: Fix a few bugs in error handling of exception printing code ( #102078 )
2023-02-20 22:16:09 +00:00
Irit Katriel
4d3bc89a3f
gh-102011: use sys.exception() instead of sys.exc_info() in docs where possible ( #102012 )
2023-02-20 21:54:19 +00:00
Jason R. Coombs
36854bbb24
gh-101566: Sync with zipp 3.14. (GH-102018)
2023-02-20 13:01:58 -08:00
Filipe Laíns
84181c1404
GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589)
...
Automerge-Triggered-By: GH:FFY00
2023-02-20 11:21:10 -08:00
Tim Hatch
59e86caca8
gh-88233: zipfile: handle extras after a zip64 extra (GH-96161)
...
Previously, any data _after_ the zip64 extra would be removed.
With many new tests.
Fixes #88233
Automerge-Triggered-By: GH:jaraco
2023-02-20 09:07:03 -08:00
Dong-hee Na
ed01addb59
gh-101981: Apply HOMEBREW related environment variables (gh-102074)
2023-02-21 00:20:18 +09:00
Steve Dower
a99eb5cd99
gh-101907: Stop using _Py_OPCODE
and _Py_OPARG
macros (GH-101912)
...
* gh-101907: Removes use of non-standard C++ extension from Include/cpython/code.h
* Make cases_generator correct on Windows
2023-02-20 14:56:48 +00:00
Erlend E. Aasland
c00faf7943
gh-101819: Adapt _io types to heap types, batch 1 (GH-101949)
...
Adapt StringIO, TextIOWrapper, FileIO, Buffered*, and BytesIO types.
Automerge-Triggered-By: GH:erlend-aasland
2023-02-20 05:46:20 -08:00
Erlend E. Aasland
2713631041
gh-101981: Build macOS as recommended by the devguide (GH-102070)
...
Automerge-Triggered-By: GH:erlend-aasland
2023-02-20 05:07:25 -08:00
Mark Dickinson
b1b375e267
gh-97786: Fix compiler warnings in pytime.c ( #101826 )
...
Fixes compiler warnings in pytime.c.
2023-02-19 17:16:11 -08:00
Erlend E. Aasland
60bbed7f17
gh-101578: Amend PyErr_{Set,Get}RaisedException docs ( #101962 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-19 21:22:29 +01:00
Raymond Hettinger
3b264df470
Misc improvements to the float tutorial (GH-102052)
2023-02-19 13:21:37 -06:00
Mark Dickinson
b513c46d99
gh-85417: Clarify behaviour on branch cuts in cmath module ( #102046 )
...
This PR updates the cmath module documentation to reflect the reality that Python is almost always (and as far as I can tell, that "almost" can be omitted) running on a machine whose C double supports signed zeros.
* Removes misleading references to functions being continuous from above / below / the left / the right at branch cuts
* Expands the note on branch cuts at the top of the module documentation to explain the double-sided sign-of-zero-based behaviour
2023-02-19 19:15:44 +00:00
neuralstring
32df540635
gh-100425: Update tutorial docs related to sum() accuracy (FH-101854)
2023-02-19 10:39:03 -06:00
Owain Davies
71f614ef2a
Add missing 'is' to cmath.log()
docstring ( #102049 )
...
Fix missing 'is' in cmath.log() docstring
2023-02-19 15:00:59 +00:00
Jean-Christophe Amiel
9a07eff628
gh-100210: Correct the comment link for unescaping HTML ( #100212 )
...
gh-100210: correct the comment link for unescaping HTML
2023-02-19 11:18:12 +01:00
Jason R. Coombs
072935951f
gh-97930: Also include subdirectory in makefile. ( #102030 )
2023-02-18 21:32:50 -05:00
Patricio Paez
6aab56f3c2
gh-99735: Use required=True in argparse subparsers example ( #100927 )
2023-02-18 17:06:03 -08:00
Reza Rastak
36b670908b
Fix incorrectly documented attribute in csv docs ( #101250 )
2023-02-18 16:55:43 -08:00
Furkan Onder
61f1e67c6f
GH-84783: Make the slice object hashable (GH-101264)
2023-02-18 18:22:02 -06:00
Jason R. Coombs
5170caf305
gh-97930: Apply changes from importlib_resources 5.12. (GH-102010)
2023-02-18 16:29:22 -05:00
Nicko van Someren
128379b8cd
bpo-46978: Correct docstrings for in-place builtin operators ( #31802 )
2023-02-18 18:44:41 +00:00
Nikita Sobolev
af446bbb76
gh-101536: [docs] Improve attributes of urllib.error.HTTPError
( #101612 )
...
* gh-101536: [docs] Improve attributes of `urllib.error.HTTPError`
* Address review
2023-02-18 12:46:33 -03:00
Eclips4
89413bbccb
gh-101967: add a missing error check ( #101968 )
2023-02-18 00:52:23 +00:00
Owain Davies
7f1c721756
gh-101739: [Enum] update docs - default boundary for Flag is CONFORM (GH-101746)
2023-02-17 13:36:47 -08:00
Jan Gosmann
77d95c8373
gh-100226: Clarify StreamReader.read behavior ( #101807 )
2023-02-17 13:01:26 -08:00
Dustin Rodrigues
a1723caabf
gh-101992: update plistlib examples to be runnable ( #101994 )
...
* gh-101992: update plistlib examples to be runnable
* Update Doc/library/plistlib.rst
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-02-17 14:30:29 -05:00
Dong-hee Na
f482ade4c7
gh-101766: Fix refleak for _BlockingOnManager resources from test suite level (gh-101988)
2023-02-18 00:18:47 +09:00
Barney Gale
072011b3c3
gh-100809: Fix handling of drive-relative paths in pathlib.Path.absolute() (GH-100812)
...
Resolving the drive independently uses the OS API, which ensures it starts from the current directory on that drive.
2023-02-17 14:08:14 +00:00
Barney Gale
d401b20630
gh-101360: Fix anchor matching in pathlib.PureWindowsPath.match() (GH-101363)
...
Use `fnmatch` to match path and pattern anchors, just as we do for other
path parts. This allows patterns such as `'*:/Users/*'` to be matched.
2023-02-17 14:05:38 +00:00
Dong-hee Na
775f8819e3
gh-101766: Fix refleak for _BlockingOnManager resources (gh-101942)
2023-02-17 19:14:07 +09:00
Yeojin Kim
3c0a31cbfd
Docs: fix typos in PyFunction_WatchCallback docs and in 3.12 NEWS (GH-101980)
...
- possitibility => possibility
- disaallowed => disallowed
2023-02-17 00:47:02 -08:00
Oleg Iarygin
a3bb7fbe7e
gh-101973: Fix parameter reference for PyModule_FromDefAndSpec ( #101976 )
2023-02-17 09:43:07 +01:00
Eric Snow
984f8ab018
gh-101758: Fix Refleak-Related Failures in test_singlephase_variants (gh-101969)
...
gh-101891 is causing failures under `$> ./python -m test test_imp -R 3:3`. Furthermore, with that fixed, "test_singlephase_variants" is leaking references. This change addresses the first part, but skips the leaking tests until we can follow up with a fix.
https://github.com/python/cpython/issues/101758
2023-02-16 17:21:22 -07:00
Eric Snow
4d8959b73a
gh-101758: Add _PyState_AddModule() Back for the Stable ABI (gh-101956)
...
We're adding the function back, only for the stable ABI symbol and not as any form of API. I had removed it yesterday.
This undocumented "private" function was added with the implementation for PEP 3121 (3.0, 2007) for internal use and later moved out of the limited API (3.6, 2016) and then into the internal API (3.9, 2019). I removed it completely yesterday, including from the stable ABI manifest (where it was added because the symbol happened to be exported). It's unlikely that anyone is using _PyState_AddModule(), especially any stable ABI extensions built against 3.2-3.5, but we're playing it safe.
https://github.com/python/cpython/issues/101758
2023-02-16 14:05:31 -07:00
Kumar Aditya
a5024a261a
GH-96764: rewrite asyncio.wait_for
to use asyncio.timeout
( #98518 )
...
Changes `asyncio.wait_for` to use `asyncio.timeout` as its underlying implementation.
2023-02-17 00:18:21 +05:30
Eli Schwartz
226484e475
gh-99942: correct the pkg-config/python-config flags for cygwin/android
2023-02-16 17:57:59 +00:00
Eclips4
68bd8c5e2e
gh-101952: Fix possible segfault in BUILD_SET
opcode ( #101958 )
2023-02-16 09:46:43 -08:00
sblondon
924a3bfa28
gh-93573: Replace wrong example domains in configparser doc (GH-93574)
...
* Replace bitbucket.org domain by forge.example
* Update example to python.org
* Use explicitly invalid domain
topsecret.server.com domain is not controled by PSF. It's replaced by invalid topsecret.server.example domain. It follows RFC 2606, which advise .example as TLD for documentation.
2023-02-16 16:13:21 +01:00
Rayyan Ansari
739c026f44
gh-101881: Support (non-)blocking read/write functions on Windows pipes (GH-101882)
...
* fileutils: handle non-blocking pipe IO on Windows
Handle erroring operations on non-blocking pipes by reading the _doserrno code.
Limit writes on non-blocking pipes that are too large.
* Support blocking functions on Windows
Use the GetNamedPipeHandleState and SetNamedPipeHandleState Win32 API functions to add support for os.get_blocking and os.set_blocking.
2023-02-16 14:52:24 +00:00
Irit Katriel
36b139af63
gh-101951: use textwrap.dedent in compiler tests to make them more readable (GH-101950)
...
Fixes #101951 .
Automerge-Triggered-By: GH:iritkatriel
2023-02-16 04:31:59 -08:00