Yang Hau
707c37e373
Fix typos in variable names, function names, and comments (GH-101868)
2023-12-01 09:37:40 +00:00
Terry Jan Reedy
e44f1940bd
gh-66819: More IDLE htest updates ( #112574 )
...
Revise htest.py docstring and move 2 specs to alphabetical position.
2023-12-01 07:02:31 +00:00
Alex Waygood
674c288b1c
gh-109413: Run mypy on libregrtest in CI ( #112558 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-30 23:00:14 +00:00
Brett Cannon
6d5e0dc0e3
Clarify a comment for test.support.Py_C_RECURSION_LIMIT to point out where a value came from but that it doesn't need to stay in sync ( #112224 )
2023-11-30 13:38:10 -08:00
Serhiy Storchaka
2223899adc
gh-104231: Add more tests for str(), repr(), ascii(), and bytes() (GH-112551)
2023-11-30 17:22:04 +02:00
Irit Katriel
07ebd46f9e
gh-112519: Make it possible to specify instruction flags for pseudo instructions in bytecodes.c ( #112520 )
2023-11-30 11:03:30 +00:00
Donghee Na
7eeea13403
gh-112205: Support @getter annotation from AC (gh-112396)
2023-11-30 19:40:53 +09:00
Terry Jan Reedy
81261fa67f
IDLE: fix config_key htest ( #112545 )
...
Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested.
2023-11-30 07:08:44 +00:00
Jelle Zijlstra
d4a6229afe
gh-104003: Implement PEP 702 ( #104004 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-29 09:38:29 -08:00
Jelle Zijlstra
4038869423
gh-112509: Fix keys being present in both required_keys and optional_keys in TypedDict ( #112512 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-29 09:36:48 -08:00
Serhiy Storchaka
e0449b9a7f
Add more C API tests (GH-112522)
...
Add tests for PyObject_Str(), PyObject_Repr(), PyObject_ASCII() and
PyObject_Bytes().
2023-11-29 17:37:05 +02:00
Ethan Furman
f9e6ce0395
[Enum] update class creation for RuntimeError changes (GH-111815)
2023-11-28 20:40:12 -08:00
Grant Ramsay
e413daf5f6
gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support ( #112491 )
...
If OpenSSL was built without PSK support, the python TLS-PSK
methods will raise "NotImplementedError" if called.
Add a constant "ssl.HAS_PSK" to check if TLS-PSK is supported
2023-11-28 16:15:39 -08:00
James Morris
a194938f33
gh-112431: Unconditionally call hash -r (GH-112432)
...
The `activate` script calls `hash -r` in two places to make sure the shell picks
up the environment changes the script makes. Before that, it checks to
see if the shell running the script is bash or zsh.
`hash -r` is specified by POSIX and is not exclusive to bash and zsh.
This guard prevents the script from calling `hash -r` in other
`#!/bin/sh`-compatible shells like dash.
2023-11-28 14:54:59 +05:30
Sergey B Kirpichev
f14d741daa
gh-109802: Increase test coverage for complexobject.c (GH-112452)
2023-11-28 10:18:33 +02:00
Irit Katriel
2c68011780
gh-112332: Deprecate TracebackException.exc_type, add exc_type_str. ( #112333 )
2023-11-28 08:03:25 +00:00
Tian Gao
2df26d8348
gh-112105: Make completer delims work on libedit (gh-112106)
2023-11-28 06:23:23 +00:00
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