Stefan Pochmann
81bf10e4f2
gh-102105 Fix wording in filterfalse/quantify/filter (GH-102189)
2023-02-24 10:13:05 -06:00
Max Bachmann
e5e1c1fabd
Remove references to old Windows source files from internal documentation (GH-102216)
2023-02-24 14:53:50 +00:00
Max Bachmann
1fa38906f0
gh-102141: replace use of getpid on Windows with GetCurrentProcessId (GH-102142)
2023-02-24 12:38:21 +00:00
Yeojin Kim
347f7406df
gh-81652: Add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants (gh-102191)
2023-02-24 19:26:51 +09:00
Eclips4
9f3ecd1aa3
gh-102158: Add tests for `softkwlist` ( #102159 )
...
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-02-23 21:28:24 -05:00
Jacob Bower
0c857865e4
Fix deadlock on shutdown if test_current_{exception,frames} fails ( #102019 )
...
* Don't deadlock on shutdown if test_current_{exception,frames} fails
These tests spawn a thread that waits on a threading.Event. If the test fails any of its assertions, the Event won't be signaled and the thread will wait indefinitely, causing a deadlock when threading._shutdown() tries to join all outstanding threads.
Co-authored-by: Brett Simmers <bsimmers@meta.com>
* Add a news entry
* Fix whitespace
---------
Co-authored-by: Brett Simmers <bsimmers@meta.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2023-02-23 14:57:06 -08:00
Erlend E. Aasland
ccd98a3146
gh-101476: Add _PyType_GetModuleState (GH-101477)
...
For fast module state access from heap type methods.
2023-02-23 13:42:15 -08:00
Jonathan Protzenko
d43c2652d4
gh-99108: Followup fix for Modules/Setup (GH-102183)
...
Automerge-Triggered-By: GH:erlend-aasland
2023-02-23 09:23:57 -08:00
Erlend E. Aasland
efc985a714
gh-93649: Split exception tests from _testcapimodule.c (GH-102173)
...
Automerge-Triggered-By: GH:erlend-aasland
2023-02-23 07:03:13 -08:00
Erlend E. Aasland
e07b304bb0
gh-101981: Consolidate macOS configure steps in CI (GH-102131)
...
Automerge-Triggered-By: GH:erlend-aasland
2023-02-23 07:02:23 -08:00
Erlend E. Aasland
c3a178398c
gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py ( #102152 )
2023-02-23 15:09:51 +01:00
Zackery Spytz
665730d217
bpo-23224: Fix segfaults and multiple leaks in the lzma and bz2 modules (GH-7822)
...
lzma.LZMADecompressor and bz2.BZ2Decompressor objects caused
segfaults when their `__init__()` methods were not called.
lzma.LZMADecompressor, lzma.LZMACompressor, bz2.BZ2Compressor,
and bz2.BZ2Decompressor objects would leak locks and internal buffers
when their `__init__()` methods were called multiple times.
https://bugs.python.org/issue23224
2023-02-23 06:00:58 -08:00
Tanner Firl
9bba8035bd
Fix typo in `Py_GetPythonHome` signature ( #102168 )
2023-02-23 18:58:33 +05:30
Erlend E. Aasland
5b9573eed4
gh-101578: Fixup NEWS and add What's New entry for new exception APIs ( #102157 )
2023-02-23 13:19:21 +01:00
Mark Shannon
22b8d77b98
GH-100719: Remove redundant `gi_code` field from generator object. (GH-100749)
2023-02-23 10:19:01 +00:00
Irit Katriel
572223f9ce
Revert "bpo-46978: Correct docstrings for in-place builtin operators #31802 ) ( #102146 )
...
Revert "bpo-46978: Correct docstrings for in-place builtin operators (#31802 )"
This reverts commit 128379b8cd
.
2023-02-23 10:17:44 +00:00
Carl Meyer
056dfc71dc
gh-87634: remove locking from functools.cached_property (GH-101890)
...
Remove the undocumented locking capabilities of functools.cached_property.
2023-02-22 17:49:22 -08:00
Terry Jan Reedy
8f647477f0
Fix syntax error in struct doc example ( #102160 )
...
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
2023-02-22 18:55:03 -05:00
Jonathan Protzenko
fcadc7e405
gh-99108: Import MD5 and SHA1 from HACL* ( #102089 )
...
Replaces our fallback non-OpenSSL MD5 and SHA1 implementations with those from HACL* as we've already done with SHA2.
2023-02-22 13:18:43 -08:00
Owain Davies
96bf24380e
GH-101777: `queue.rst`: use 2 spaces after a period to be consistent. ( #102143 )
2023-02-22 14:21:38 -06:00
Sergey B Kirpichev
592f65fdb5
Few coverage nitpicks for the cmath module ( #102067 )
...
- partial tests for cosh/sinh overflows (L535 and L771). I doubt
both ||-ed conditions could be tested.
- removed inaccessible case in sqrt (L832): ax=ay=0 is handled
above (L823) because fabs() is exact. Also added test (checked
with mpmath and gmpy2) for second condition on that line.
- some trivial tests for isclose (cover all conditions on L1217-1218)
- add comment for uncovered L1018
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2023-02-22 19:10:01 +00:00
Mark Shannon
7c106a443f
GH-100982: Restrict `FOR_ITER_RANGE` to a single instruction to allow instrumentation. (GH-101985)
2023-02-22 11:11:57 +00:00
somebody
8d46c7ed5e
gh-102135: Update turtle docs to rename wikipedia demo to rosette ( #102137 )
2023-02-22 12:11:30 +02:00
Eli Schwartz
3ba7743b06
gh-99942: python.pc on android/cygwin should link to libpython per configure.ac (GH-100356)
...
In commit 254b309c80
a previous change to avoid linking to libpython was partially reverted for Android (and later Cygwin as well), to add back the link flags. This was applied to distutils and to python-config.sh, but not to python.pc.
Add it back to python.pc as well.
Automerge-Triggered-By: GH:gpshead
2023-02-21 17:21:24 -08:00
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