summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-97669: Remove outdated example scripts (#97675)Victor Stinner2022-10-0448-7050/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove outdated example scripts of the Tools/scripts/ directory. A copy can be found in the old-demos project: https://github.com/gvanrossum/old-demos Removed scripts (39): * byext.py * byteyears.py * cleanfuture.py * copytime.py * crlf.py * db2pickle.py * dutree.doc * dutree.py * find-uname.py * find_recursionlimit.py * finddiv.py * findlinksto.py * findnocoding.py * fixcid.py * fixdiv.py * fixheader.py * fixnotice.py * fixps.py * get-remote-certificate.py * google.py * highlight.py * ifdef.py * import_diagnostics.py * lfcr.py * linktree.py * lll.py * mailerdaemon.py * make_ctype.py * mkreal.py * objgraph.py * pdeps.py * pickle2db.py * pindent.py * pysource.py * reindent-rst.py * rgrep.py * suff.py * texi2html.py * which.py Changes: * Remove test_fixcid, test_lll, test_pdeps and test_pindent of test.test_tools. * Remove get-remote-certificate.py changelog entry, since the script was removed. Note: there is a copy of crlf.py in Lib/test/test_lib2to3/data/.
* gh-97709: Included newline separator in Mandelbrot set (#97737)matheusja2022-10-041-2/+2
| | | | | Included newline separator in Mandelbrot set Now the Mandelbrot set one-liner example on separates the lines with a '\n' character.
* gh-97816: Remove unused variables in `mutliprocessing.managers.Server` (#97817)Koki Saito2022-10-042-1/+1
| | | Remove unused local variables.
* gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (#97771)Adam Turner2022-10-041-1/+1
| | | :c:data:`0` -> ``0``
* gh-97639: Remove `tokenize.NL` check from `tabnanny` (#97640)Nikita Sobolev2022-10-042-2/+1
| | | | | | | * gh-97639: Remove `tokenize.NL` check from `tabnanny` * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Add comment to subtle dataclass code (gh-96133)Shantanu2022-10-041-0/+4
| | | | | | | | | In the PR that made this change, 1st1 left a "note to self: add a comment explaining this". This comment was never added. https://github.com/python/cpython/pull/9518/files#r280608117 I was reading this code and it wasn't obvious to me why we weren't exec-ing directly into locals. So I got to learn something new :-) https://docs.python.org/3/reference/executionmodel.html#interaction-with-dynamic-features
* Remove space. (GH-97807)Benjamin Peterson2022-10-041-1/+1
| | | Automerge-Triggered-By: GH:benjaminp
* Add `sprint` issues to the Sprint 2022 project. (#97788)Ezio Melotti2022-10-031-0/+1
|
* GH-97752: Clear the `previous` member of newly-created generator/coroutine ↵Brandt Bucher2022-10-033-0/+24
| | | | frames (GH-97795)
* Minor grammar changes to http.client docs (#96221)Rohan Shah2022-10-031-2/+2
| | | Minor grammar changes
* Update http.client.rst (#24803)Géry Ogam2022-10-031-9/+8
| | | | | | | | | | | | * Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org>
* gh-97799: use inspect.get_annotations in dataclass (#97800)larryhastings2022-10-032-5/+4
| | | | | | dataclass used to get the annotations on a class object using cls.__dict__.get('__annotations__'). Now that it always imports inspect, it can use inspect.get_annotations, which is modern best practice for coping with annotations.
* multiprocessing docs: Remove extra option ELLIPSIS from section with code ↵Ivan Kapeykin2022-10-031-1/+0
| | | | (#96625)
* gh-96526: Clarify format and __format__ docstrings (gh-96648)Michael2022-10-036-16/+29
|
* Document that MozillaCookieJar works for curl's cookie files (#91852)Boris Verkhovskiy2022-10-032-3/+3
| | | MozillaCookieJar works for curl's cookies
* gh-96512: Move int_max_str_digits setting to PyConfig (#96944)Gregory P. Smith2022-10-0313-24/+111
| | | | | | | | | | | It had to live as a global outside of PyConfig for stable ABI reasons in the pre-3.12 backports. This removes the `_Py_global_config_int_max_str_digits` and gets rid of the equivalent field in the internal `struct _is PyInterpreterState` as code can just use the existing nested config struct within that. Adds tests to verify unique settings and configs in subinterpreters.
* gh-94808: Coverage: Check picklablability of calliter (#95923)Michael Droettboom2022-10-031-10/+11
|
* gh-94808: Add test coverage for PyObject_HasAttrString (#96627)MonadChains2022-10-032-0/+40
| | | | | | | * gh-94808: Add test for HasAttrString * Harmonize to Python C code style guidelines * Add check to verify no exception thrown
* gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (#97765)hetmankp2022-10-031-3/+4
| | | Ensure that the event loop's `_thread_id` attribute and the asyncgen hooks set by `sys.set_asyncgen_hooks()` are always restored no matter where a KeyboardInterrupt exception is raised.
* Fix typos in `bltinmodule.c`. (GH-97766)Nikita Sobolev2022-10-032-12/+12
|
* gh-94808: `_PyLineTable_StartsLine` was not used (GH-96609)Nikita Sobolev2022-10-031-27/+0
|
* gh-97681: Remove Tools/demo/ directory (#97682)Victor Stinner2022-10-0320-2730/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the Tools/demo/ directory which contained old demo scripts. A copy can be found in the old-demos project: https://github.com/gvanrossum/old-demos Remove the following old demo scripts: * beer.py * eiffel.py * hanoi.py * life.py * markov.py * mcast.py * queens.py * redemo.py * rpython.py * rpythond.py * sortvisu.py * spreadsheet.py * vector.py Changes: * Remove a reference to the redemo.py script in the regex howto documentation. * Remove a reference to the removed Tools/demo/ directory in the curses documentation. * Update PC/layout/ to remove the reference to Tools/demo/ directory.
* Fix typo in unittest docs (#97742)annonm2022-10-031-1/+1
|
* gh-97728: Argument Clinic: Fix uninitialized variable in the Py_UNICODE ↵Serhiy Storchaka2022-10-038-42/+46
| | | | | | | converter (GH-97729) It affects function os.system() on Windows and Windows-specific modules winreg, _winapi, _overlapped, and _msi.
* gh-95913: Fix PEP number in PEP 678 What's New ref label (#97739)C.A.M. Gerlach2022-10-031-1/+1
| | | What's New: Fix PEP number in PEP 678 ref target label
* gh-95913: Copyedit/improve New Modules What's New section (#97721)C.A.M. Gerlach2022-10-031-3/+6
| | | | | * Link TOML & WSGI in New Modules section, refine text & add ref label * Further reformat new modules & add PEP link to tomllib
* gh-97740: Fix bang in Sphinx C domain ref target syntax (#97741)C.A.M. Gerlach2022-10-032-0/+17
| | | | | | | | | * gh-97740: Fix bang in Sphinx C domain ref target syntax Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Add NEWS entry for C domain bang fix Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-96819: multiprocessing.resource_tracker: check if length of pipe write <= ↵Koki Saito2022-10-033-2/+11
| | | | | 512 (#96890) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-97706: multiprocessing tests: Delete unused variable `rand` (#97707)Koki Saito2022-10-031-2/+1
|
* GH-85447: Clarify docs about awaiting future multiple times (#97738)Kumar Aditya2022-10-021-1/+2
|
* [docs] Update logging cookbook with recipe for using a logger like an ↵Vinay Sajip2022-10-021-0/+76
| | | | output… (GH-97730)
* gh-97607: Fix content parsing in the impl-detail reST directive (#97652)C.A.M. Gerlach2022-10-021-16/+7
| | | | | | | | | | | | | | | | | | | * Don't parse content as arg in the impl-detail directive This does not change the (untranslated) output, but ensures that the doctree node metadata is correct. which fixes gh-97607 with the text not being translated. It also simplifies the code and logic and makes it consistant with the docutils built-in directives. * Remove unused branch from impl-detail directive handling no-content case This is not used anywhere in the docs and lacks a clear use case, and is more likely a mistake which is now flagged at build time. This simplifies the logic from two code paths to one, and makes the behavior consistant with similar built-in directives (e.g. the various admonition types). * Further simplify impl-detail reST directive code
* gh-95975: Move except/*/finally ref labels to more precise locations (#95976)C.A.M. Gerlach2022-10-021-45/+76
| | | | | | | | | | | | | | | | | | | * gh-95975: Move except/*/finally ref labels to more precise locations * Add section headers to fix :keyword: role and aid navigation * Move see also to the introduction rather than a particular subsection * Fix other minor Sphinx syntax issues with except Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> * Suppress redundant link to same section for except too * Don't link try/except/else/finally keywords if in the same section * Format try/except/finally as keywords in modified sections Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-97591: In `Exception.__setstate__()` acquire strong references before ↵Ofey Chan2022-10-023-1/+34
| | | | calling `tp_hash` slot (#97700)
* 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.