summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-114257: Ignore the FileNotFound error in ctypes.util._is_elf() (GH-114394)AN Long2024-01-221-0/+2
|
* gh-114083: apply optimization of LOAD_CONST instructions to the whole CFG ↵Irit Katriel2024-01-221-0/+1
| | | | before optimize_basic_block. (#114408)
* gh-75128: Ignore EADDRNOTAVAIL error in ↵Serhiy Storchaka2024-01-221-0/+2
| | | | | asyncio.BaseEventLoop.create_server() (GH-114420) Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* gh-114321: Expose more constants in the fcntl module (GH-114322)Serhiy Storchaka2024-01-221-0/+2
|
* gh-102512: Turn _DummyThread into _MainThread after os.fork() called from a ↵Serhiy Storchaka2024-01-221-0/+3
| | | | | | | | | | | | | | | | | foreign thread (GH-113261) Always set a _MainThread as a main thread after os.fork() is called from a thread started not by the threading module. A new _MainThread was already set as a new main thread after fork if threading.current_thread() was not called for a foreign thread before fork. Now, if it was called before fork, the implicitly created _DummyThread will be turned into _MainThread after fork. It fixes, in particularly, an incompatibility of _DummyThread with the threading shutdown logic which relies on the main thread having tstate_lock. Co-authored-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
* gh-113796: Add more validation checks in the csv.Dialect constructor (GH-113797)Serhiy Storchaka2024-01-221-0/+3
| | | ValueError is now raised if the same character is used in different roles.
* gh-114328: tty cbreak mode should not alter ICRNL (#114335)Gregory P. Smith2024-01-211-0/+4
| | | The terminal CR -> NL mapping setting should be inherited in cbreak mode as OSes do not specify altering it as part of their stty cbreak mode definition.
* gh-114281: Remove incorrect type hints from `asyncio.staggered` (#114282)Nikita Sobolev2024-01-201-0/+3
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-113225: Speed up `pathlib.Path.walk(top_down=False)` (#113693)Barney Gale2024-01-201-0/+2
| | | | | | | | | | | | | | Use `_make_child_entry()` rather than `_make_child_relpath()` to retrieve path objects for directories to visit. This saves the allocation of one path object per directory in user subclasses of `PathBase`, and avoids a second loop. This trick does not apply when walking top-down, because users can affect the walk by modifying *dirnames* in-place. A side effect of this change is that, in bottom-up mode, subdirectories of each directory are visited in reverse order, and that this order doesn't match that of the names in *dirnames*. I suspect this is fine as the order is arbitrary anyway.
* GH-79634: Accept path-like objects as pathlib glob patterns. (#114017)Barney Gale2024-01-201-0/+2
| | | | | | | | | Allow `os.PathLike` objects to be passed as patterns to `pathlib.Path.glob()` and `rglob()`. (It's already possible to use them in `PurePath.match()`) While we're in the area: - Allow empty glob patterns in `PathBase` (but not `Path`) - Speed up globbing in `PathBase` by generating paths with trailing slashes only as a final step, rather than for every intermediate directory. - Simplify and speed up handling of rare patterns involving both `**` and `..` segments.
* gh-114265: move line number propagation before cfg optimization, remove ↵Irit Katriel2024-01-191-0/+1
| | | | guarantee_lineno_for_exits (#114267)
* gh-114123: Migrate docstring from _csv to csv (#114124)Skip Montanaro2024-01-181-0/+7
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org>
* gh-114087: Speed up dataclasses._asdict_inner (#114088)keithasaurus2024-01-181-0/+1
|
* gh-114198: Rename dataclass __replace__ argument to 'self' (gh-114251)Phillip Schanely2024-01-181-0/+2
| | | | This change renames the dataclass __replace__ method's first argument name from 'obj' to 'self'.
* gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350)Christopher Chavez2024-01-181-0/+1
|
* gh-114050: Fix crash when more than two arguments are passed to int() ↵kcatss2024-01-181-0/+2
| | | | | (GH-114067) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)Terry Jan Reedy2024-01-181-0/+1
| | | | | Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'.
* gh-104522: Fix OSError raised when run a subprocess (#114195)Serhiy Storchaka2024-01-181-0/+3
| | | | | | | Only set filename to cwd if it was caused by failed chdir(cwd). _fork_exec() now returns "noexec:chdir" for failed chdir(cwd). Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
* gh-112984 Update Windows build and installer for free-threaded builds ↵Steve Dower2024-01-171-0/+1
| | | | (GH-113129)
* gh-38807: Fix race condition in Lib/trace.py (GH-110143)buermarc2024-01-171-0/+3
| | | | Instead of checking if a directory does not exist and thereafter creating it, directly call os.makedirs() with the exist_ok=True.
* gh-105102: Fix nested unions in structures when the system byteorder is the ↵Sheidan2024-01-171-0/+2
| | | | opposite (GH-105106)
* gh-114149: [Enum] fix tuple subclass handling when using custom __new__ ↵Ethan Furman2024-01-171-0/+1
| | | | (GH-114160)
* Merge branch 'main' of https://github.com/python/cpythonThomas Wouters2024-01-172-0/+4
|\
| * gh-112343: pdb: Use tokenize to replace convenience variables (#112380)Tian Gao2024-01-171-0/+1
| |
| * gh-104282: Fix null pointer dereference in `lzma._decode_filter_properties` ↵Radislav Chugunov2024-01-171-0/+3
| | | | | | | | (GH-104283)
* | Python 3.13.0a3v3.13.0a3Thomas Wouters2024-01-17232-523/+2414
|/
* gh-72284: Revise lists in IDLE doc (#114174)Terry Jan Reedy2024-01-171-0/+2
| | | | | | | | | Tkinter is a fact, not necessarily a feature. Reorganize editor key bindings in a logical order and remove those that do not work, at least on Windows. Improve shell bindings list.
* GH-114013: fix setting `HOSTRUNNER` for `Tools/wasm/wasi.py` (GH-114097)Brett Cannon2024-01-161-0/+4
| | | Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change.
* gh-113659: Skip hidden .pth files (GH-113660)Serhiy Storchaka2024-01-161-0/+1
| | | | Skip .pth files with names starting with a dot or hidden file attribute.
* gh-114096: Restore privileges in _winapi.CreateJunction after creating the ↵Steve Dower2024-01-161-0/+3
| | | | | junction (GH-114089) This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't.
* gh-113626: Add allow_code parameter in marshal functions (GH-113648)Serhiy Storchaka2024-01-161-0/+3
| | | | | Passing allow_code=False prevents serialization and de-serialization of code objects which is incompatible between Python versions.
* gh-114077: Fix OverflowError in socket.sendfile() when pass count >2GiB ↵Serhiy Storchaka2024-01-161-0/+2
| | | | (GH-114079)
* gh-113238: add Anchor to importlib.resources (#113801)Mike Zimin2024-01-161-0/+1
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-113358: Fix rendering tracebacks with exceptions with a broken ↵Jérome Perrin2024-01-161-0/+1
| | | | | __getattr__ (GH-113359) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* GH-113655: Lower the C recursion limit on various platforms (GH-113944)Mark Shannon2024-01-161-0/+3
|
* gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425)Zackery Spytz2024-01-161-0/+2
| | | | | | | | If *trackfd* is False, the file descriptor specified by *fileno* will not be duplicated. Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91539: Small performance improvement of ↵Raphaël Marinier2024-01-151-0/+1
| | | | | urrlib.request.getproxies_environment() (#108771) Small performance improvement of getproxies_environment() when there are many environment variables. In a benchmark with 5k environment variables not related to proxies, and 5 specifying proxies, we get a 10% walltime improvement.
* gh-99437: runpy: decode path-like objects before setting globalsKamil Turek2024-01-151-0/+2
|
* gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647)Sergey B Kirpichev2024-01-151-0/+3
| | | | | | | | | | `PyComplex_RealAsDouble()`/`PyComplex_ImagAsDouble` now try to convert an object to a `complex` instance using its `__complex__()` method before falling back to the ``__float__()`` method. PyComplex_ImagAsDouble() also will not silently return 0.0 for non-complex types anymore. Instead we try to call PyFloat_AsDouble() and return 0.0 only if this call is successful.
* gh-113666: Adding missing UF_ and SF_ flags to module 'stat' (#113667)Ronald Oussoren2024-01-151-0/+5
| | | | | Add some constants to module 'stat' that are used on macOS. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and ↵Hugo van Kemenade2024-01-145-8/+8
| | | | `library/http.client.rst` (#114060)
* gh-111803: Support loading more deeply nested lists in binary plist format ↵Serhiy Storchaka2024-01-131-0/+2
| | | | | | (GH-114024) It no longer uses the C stack. The depth of nesting is only limited by Python recursion limit setting.
* gh-114014: Update `fractions.Fraction()`'s rational parsing regex (#114015)Crowthebird2024-01-131-0/+1
| | | | | | | | Fix a bug in the regex used for parsing a string input to the `fractions.Fraction` constructor. That bug led to an inconsistent exception message being given for some inputs. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* gh-101225: Increase the socket backlog when creating a ↵Ronald Oussoren2024-01-131-0/+4
| | | | | | | | multiprocessing.connection.Listener (#113567) Increase the backlog for multiprocessing.connection.Listener` objects created by `multiprocessing.manager` and `multiprocessing.resource_sharer` to significantly reduce the risk of getting a connection refused error when creating a `multiprocessing.connection.Connection` to them.
* GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths ↵Barney Gale2024-01-131-0/+5
| | | | | | | | | | | | | (#113829) On Windows, `os.path.isabs()` now returns `False` when given a path that starts with exactly one (back)slash. This is more compatible with other functions in `os.path`, and with Microsoft's own documentation. Also adjust `pathlib.PureWindowsPath.is_absolute()` to call `ntpath.isabs()`, which corrects its handling of partial UNC/device paths like `//foo`. Co-authored-by: Jon Foster <jon@jon-foster.co.uk>
* GH-111798: skip `test_super_deep()` from `test_call` under pydebug builds on ↵Brett Cannon2024-01-131-0/+2
| | | | WASI (GH-114010)
* GH-111801: set a lower recursion limit for `test_infintely_many_bases()` in ↵Brett Cannon2024-01-121-0/+3
| | | | `test_isinstance` (#113997)
* gh-101100: Fix Sphinx Lint warnings in `Misc/` (#113946)Hugo van Kemenade2024-01-1242-331/+331
| | | Fix Sphinx Lint warnings in Misc/
* gh-95649: Document that asyncio contains uvloop code (#107536)Alois Klink2024-01-122-0/+4
| | | | | | | | Some of the asyncio SSL changes in GH-31275 [1] were taken from v0.16.0 of the uvloop project [2]. In order to comply with the MIT license, we need to just need to document the copyright information. [1]: https://github.com/python/cpython/pull/31275 [2]: https://github.com/MagicStack/uvloop/tree/v0.16.0
* GH-111802: set a low recursion limit for `test_bad_getattr()` in ↵Brett Cannon2024-01-121-0/+3
| | | | `test.pickletester` (GH-113996)