Eric Snow
b511d3512b
GH-100997: Implement Multi-Phase Init for the _testinternalcapi Module (gh-100998)
...
_testinternalcapi is an internal module used for testing.
https://github.com/python/cpython/issues/100997
2023-01-12 13:42:03 -07:00
Barney Gale
005e69403d
gh-96290: Support partial/invalid UNC drives in ntpath.normpath() and splitdrive() (GH-100351)
...
This brings the Python implementation of `ntpath.normpath()` in line with the C implementation added in 99fcf15
Co-authored-by: Eryk Sun <eryksun@gmail.com>
2023-01-12 19:24:57 +00:00
Matthieu Dartiailh
eecd422d1b
gh-96461: Improve docs for bytecode instructions (GH-96462)
...
* Clarify the meaning of the oparg for CACHE and COPY opcode in dis doc
* Use STACK to describe stack operation in analogy with a Python list
* Remove (delta) from BEFORE_WITH since BEFORE_WITH does not take an argument
* Fix the description of the stack impact of multiple opcodes
2023-01-12 18:23:50 +00:00
Neil Schemenauer
c549fcccbb
GH-81381: Add longer comment _PyType_AllocNoTrack() (GH-100954)
...
The details on the "nitems+1" expression is a bit subtle so add a longer
comment about it.
2023-01-12 10:03:50 -08:00
Noam Cohen
2161bbf243
Fix typo in `enum` module documentation ( #100992 )
2023-01-12 21:10:29 +05:30
ram vikram singh
d9dff4c8b5
GH-100894: Updated the doc for `sys.winver` to clarify its usual contents (GH-100913)
2023-01-12 00:11:12 +00:00
Michał Górny
02a72f080d
gh-98636: Fix detecting gdbm_compat for _dbm module ( #98643 )
...
Fix the gdbm_compat library detection logic to actually check for
-lgdbm_compat independently of the ndbm detection.
This fixes the build failure with `--with-dbmliborder=gdbm`,
and implicit fallback to ndbm with the default value.
2023-01-11 22:46:28 +01:00
Carlton Gibson
07a87f74fa
gh-94912: Adjusted check for non-standard coroutine function marker. ( #100935 )
...
The initial implementation did not correctly identify explicitly
marked class instances.
Follow up to 532aa4e4e0
2023-01-11 13:17:26 -08:00
Mark Shannon
6e4e14d98f
GH-100923: Embed jump mask in `COMPARE_OP` oparg (GH-100924)
2023-01-11 20:40:43 +00:00
th1722
61f12b8ff7
Ensure some build files include a newline at to avoid warnings (GH-100946)
2023-01-11 17:28:57 +00:00
Steve Dower
5ff029f7a3
Skip py.exe launcher tests in full layout CI test (GH-100948)
...
These tests become flaky when py.exe exists on the test machine but isn't the one that was just built. They also don't provide any useful information for this scenario, so easiest to just skip them.
2023-01-11 17:25:46 +00:00
Nikita Sobolev
729ab9b622
gh-100871: Improve `copy` module tests (GH-100872)
...
CC @AlexWaygood as the reviewer of https://github.com/python/cpython/pull/100818
Automerge-Triggered-By: GH:AlexWaygood
2023-01-11 09:14:41 -08:00
Kumar Aditya
762745a124
GH-100892: Fix race in clearing `threading.local` ( #100922 )
2023-01-11 16:03:31 +05:30
Mariusz Felisiak
847d7708ba
gh-98763: Prefer "python" over "python3" for command line examples in docs. ( #98761 )
2023-01-11 15:35:41 +05:30
Nikita Sobolev
8795ad1bd0
gh-100931: Test all `pickle` protocols in `test_slice` ( #100932 )
2023-01-11 09:43:45 +00:00
Thomas Wouters
8dd2766d99
Post 3.12.0a4
2023-01-10 17:40:11 +01:00
Thomas Wouters
3d5d3f7af6
Python 3.12.0a4
2023-01-10 13:09:15 +01:00
Brandt Bucher
f07daaf4f7
GH-100117: Make `co_lines` more efficient (GH-100447)
2023-01-10 10:56:53 +00:00
Yao-Ching Huang
b2f7b2ef0b
gh-100916: Convert argument to appropriate type (GH-100917)
2023-01-10 10:17:57 +00:00
Semen Zhydenko
35650f2538
Fix typos in Doc folder ( #100880 )
2023-01-10 11:04:06 +02:00
Ned Deily
57a5259a43
gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)
2023-01-10 00:10:31 -05:00
Ned Deily
be23a20242
gh-100893: update bpo reference in Mac README (GH-100905)
2023-01-09 22:37:10 -05:00
Guido van Rossum
3f3c78e32f
GH-98831: Refactor instr format code and change to enum ( #100895 )
2023-01-09 15:53:01 -08:00
Steve Dower
d7ab7149f8
gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100901)
2023-01-09 23:50:59 +00:00
Ryan Ozawa
e098137cd3
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
2023-01-09 21:43:09 +00:00
Brandt Bucher
61762b9387
GH-100126: Skip incomplete frames in more places (GH-100613)
2023-01-09 12:20:04 -08:00
Nikita Sobolev
2e80c2a976
gh-100882: Improve `test_pickling` case in `test_ast.py` ( #100883 )
2023-01-09 19:20:25 +00:00
C.A.M. Gerlach
f08209874e
gh-99191: Use correct check for MSVC C++ version support in _wmimodule.cpp (GH-100381)
2023-01-09 17:48:24 +00:00
Nikita Sobolev
36f2329367
gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning in `mathmodule.c` ( #100881 )
2023-01-09 21:21:24 +05:30
dgelessus
837ba05267
GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback ( #13364 )
2023-01-09 15:43:04 +05:30
Chris Withers
4e544eafcb
fix up mock tests coverage ( #100874 )
2023-01-09 10:08:56 +00:00
Carl Meyer
0cd597fef1
gh-100764: add `pycore_frame.h` to PYTHON_HEADERS and Windows build files( #100765 )
2023-01-09 14:35:56 +05:30
dsentinel
7a50d6b5b0
GH-100813: Add `socket.IP_PKTINFO` constant ( #10294 )
2023-01-09 14:30:40 +05:30
Ned Deily
e47b13934b
Update copyright year in README (GH-100863)
...
Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com>
2023-01-08 21:53:56 -05:00
Nikita Sobolev
bc0a686f82
gh-87447: Fix walrus comprehension rebind checking ( #100581 )
...
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-08 15:51:29 -07:00
Ned Deily
8d69828092
Update additional copyright years to 2023. (GH-100859)
2023-01-08 17:05:28 -05:00
Raymond Hettinger
9a68ff12c3
GH-100805: Support numpy.array() in random.choice(). (GH-100830)
2023-01-08 13:40:35 -06:00
Mark Dickinson
87d3bd0e02
gh-100833: Remove 'volatile' qualifiers in fsum algorithm ( #100845 )
...
This PR removes the `volatile` qualifier on various intermediate quantities
in the `math.fsum` implementation, and updates the notes preceding the
algorithm accordingly (as well as fixing some of the exsting notes). See
the linked issue #100833 for discussion.
2023-01-08 19:40:15 +00:00
Raymond Hettinger
b139bcd892
GH-100485: Tweaks to sumprod() (GH-100857)
2023-01-08 13:38:24 -06:00
Benjamin Peterson
11f99323c2
Update copyright years to 2023. (gh-100848)
2023-01-08 09:13:25 -06:00
Nnarol
0741da8d28
GH-90829: Fix empty iterable error message in min/max ( #31181 )
2023-01-08 19:21:20 +05:30
Nikita Sobolev
b034fd3e59
gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" ( #100745 )
...
* gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)"
This reverts commit 7c83eaa536
.
2023-01-08 18:24:40 +05:30
Shantanu
53455a319f
gh-100783: fix os.path.join documentation ( #100811 )
...
- Use "drive", not "drive letter", because of UNC paths
- Previous components are not thrown away from relative drive letters
- Use "segment" instead of "component" for consistency with pathlib
- Other miscellaneous improvements
2023-01-08 00:51:30 -08:00
Sergey B Kirpichev
909982e82a
gh-91851: Micro optimizations for arithmetic between Fractions ( #25518 )
...
Adapted from
https://github.com/python/cpython/pull/24779/commits/046c84e8f9
This makes arithmetic between Fractions with small components
just as fast as before python/cpython#24779 , at some expense of
mixed arithmetic (e.g. Fraction + int).
2023-01-08 00:34:20 -08:00
busywhitespace
6d3bc4a795
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns ( #100825 )
2023-01-08 13:37:16 +05:30
Shantanu
a2141882f2
gh-100776: Fix misleading default value in help(input) ( #100788 )
2023-01-08 13:27:41 +05:30
Raymond Hettinger
df3851fe4a
GH-100485: Convert from Fast2Sum to 2Sum (GH-100836)
2023-01-07 21:37:08 -06:00
Nikita Sobolev
951303fd85
gh-100815: Normalize `types` module usage in `copy` module ( #100816 )
2023-01-07 21:29:53 +00:00
Nikita Sobolev
6746135b07
gh-100792: Make `email.message.Message.__contains__` twice as fast ( #100793 )
2023-01-07 13:26:05 -08:00
Raymond Hettinger
47b9f83a83
GH-100485: Add math.sumprod() (GH-100677)
2023-01-07 12:46:35 -06:00