summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-95588: Drop the safety claim from `ast.literal_eval` docs. (#95919)Gregory P. Smith2022-10-023-9/+25
| | | It was never really safe and this claim conflicts directly with the big warning in the docs about it being able to crash the interpreter.
* Fix capitalization of Unix in documentation (#96913)Will Hawkins2022-10-016-9/+9
|
* gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() ↵Łukasz Langa2022-10-013-80/+254
| | | | | | (#95253) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-90110: Update the c-analyzer Tool (gh-97695)Eric Snow2022-10-012-68/+7
| | | https://github.com/python/cpython/issues/90110
* GH-97592: Fix crash in C remove_done_callback due to evil code (#97660)Guido van Rossum2022-09-303-2/+23
| | | | Evil code could cause fut_callbacks to be cleared when PyObject_RichCompareBool is called.
* GH-96827: Don't touch closed loops from executor threads (#96837)Guido van Rossum2022-09-303-2/+7
| | | | | * When chaining futures, skip callback if loop closed. * When shutting down an executor, don't wake a closed loop.
* gh-87597: Document TimeoutExpired.stdout & .stderr types (#97685)Gregory P. Smith2022-09-301-2/+7
| | | | This documents the behavior that has always been the case since timeout support was introduced in Python 3.3.
* bpo-35675: IDLE - separate config_key window and frame (#11427)Cheryl Sabella2022-09-304-82/+174
| | | | | bpo-35598: IDLE: Refactor window and frame class Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-94526: getpath_dirname() no longer encodes the path (#97645)Victor Stinner2022-09-302-9/+18
| | | | | | | | | | | Fix the Python path configuration used to initialized sys.path at Python startup. Paths are no longer encoded to UTF-8/strict to avoid encoding errors if it contains surrogate characters (bytes paths are decoded with the surrogateescape error handler). getpath_basename() and getpath_dirname() functions no longer encode the path to UTF-8/strict, but work directly on Unicode strings. These functions now use PyUnicode_FindChar() and PyUnicode_Substring() on the Unicode path, rather than strrchr() on the encoded bytes string.
* gh-90989: Install Windows launcher per-user, and clarify some installer text ↵Steve Dower2022-09-303-7/+9
| | | | (GH-97655)
* gh-97649: The Tools directory is no longer installed on Windows (GH-97653)Steve Dower2022-09-3010-117/+2
|
* Use SyntaxError invalid range in tutorial introduction example (GH-93031)Eddie Hebert2022-09-302-2/+3
| | | | | | Use output from a 3.10+ REPL, showing invalid range, for the SyntaxError examples in the tutorial introduction page. Automerge-Triggered-By: GH:iritkatriel
* gh-96348: Deprecate the 3-arg signature of coroutine.throw and ↵Ofey Chan2022-09-3014-21/+125
| | | | generator.throw (GH-96428)
* gh-96397: Document that attributes need not be identifiers (#96454)Jeff Allen2022-09-292-2/+17
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* closes gh-97650: correct sphinx executable (gh-97651)NoSuck2022-09-291-1/+1
|
* gh-91212: Fixed flickering when the tracer is turned off (#95129)Shin-myoung-serp2022-09-293-2/+2
| | | Fixed flickering when the tracer is turned off.
* gh-52597: Add position-only markers for os functions (#94735)Stanley2022-09-291-67/+67
|
* gh-97612: Fix shell injection in get-remote-certificate.py (#97613)Victor Stinner2022-09-282-18/+10
| | | | | | | | | | | Fix a shell code injection vulnerability in the get-remote-certificate.py example script. The script no longer uses a shell to run "openssl" commands. Issue reported and initial fix by Caleb Shortt. Remove the Windows code path to send "quit" on stdin to the "openssl s_client" command: use DEVNULL on all platforms instead. Co-authored-by: Caleb Shortt <caleb@rgauge.com>
* gh-97616: list_resize() checks for integer overflow (#97617)Victor Stinner2022-09-283-2/+24
| | | | | | | | Fix multiplying a list by an integer (list *= int): detect the integer overflow when the new allocated length is close to the maximum size. Issue reported by Jordan Limor. list_resize() now checks for integer overflow before multiplying the new allocated length by the list item size (sizeof(PyObject*)).
* Fix typo in error message in plistlib (GH-97540)Jakob Weigert2022-09-281-1/+1
|
* GH-82448: Add thread timeout for loop.shutdown_default_executor (#97561)Kumar Aditya2022-09-286-9/+44
| | | | Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* fixup policy docs (#97618)Kumar Aditya2022-09-281-1/+1
|
* bpo-47243: Duplicate entry in 'Objects/unicodetype_db.h' (GH-32376)LiarPrincess2022-09-283-2335/+2324
| | | | | | | | | | | | | | | | | Fix for duplicate 1st entry in 'Objects/unicodetype_db.h': ```c /* a list of unique character type descriptors */ const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = { {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, <--- HERE {0, 0, 0, 0, 0, 32}, {0, 0, 0, 0, 0, 48}, … ``` https://bugs.python.org/issue47243 Automerge-Triggered-By: GH:isidentical
* gh-65046: Add note about logging from async code. (GH-97602)Vinay Sajip2022-09-281-0/+8
|
* Fix docs on conditional expression grouping (GH-96447)Andrew Kay2022-09-281-1/+1
|
* gh-96377: Update asyncio policy doc intro paras to be clear and accurate ↵C.A.M. Gerlach2022-09-274-15/+32
| | | | | (#97603) Also fix up some cross-references in the asyncio docs.
* gh-96670: Raise SyntaxError when parsing NULL bytes (#97594)Pablo Galindo Salgado2022-09-2710-21/+65
|
* gh-96959: Update more HTTP links (GH-97536)Serhiy Storchaka2022-09-2722-101/+101
| | | | Use HTTPS for documents which are available by both HTTP and HTTPS links, but there is no redirection from HTTP to HTTPS or vice versa.
* gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547)Serhiy Storchaka2022-09-276-3/+58
| | | | | | Previously, checkbuttons in different parent widgets could have the same short name and share the same state if arguments "name" and "variable" are not specified. Now they are globally unique.
* gh-97545: Make Semaphore run faster. (#97549)Cyker Way2022-09-263-23/+19
|
* GH-65046: Fix docs about logging in `asyncio` (#97559)Kumar Aditya2022-09-261-0/+4
| | | Explain that logging should not use network I/O.
* bpo-38748: Add ctypes test for stack corruption due to misaligned arguments ↵Michael Curran2022-09-262-0/+26
| | | | (GH-26204)
* Fix typo in docstring and remove duplicate signal.h include in ↵chgnrdv2022-09-261-2/+1
| | | | | faulthandler.c (#96720) This fix corrects a typo in dump_traceback_later function docstring and removes duplicate signal.h include directive
* gh-96848: Fix -X int_max_str_digits option parsing (#96988)Victor Stinner2022-09-263-1/+7
| | | | | Fix command line parsing: reject "-X int_max_str_digits" option with no value (invalid) when the PYTHONINTMAXSTRDIGITS environment variable is set to a valid limit.
* gh-82530: Create blank function instead of invalid import for email example ↵Stanley2022-09-261-5/+9
| | | | | (#97529) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Reject invalid opcode names in assertInBytecode (GH-97548)Dennis Sweeney2022-09-251-0/+2
|
* GH-78724: Initialize struct.Struct in __new__ (GH-94532)Kumar Aditya2022-09-254-41/+49
| | | | Closes https://github.com/python/cpython/issues/75960 Closes https://github.com/python/cpython/issues/78724
* gh-96735: Fix undefined behaviour in struct unpacking functions (#96739)Mark Dickinson2022-09-252-26/+71
| | | | | | | | | | This PR fixes undefined behaviour in the struct module unpacking support functions `bu_longlong`, `lu_longlong`, `bu_int` and `lu_int`; thanks to @kumaraditya303 for finding these. The fix is to accumulate the bytes in an unsigned integer type instead of a signed integer type, then to convert to the appropriate signed type. In cases where the width matches, that conversion will typically be compiled away to a no-op. (Evidence from Godbolt: https://godbolt.org/z/5zvxodj64 .) To make the conversions efficient, I've specialised the relevant functions for their output size: for `bu_longlong` and `lu_longlong`, this only entails checking that the output size is indeed `8`. But `bu_int` and `lu_int` were used for format sizes `2` and `4` - I've split those into two separate functions each. No tests, because all of the affected cases are already exercised by the test suite.
* gh-90716: Refactor PyLong_FromString to separate concerns (GH-96808)Oscar Benjamin2022-09-252-258/+299
| | | | | | | | | | | This is a preliminary PR to refactor `PyLong_FromString` which is currently quite messy and has spaghetti like code that mixes up different concerns as well as duplicating logic. In particular: - `PyLong_FromString` now only handles sign, base and prefix detection and calls a new function `long_from_string_base` to parse the main body of the string. - The `long_from_string_base` function handles all string validation and then calls `long_from_binary_base` or a new function `long_from_non_binary_base` to construct the actual `PyLong`. - The existing `long_from_binary_base` function is simplified by factoring duplicated logic to `long_from_string_base`. - The new function `long_from_non_binary_base` factors out much of the code from `PyLong_FromString` including in particular the quadratic algorithm reffered to in gh-95778 so that this can be seen separately from unrelated concerns such as string validation.
* gh-97519: Synchronize links in other copies of HISTORY OF THE SOFTWARE ↵Serhiy Storchaka2022-09-253-8/+8
| | | | | | | (GH-97520) HTTP links in the "HISTORY OF THE SOFTWARE" section of Doc/license.rst were converted to HTTPS in f62ff97f31a775cc7956adeae32c14e7c85bdc15. But there were other copies of these links, which were left HTTP links.
* gh-97527: IDLE: protect macosx Tk() call when no GUI (#97530)Terry Jan Reedy2022-09-241-13/+17
| | | | | Only call tkinter.tk and its follow-up code in _init_tk_type when requires('gui') does not raise. This function can be called as an unintended side-effect of calling other idlelib code as part of tests on macOS without a GUI enabled.
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Serhiy Storchaka2022-09-2424-63/+63
|
* gh-94808: Coverage: Test uppercase string literal prefixes (GH-95925)Michael Droettboom2022-09-241-0/+7
|
* gh-77171: Fixes SubFormat check to compare the entire value. Add docs (GH-97509)Steve Dower2022-09-233-6/+21
|
* gh-96965: Update Windows release to libffi 3.4.3 (GH-97512)Steve Dower2022-09-233-4/+5
|
* gh-75608: Add Windows FAQ entry for missing UCRT (GH-92765)Stanley2022-09-231-0/+8
|
* gh-96761: Fix build process of the clang compiler for _bootstrap_python ↵Dong-hee Na2022-09-233-4/+43
| | | | | (gh-96945) Co-authored-by: Matthias Goergens <matthias.goergens@gmail.com>
* gh-96397: Document that keywords in calls need not be identifiers (#96393)Jeff Allen2022-09-221-2/+12
| | | | This represents the official SC stance, see https://github.com/python/steering-council/issues/142#issuecomment-1252172695
* GH-85760: Fix race in calling process_exited callback too early (#97009)Kumar Aditya2022-09-222-1/+3
|
* gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (#93222)Cyker Way2022-09-223-22/+143
| | | | | | | | | The main problem was that an unluckily timed task cancellation could cause the semaphore to be stuck. There were also doubts about strict FIFO ordering of tasks allowed to pass. The Semaphore implementation was rewritten to be more similar to Lock. Many tests for edge cases (including cancellation) were added.