Alex Waygood
cf2054059c
gh-112414: Add additional unit tests for calling repr()
on a namespace package ( #112475 )
...
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2023-11-28 00:09:59 +00:00
Tian Gao
b90a5cf11c
gh-99367: Do not mangle sys.path[0] in pdb if safe_path is set ( #111762 )
...
Co-authored-by: Christian Walther <cwalther@users.noreply.github.com>
2023-11-27 23:11:40 +00:00
apaz
8f71b349de
gh-112217: Add check to call result for do_raise()
where cause is a type. ( #112216 )
2023-11-27 21:13:27 +00:00
Serhiy Storchaka
4dcfd02bed
gh-68166: Add support of "vsapi" in ttk.Style.element_create() (GH-111393)
2023-11-27 20:57:33 +02:00
Pablo Galindo Salgado
45d648597b
gh-112387: Fix error positions for decoded strings with backwards tokenize errors ( #112409 )
...
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
2023-11-27 18:37:48 +00:00
Pablo Galindo Salgado
2c8b191742
gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors ( #112410 )
...
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
2023-11-27 18:36:11 +00:00
Jacob Walls
99a73c3465
gh-76912: Raise OSError from any failure in getpass.getuser() ( #29739 )
...
* bpo-32731: Raise OSError from any failure in getpass.getuser()
Previously, if the username was not set in certain environment variables, ImportError escaped on Windows systems, and it was possible for KeyError to escape on other systems if getpwuid() failed.
2023-11-27 10:05:55 -08:00
Serhiy Storchaka
4eea1e8236
gh-112438: Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse (gh-112439)
2023-11-27 18:32:55 +01:00
Zackery Spytz
812360fddd
gh-84443: SSLSocket.recv_into() now support buffer protocol with itemsize != 1 (GH-20310)
...
It is also no longer use __len__().
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-11-27 19:15:39 +02:00
Alex Waygood
22e411e1d1
gh-111874: Call __set_name__
on objects that define the method inside a typing.NamedTuple
class dictionary as part of the creation of that class ( #111876 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-11-27 16:34:44 +00:00
Nikita Sobolev
7ac49e74c3
gh-111147: Fix test_set_of_sets_reprs
in test_pprint
(GH-111148)
...
Make it stable and not depending on implementation details.
2023-11-27 12:01:26 +02:00
Alex Waygood
0622839cfe
gh-112414: Fix AttributeError
when calling repr()
on a namespace package imported with a custom loader ( #112425 )
2023-11-27 08:19:29 +00:00
Grant Ramsay
e954ac7205
gh-63284: Add support for TLS-PSK (pre-shared key) to the ssl module ( #103181 )
...
Add support for TLS-PSK (pre-shared key) to the ssl module.
---------
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-11-27 04:01:44 +00:00
Irit Katriel
fb202af447
gh-99606: Make code generated for an empty f-string identical to that of a normal empty string ( #112407 )
2023-11-26 17:13:57 +00:00
Alex Waygood
418d585feb
gh-112405: Optimise pathlib.Path.relative_to
( #112406 )
2023-11-26 15:56:03 +00:00
Mark Dickinson
9fe60340d7
gh-112358: Fix Python 3.12 regression with subclassing struct.Struct. ( #112424 )
...
Revert commit c8c0afc713
(PR #94532 ),
which moved `struct.Struct` initialisation from `Struct.__init__` to `Struct.__new__`.
This caused issues with code in the wild that subclasses `struct.Struct`.
2023-11-26 14:29:52 +00:00
Barney Gale
bbb4367b55
GH-77621: Delay some imports from pathlib ( #112244 )
...
Import `contextlib`, `glob` and `re` only as required.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-25 17:41:05 +00:00
Irit Katriel
fbb9027a03
gh-94722: fix DocTest.__eq__ for case of no line number on one side ( #112385 )
2023-11-25 17:23:43 +00:00
Barney Gale
19a1fc1b3d
GH-112361: Speed up pathlib by removing some temporary objects. ( #112362 )
...
Construct only one new list object (using `list.copy()`) when creating a
new path object with a modified tail. This slightly speeds up
`with_name()` and `with_suffix()`
2023-11-25 17:19:38 +00:00
Irit Katriel
9eb3b35dd7
gh-112355: fix calculation of jump target of ENTER_EXECUTOR in dis ( #112377 )
2023-11-24 18:13:25 +00:00
Randolf Scholz
e9d1360c9a
gh-112345: typing.Protocol
: Let failed subclasscheck show non-method members ( #112344 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-24 09:46:08 +00:00
Tian Gao
dc0adb44d8
Add extra tests for random.binomialvariate
(gh-112325)
2023-11-23 12:31:03 -06:00
Irit Katriel
89ddea4886
gh-112137: change dis output to show no-lineno as -- instead of None ( #112335 )
2023-11-23 14:34:27 +00:00
Eric Snow
9e56eedd01
gh-76785: Return an "excinfo" Object From Interpreter.run() (gh-111573)
2023-11-23 00:55:00 +00:00
Nikita Sobolev
14e539f097
gh-111809: Fix test_deep_repr
from test_userdict
on WASI (GH-112229)
2023-11-22 14:55:25 -08:00
Irit Katriel
10e1a0c916
gh-112137: change dis output to display labels instead of offsets ( #112138 )
2023-11-22 22:36:55 +00:00
Eric Snow
790db85c77
gh-76785: Add _PyType_GetModuleName() to the Internal C-API (gh-112323)
...
The new function corresponds to the existing (public) PyType_GetName() and PyType_GetQualName().
2023-11-22 15:03:33 -07:00
Eric Snow
5c3a129ecf
gh-76785: Clean up the Failure-Related _xxsubinterpreters Tests (gh-112322)
2023-11-22 14:48:45 -07:00
Thomas Wouters
118522b972
Merge branch 'main' of https://github.com/python/cpython
2023-11-22 22:27:46 +01:00
Mark Shannon
1619f4350e
GH-111485: Sort cases in the case generator output (GH-112315)
2023-11-22 15:19:50 +00:00
Thomas Wouters
9c4347ef8b
Python 3.13.0a2
2023-11-22 12:20:24 +01:00
Donghee Na
4fa376b005
gh-111863: Rename term Py_NOGIL to Py_GIL_DISABLED in sysconfig (gh-112307)
2023-11-22 10:32:43 +09:00
Junya Okabe
9d70831cb7
gh-110745: add a newline argument to pathlib.Path.read_text ( #110880 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2023-11-21 22:32:38 +00:00
James Turk
e1540ae74d
gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253)
2023-11-21 20:48:53 +05:30
Liu, An-Chi
44aa603d59
gh-57879: Increase test coverage for pstats.py (gh-111447)
2023-11-21 22:32:09 +09:00
Guido van Rossum
1995955173
gh-106529: Make FOR_ITER a viable uop ( #112134 )
...
This uses the new mechanism whereby certain uops
are replaced by others during translation,
using the `_PyUop_Replacements` table.
We further special-case the `_FOR_ITER_TIER_TWO` uop
to update the deoptimization target to point
just past the corresponding `END_FOR` opcode.
Two tiny code cleanups are also part of this PR.
2023-11-20 10:08:53 -08:00
Pablo Galindo Salgado
d59feb5dbe
gh-112243: Don't include comments in f-string debug expressions ( #112284 )
2023-11-20 15:18:24 +00:00
Hugo van Kemenade
3b3ec0d77f
gh-111863: Rename Py_NOGIL
to Py_GIL_DISABLED
( #111864 )
...
Rename Py_NOGIL to Py_GIL_DISABLED
2023-11-20 15:52:00 +02:00
Crowthebird
1c8f912ebd
bpo-45759: Better error messages for non-matching 'elif'/'else' statements ( #29513 )
2023-11-20 13:27:53 +00:00
Michael
ce1096f974
gh-73561: Omit interface scope from IPv6 when used as Host header ( #93324 )
...
Omit the `@interface_scope` from an IPv6 address when used as Host header by `http.client`.
---------
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC]
2023-11-19 22:37:13 +00:00
Nikita Sobolev
f8129146ef
gh-112266: Remove (if defined)
part from __dict__
and __weakref__
docstrings ( #112268 )
2023-11-19 18:30:07 +00:00
Terry Jan Reedy
14fd86a59d
IDLE: Fix test_debugger bug and buildbot failures ( #112258 )
...
Missing "requires('gui')" causes Tk() to fail when no gui.
This caused CI Hypothesis test to fail, but I did not understand
the its error message. Then buildbots failed.
IdbTest failed on draft Bdb replacement because so different.
Simplified version works on old and new.
2023-11-19 06:39:26 +00:00
Anthony Shaw
adedcfa06b
gh-79871: IDLE - Fix and test debugger module ( #11451 )
...
Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes.
Expand test_debugger coverage from 19% to 66%.
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-11-18 23:20:38 -05:00
DPR
18c6929469
gh-112186: Improve test case test_loop_is_closed_resource_warnings
( #112187 )
2023-11-19 03:21:34 +00:00
Donghee Na
e52cc80f7f
gh-112213: Add @critical_section target directive to Argument Clinic (gh-112232)
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-19 08:05:49 +09:00
Barney Gale
607b5e30c6
GH-110109: Test pure functionality of pathlib.Path
user subclasses ( #112242 )
...
Add `PurePathTest` as a superclass of `PathTest`, and therefore also
`PathSubclassTest`. This adds coverage of pure functionality in user
subclasses of `pathlib.Path`.
Remove `PosixPathAsPureTest` and `WindowsPathAsPureTest`, as they
now duplicate `PosixPathTest` and `WindowsPathTest`.
This makes the MROs of test unit classes match the MROs of pathlib
classes.
2023-11-18 17:06:10 +00:00
Barney Gale
9c7c8bacc1
GH-110109: Fix misplaced tests for pathlib.WindowsPath.owner()
and group()
( #112239 )
...
Move test methods from `WindowsPathAsPureTest` to `WindowsPathTest` unit.
The former test unit is intended to exercise only pure path functionality.
2023-11-18 15:42:07 +00:00
Nikita Sobolev
43b1c33204
gh-111810: Fix test_repr_deep
from test_userlist
on WASI ( #112197 )
...
Co-authored-by: Brett Cannon <brett@python.org>
2023-11-17 16:08:23 -08:00
Brett Cannon
f489ace9e7
GH-111808: Make the default value for test.support.infinite_recursion()
conditional on compiler optimizations (GH-112223)
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-11-17 15:52:11 -08:00
Nikita Sobolev
949b2cc6ea
gh-112194: Convert more examples to doctests in typing.py
( #112195 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-17 17:56:31 +00:00