summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` ↵Gregory P. Smith2024-01-121-0/+4
| | | | | | | | | | | (#113969) Make zipfile.ZipInfo.compress_level public. A property is used to retain the behavior of the ._compresslevel. People constructing zipfile.ZipInfo instances to pass into existing APIs to control per-file compression levels already treat this as public, there was never a reason for it not to be. I used the more modern name compress_level instead of compresslevel as the keyword argument on other ZipFile APIs is called to be consistent with compress_type and a general long term preference of not runningwordstogether without a separator in names.
* gh-113710: Add types to the interpreter DSL (#113711)Ken Jin2024-01-121-0/+1
| | | | Co-authored-by: Jules <57632293+JuliaPoo@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-113868: Add a number of MAP_* flags from macOS to module mmap (#113869)Ronald Oussoren2024-01-121-0/+6
| | | | | The new flags were extracted from the macOS 14.2 SDK. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107901: duplicate blocks with no lineno that have an eval break and ↵Irit Katriel2024-01-121-0/+1
| | | | multiple predecessors (#113950)
* gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)Steve Dower2024-01-121-0/+2
|
* gh-108364: In sqlite3, disable foreign keys before dumping SQL schema (#113957)Mariusz Felisiak2024-01-121-0/+3
| | | | | | | sqlite3.Connection.iterdump now ensures that foreign key support is disabled before dumping the database schema, if there is any foreign key violation. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-113903: Fix an IDLE configdialog test (#113973)Terry Jan Reedy2024-01-121-0/+1
| | | | | | | | | | | test_configdialog.HighPageTest.test_highlight_target_text_mouse fails if a line of the Highlight tab text sample is not visible. If so, bbox() in click_char() returns None and the unpacking iteration fails. This occurred on a Devuan Linux system. Fix by moving the 'see character' call inside click_char, just before the bbox call. Also, reduce the click_char calls to just one per tag name and replace the other nested function with a dict comprehension.
* gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)Zackery Spytz2024-01-111-0/+2
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* GH-113853: Guarantee forward progress in executors (GH-113854)Mark Shannon2024-01-111-0/+2
|
* gh-107901: jump leaving an exception handler doesn't need an eval break ↵Irit Katriel2024-01-111-0/+1
| | | | check (#113943)
* gh-112640: Add `kwdefaults` parameter to `types.FunctionType.__new__` (#112641)Nikita Sobolev2024-01-111-0/+2
|
* gh-89811: Check for valid tp_version_tag in specializer (GH-113558)Peter Lazorchak2024-01-111-0/+2
|
* gh-77046: os.pipe() sets _O_NOINHERIT flag on fds (#113817)Victor Stinner2024-01-101-0/+3
| | | | | | | | On Windows, set _O_NOINHERIT flag on file descriptors created by os.pipe() and io.WindowsConsoleIO. Add test_pipe_spawnl() to test_os. Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* gh-113753: Clear finalized bit when putting PyAsyncGenASend back into free ↵Sam Gross2024-01-101-0/+2
| | | | list (#113754)
* gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016)Serhiy Storchaka2024-01-101-0/+3
| | | | | Raise BadZipFile when try to read an entry that overlaps with other entry or central directory.
* gh-89850: Add default C implementations of persistent_id() and ↵Serhiy Storchaka2024-01-101-0/+5
| | | | | | | | | | | persistent_load() (GH-113579) Previously the C implementation of pickle.Pickler and pickle.Unpickler classes did not have such methods and they could only be used if they were overloaded in subclasses or set as instance attributes. Fixed calling super().persistent_id() and super().persistent_load() in subclasses of the C implementation of pickle.Pickler and pickle.Unpickler classes. It no longer causes an infinite recursion.
* gh-113664: Improve style of Big O notation (GH-113695)Serhiy Storchaka2024-01-103-3/+3
| | | | Use cursive to make it looking like mathematic formulas.
* gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730)Serhiy Storchaka2024-01-101-0/+2
| | | It occurred when try to re-encode an unknown-8bit part combined with non-unknown-8bit part.
* gh-96037: Always insert TimeoutError when exit an expired asyncio.timeout() ↵Serhiy Storchaka2024-01-101-0/+2
| | | | | | | | block (GH-113819) If other exception was raised during exiting an expired asyncio.timeout() block, insert TimeoutError in the exception context just above the CancelledError.
* gh-113877: Fix Tkinter method winfo_pathname() on 64-bit Windows (GH-113900)Serhiy Storchaka2024-01-101-0/+1
| | | | | winfo_id() converts the result of "winfo id" command to integer, but "winfo pathname" command requires an argument to be a hexadecimal number on Win64.
* gh-112182: Replace StopIteration with RuntimeError for future (#113220)Jamie Phan2024-01-101-0/+3
| | | | | | When an `StopIteration` raises into `asyncio.Future`, this will cause a thread to hang. This commit address this by not raising an exception and silently transforming the `StopIteration` with a `RuntimeError`, which the caller can reconstruct from `fut.exception().__cause__`
* gh-66060: Use actual class name in _io type's __repr__ (#30824)AN Long2024-01-091-0/+3
| | | | | | Use the object's actual class name in the following _io type's __repr__: - FileIO - TextIOWrapper - _WindowsConsoleIO
* GH-113661: unittest runner: Don't exit 5 if tests were skipped (#113856)Stefano Rivera2024-01-091-0/+3
| | | | | The intention of exiting 5 was to detect issues where the test suite wasn't discovered at all. If we skipped tests, it was correctly discovered.
* gh-113781: Silence AttributeError in warning module during Python ↵Serhiy Storchaka2024-01-091-0/+2
| | | | | | finalization (GH-113813) The tracemalloc module can already be cleared.
* gh-113848: Handle CancelledError subclasses in asyncio TaskGroup() and ↵Serhiy Storchaka2024-01-091-0/+3
| | | | timeout() (GH-113850)
* gh-87868: Sort and remove duplicates in getenvironment() (GH-102731)AN Long2024-01-091-0/+2
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>