]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
andrei kulakov [Wed, 5 Oct 2022 00:47:49 +0000 (20:47 -0400)]
gh-97825: fix AttributeError when calling subprocess.check_output(input=None) with encoding or errors args (#97826)
* fix AttributeError, add unit test
Athos Ribeiro [Wed, 5 Oct 2022 00:39:42 +0000 (21:39 -0300)]
Add re.VERBOSE flag documentation example (#97678)
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
Shahriar Heidrich [Wed, 5 Oct 2022 00:36:04 +0000 (02:36 +0200)]
gh-97654: Add auto exception chaining example to tutorial (#97703)
Add auto exception chaining example to tutorial
Mark Shannon [Wed, 5 Oct 2022 00:34:03 +0000 (01:34 +0100)]
GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510)
Brandt Bucher [Wed, 5 Oct 2022 00:30:03 +0000 (17:30 -0700)]
GH-97779: Ensure that *all* frame objects are backed by "complete" frames (GH-97845)
Nikita Sobolev [Wed, 5 Oct 2022 00:29:18 +0000 (03:29 +0300)]
gh-97837: Change deprecation warning message in `unittest` (#97838)
C.A.M. Gerlach [Wed, 5 Oct 2022 00:03:58 +0000 (19:03 -0500)]
gh-95913: Copyedit/improve Implementation Changes What's New section (#97720)
* Add and refine reST/Sphinx syntax for implementation changes section
* Clarify and refine wording in the Implementation Changes section
* Elide unnecessary comma
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Adam Turner [Tue, 4 Oct 2022 23:32:27 +0000 (00:32 +0100)]
gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (#97775)
* :c:type: to :c:expr:
* Update Doc/whatsnew/2.4.rst
Adam Turner [Tue, 4 Oct 2022 23:27:29 +0000 (00:27 +0100)]
gh-93738: Documentation C syntax (:c:type:`FILE` -> :c:expr:`FILE`) (#97769)
:c:type:`FILE` -> :c:expr:`FILE`
Adam Turner [Tue, 4 Oct 2022 23:26:36 +0000 (00:26 +0100)]
gh-93738: Documentation C syntax (:c:type:`TYPE` -> :c:expr:`TYPE`) (#97770)
:c:type:`TYPE` -> :c:expr:`TYPE`
Adam Turner [Tue, 4 Oct 2022 23:26:14 +0000 (00:26 +0100)]
gh-93738: Documentation C syntax (Use `c:struct`) (#97772)
Use `c:struct`
Adam Turner [Tue, 4 Oct 2022 23:18:09 +0000 (00:18 +0100)]
gh-93738: Documentation C syntax (:c:data:`view->obj` -> :c:expr:`view->obj`) (#97773)
:c:data:`view->obj` -> :c:expr:`view->obj`
C.A.M. Gerlach [Tue, 4 Oct 2022 23:16:37 +0000 (18:16 -0500)]
gh-95913: Copyedit/improve Other Language Changes What's New section (#97719)
* Add/refine cross references to items in other lang changes section
* Unify context manager exception changes into single non-repetitive item
* More clearly describe the intent and consequences of the -P option
* Apply minor clarifications & copyedits to rest of section
* Tweak the formatting of module references
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Adam Turner [Tue, 4 Oct 2022 23:13:03 +0000 (00:13 +0100)]
gh-93738: Documentation C syntax (:c:type:`PyObject` -> :c:expr:`PyObject`) (#97776)
:c:type:`PyObject` -> :c:expr:`PyObject`
Adam Turner [Tue, 4 Oct 2022 23:12:22 +0000 (00:12 +0100)]
gh-93738: Documentation C syntax (:c:type:`PyInterpreterState *` -> :c:expr:`PyInterpreterState *`) (#97777)
:c:type:`PyInterpreterState *` -> :c:expr:`PyInterpreterState *`
Adam Turner [Tue, 4 Oct 2022 23:11:54 +0000 (00:11 +0100)]
gh-93738: Documentation C syntax (:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`) (#97780)
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
Adam Turner [Tue, 4 Oct 2022 23:11:34 +0000 (00:11 +0100)]
gh-93738: Documentation C syntax (:c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`) (#97782)
:c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`
Adam Turner [Tue, 4 Oct 2022 23:11:20 +0000 (00:11 +0100)]
gh-93738: Documentation C syntax (:c:type:`PyUnicodeObject*` -> :c:expr:`PyUnicodeObject*`) (#97783)
:c:type:`PyUnicodeObject*` -> :c:expr:`PyUnicodeObject*`
Adam Turner [Tue, 4 Oct 2022 23:10:57 +0000 (00:10 +0100)]
gh-93738: Documentation C syntax (:c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`) (#97784)
:c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`
cousteau [Tue, 4 Oct 2022 22:54:03 +0000 (23:54 +0100)]
gh-88355: Fix backslashes in AF_PIPE (#96543)
Fix backslashes in AF_PIPE (#88355)
The correct syntax for AF_PIPE addresses is `\\.\pipe\blahblah`, not `\.\pipe{blahblah}`, but the syntax markup messed up the backslashes.
C.A.M. Gerlach [Tue, 4 Oct 2022 22:50:34 +0000 (17:50 -0500)]
gh-95913: Move py.exe to appropriate What's New section & refine text (#97718)
* Move Windows py.exe improvements from Typing section to New Features
* Add ref target label and use literal for py.exe
* Be clearer/explict about what legacy version arg components reprisent
* Apply other minor clarity and textual fixes to py.exe launcher text
* Refine phrasing of legacy sentence of py.exe desc
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Ev2geny [Tue, 4 Oct 2022 22:37:33 +0000 (00:37 +0200)]
gh-58451: Add optional delete_on_close parameter to NamedTemporaryFile (GH-97015)
Łukasz Langa [Tue, 4 Oct 2022 22:31:16 +0000 (15:31 -0700)]
gh-97008: Add a Python implementation of AttributeError and NameError suggestions (#97022)
Relevant tests moved from test_exceptions to test_traceback to be able to
compare both implementations.
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Daniel Giger [Tue, 4 Oct 2022 22:18:04 +0000 (18:18 -0400)]
gh-96448: fix documentation for _thread.lock.acquire (#96449)
* fix documentation for _thread.lock.acquire
* update formatting of _thread.lock.acquire() doc
Inada Naoki [Tue, 4 Oct 2022 22:04:44 +0000 (07:04 +0900)]
gh-90301: Doc: Add references to PEP 686 (#96816)
Doc: Add references to PEP 686.
Guido van Rossum [Tue, 4 Oct 2022 18:36:20 +0000 (11:36 -0700)]
GH-95913: Update what's new in 3.11 for asyncio (#97806)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Oleg Iarygin [Tue, 4 Oct 2022 17:56:47 +0000 (21:56 +0400)]
gh-93357: Start porting asyncio server test cases to IsolatedAsyncioTestCase (#93369)
Lay the foundation for further work in `asyncio.test_streams`.
Nikita Sobolev [Tue, 4 Oct 2022 16:53:28 +0000 (19:53 +0300)]
gh-96142: add missing params to `dataclass._DataclassParams` (gh-96382)
Kumar Aditya [Tue, 4 Oct 2022 16:45:37 +0000 (22:15 +0530)]
GH-82604: fix docs about configuring selector (#97755)
Ben Faulhaber [Tue, 4 Oct 2022 16:04:41 +0000 (18:04 +0200)]
gh-97754: Update doc for default location of per-user installs on Windows (GH-97756)
Skip Montanaro [Tue, 4 Oct 2022 14:38:19 +0000 (09:38 -0500)]
gh-97731: fix distclean target to clean docs (#97732)
fix distclean target to clean docs
Victor Stinner [Tue, 4 Oct 2022 13:28:57 +0000 (15:28 +0200)]
gh-97670: Remove sys.getdxp() and analyze_dxp.py script (#97671)
Remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py
script. DXP stands for "dynamic execution pairs". They were related
to DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros which have been
removed in Python 3.11. Python can now be built with "./configure
--enable-pystats" to gather statistics on Python opcodes.
William Woodruff [Tue, 4 Oct 2022 13:05:53 +0000 (08:05 -0500)]
Adjust stable ABI internal documentation (GH-96896)
I was perusing this file, and noticed that this part of the documentation is slightly out of date: the `struct` items in this TOML file currently contain `struct_abi_kind` members, which distinguish between the different types of ABI compatibility described in the comment.
I've updated the comment to reflect this.
Victor Stinner [Tue, 4 Oct 2022 08:49:00 +0000 (10:49 +0200)]
gh-97669: Remove outdated example scripts (#97675)
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/.
matheusja [Tue, 4 Oct 2022 05:34:02 +0000 (02:34 -0300)]
gh-97709: Included newline separator in Mandelbrot set (#97737)
Included newline separator in Mandelbrot set
Now the Mandelbrot set one-liner example on separates the lines with a '\n' character.
Koki Saito [Tue, 4 Oct 2022 05:29:17 +0000 (14:29 +0900)]
gh-97816: Remove unused variables in `mutliprocessing.managers.Server` (#97817)
Remove unused local variables.
Adam Turner [Tue, 4 Oct 2022 01:46:30 +0000 (02:46 +0100)]
gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (#97771)
:c:data:`0` -> ``0``
Nikita Sobolev [Tue, 4 Oct 2022 00:41:29 +0000 (03:41 +0300)]
gh-97639: Remove `tokenize.NL` check from `tabnanny` (#97640)
* 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>
Shantanu [Tue, 4 Oct 2022 00:30:04 +0000 (17:30 -0700)]
Add comment to subtle dataclass code (gh-96133)
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
Benjamin Peterson [Tue, 4 Oct 2022 00:12:36 +0000 (17:12 -0700)]
Remove space. (GH-97807)
Automerge-Triggered-By: GH:benjaminp
Ezio Melotti [Mon, 3 Oct 2022 23:45:18 +0000 (01:45 +0200)]
Add `sprint` issues to the Sprint 2022 project. (#97788)
Brandt Bucher [Mon, 3 Oct 2022 23:36:52 +0000 (16:36 -0700)]
GH-97752: Clear the `previous` member of newly-created generator/coroutine frames (GH-97795)
Rohan Shah [Mon, 3 Oct 2022 23:19:39 +0000 (19:19 -0400)]
Minor grammar changes to http.client docs (#96221)
Minor grammar changes
Géry Ogam [Mon, 3 Oct 2022 23:18:36 +0000 (01:18 +0200)]
Update http.client.rst (#24803)
* 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>
larryhastings [Mon, 3 Oct 2022 22:46:09 +0000 (15:46 -0700)]
gh-97799: use inspect.get_annotations in dataclass (#97800)
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.
Ivan Kapeykin [Mon, 3 Oct 2022 22:41:08 +0000 (01:41 +0300)]
multiprocessing docs: Remove extra option ELLIPSIS from section with code (#96625)
Michael [Mon, 3 Oct 2022 22:28:02 +0000 (00:28 +0200)]
gh-96526: Clarify format and __format__ docstrings (gh-96648)
Boris Verkhovskiy [Mon, 3 Oct 2022 22:07:54 +0000 (16:07 -0600)]
Document that MozillaCookieJar works for curl's cookie files (#91852)
MozillaCookieJar works for curl's cookies
Gregory P. Smith [Mon, 3 Oct 2022 20:55:45 +0000 (13:55 -0700)]
gh-96512: Move int_max_str_digits setting to PyConfig (#96944)
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.
Michael Droettboom [Mon, 3 Oct 2022 20:50:30 +0000 (16:50 -0400)]
gh-94808: Coverage: Check picklablability of calliter (#95923)
MonadChains [Mon, 3 Oct 2022 20:37:15 +0000 (22:37 +0200)]
gh-94808: Add test coverage for PyObject_HasAttrString (#96627)
* gh-94808: Add test for HasAttrString
* Harmonize to Python C code style guidelines
* Add check to verify no exception thrown
hetmankp [Mon, 3 Oct 2022 20:34:35 +0000 (07:34 +1100)]
gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (#97765)
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.
Nikita Sobolev [Mon, 3 Oct 2022 19:09:03 +0000 (22:09 +0300)]
Fix typos in `bltinmodule.c`. (GH-97766)
Nikita Sobolev [Mon, 3 Oct 2022 18:35:43 +0000 (21:35 +0300)]
gh-94808: `_PyLineTable_StartsLine` was not used (GH-96609)
Victor Stinner [Mon, 3 Oct 2022 15:09:02 +0000 (17:09 +0200)]
gh-97681: Remove Tools/demo/ directory (#97682)
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.
annonm [Mon, 3 Oct 2022 13:35:40 +0000 (09:35 -0400)]
Fix typo in unittest docs (#97742)
Serhiy Storchaka [Mon, 3 Oct 2022 07:42:54 +0000 (10:42 +0300)]
gh-97728: Argument Clinic: Fix uninitialized variable in the Py_UNICODE converter (GH-97729)
It affects function os.system() on Windows and Windows-specific modules
winreg, _winapi, _overlapped, and _msi.
C.A.M. Gerlach [Mon, 3 Oct 2022 04:12:37 +0000 (23:12 -0500)]
gh-95913: Fix PEP number in PEP 678 What's New ref label (#97739)
What's New: Fix PEP number in PEP 678 ref target label
C.A.M. Gerlach [Mon, 3 Oct 2022 04:04:10 +0000 (23:04 -0500)]
gh-95913: Copyedit/improve New Modules What's New section (#97721)
* Link TOML & WSGI in New Modules section, refine text & add ref label
* Further reformat new modules & add PEP link to tomllib
C.A.M. Gerlach [Mon, 3 Oct 2022 03:51:22 +0000 (22:51 -0500)]
gh-97740: Fix bang in Sphinx C domain ref target syntax (#97741)
* 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>
Koki Saito [Mon, 3 Oct 2022 00:41:01 +0000 (09:41 +0900)]
gh-96819: multiprocessing.resource_tracker: check if length of pipe write <= 512 (#96890)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Koki Saito [Mon, 3 Oct 2022 00:37:36 +0000 (09:37 +0900)]
gh-97706: multiprocessing tests: Delete unused variable `rand` (#97707)
Kumar Aditya [Sun, 2 Oct 2022 22:16:51 +0000 (03:46 +0530)]
GH-85447: Clarify docs about awaiting future multiple times (#97738)
Vinay Sajip [Sun, 2 Oct 2022 13:26:14 +0000 (14:26 +0100)]
[docs] Update logging cookbook with recipe for using a logger like an output… (GH-97730)
C.A.M. Gerlach [Sun, 2 Oct 2022 05:20:17 +0000 (00:20 -0500)]
gh-97607: Fix content parsing in the impl-detail reST directive (#97652)
* 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
C.A.M. Gerlach [Sun, 2 Oct 2022 05:12:56 +0000 (00:12 -0500)]
gh-95975: Move except/*/finally ref labels to more precise locations (#95976)
* 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>
Ofey Chan [Sun, 2 Oct 2022 03:57:17 +0000 (11:57 +0800)]
gh-97591: In `Exception.__setstate__()` acquire strong references before calling `tp_hash` slot (#97700)
Gregory P. Smith [Sun, 2 Oct 2022 00:55:40 +0000 (17:55 -0700)]
gh-95588: Drop the safety claim from `ast.literal_eval` docs. (#95919)
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.
Will Hawkins [Sat, 1 Oct 2022 23:41:06 +0000 (19:41 -0400)]
Fix capitalization of Unix in documentation (#96913)
Łukasz Langa [Sat, 1 Oct 2022 17:42:36 +0000 (19:42 +0200)]
gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() (#95253)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Eric Snow [Sat, 1 Oct 2022 01:32:46 +0000 (19:32 -0600)]
gh-90110: Update the c-analyzer Tool (gh-97695)
https://github.com/python/cpython/issues/90110
Guido van Rossum [Fri, 30 Sep 2022 19:57:09 +0000 (12:57 -0700)]
GH-97592: Fix crash in C remove_done_callback due to evil code (#97660)
Evil code could cause fut_callbacks to be cleared when PyObject_RichCompareBool is called.
Guido van Rossum [Fri, 30 Sep 2022 19:55:40 +0000 (12:55 -0700)]
GH-96827: Don't touch closed loops from executor threads (#96837)
* When chaining futures, skip callback if loop closed.
* When shutting down an executor, don't wake a closed loop.
Gregory P. Smith [Fri, 30 Sep 2022 17:45:47 +0000 (10:45 -0700)]
gh-87597: Document TimeoutExpired.stdout & .stderr types (#97685)
This documents the behavior that has always been the case since timeout
support was introduced in Python 3.3.
Cheryl Sabella [Fri, 30 Sep 2022 16:44:44 +0000 (12:44 -0400)]
bpo-35675: IDLE - separate config_key window and frame (#11427)
bpo-35598: IDLE: Refactor window and frame class
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Victor Stinner [Fri, 30 Sep 2022 12:58:30 +0000 (14:58 +0200)]
gh-94526: getpath_dirname() no longer encodes the path (#97645)
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.
Steve Dower [Fri, 30 Sep 2022 09:29:31 +0000 (10:29 +0100)]
gh-90989: Install Windows launcher per-user, and clarify some installer text (GH-97655)
Steve Dower [Fri, 30 Sep 2022 09:25:00 +0000 (10:25 +0100)]
gh-97649: The Tools directory is no longer installed on Windows (GH-97653)
Eddie Hebert [Fri, 30 Sep 2022 08:59:46 +0000 (04:59 -0400)]
Use SyntaxError invalid range in tutorial introduction example (GH-93031)
Use output from a 3.10+ REPL, showing invalid range, for the
SyntaxError examples in the tutorial introduction page.
Automerge-Triggered-By: GH:iritkatriel
Ofey Chan [Fri, 30 Sep 2022 08:43:02 +0000 (16:43 +0800)]
gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428)
Jeff Allen [Thu, 29 Sep 2022 23:02:27 +0000 (00:02 +0100)]
gh-96397: Document that attributes need not be identifiers (#96454)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
NoSuck [Thu, 29 Sep 2022 22:53:41 +0000 (17:53 -0500)]
closes gh-97650: correct sphinx executable (gh-97651)
Shin-myoung-serp [Thu, 29 Sep 2022 06:40:51 +0000 (15:40 +0900)]
gh-91212: Fixed flickering when the tracer is turned off (#95129)
Fixed flickering when the tracer is turned off.
Stanley [Thu, 29 Sep 2022 01:06:50 +0000 (18:06 -0700)]
gh-52597: Add position-only markers for os functions (#94735)
Victor Stinner [Wed, 28 Sep 2022 23:17:27 +0000 (01:17 +0200)]
gh-97612: Fix shell injection in get-remote-certificate.py (#97613)
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>
Victor Stinner [Wed, 28 Sep 2022 22:07:07 +0000 (00:07 +0200)]
gh-97616: list_resize() checks for integer overflow (#97617)
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*)).
Jakob Weigert [Wed, 28 Sep 2022 17:46:09 +0000 (19:46 +0200)]
Fix typo in error message in plistlib (GH-97540)
Kumar Aditya [Wed, 28 Sep 2022 17:39:42 +0000 (23:09 +0530)]
GH-82448: Add thread timeout for loop.shutdown_default_executor (#97561)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Kumar Aditya [Wed, 28 Sep 2022 17:34:49 +0000 (23:04 +0530)]
fixup policy docs (#97618)
LiarPrincess [Wed, 28 Sep 2022 13:57:14 +0000 (15:57 +0200)]
bpo-47243: Duplicate entry in 'Objects/unicodetype_db.h' (GH-32376)
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
Vinay Sajip [Wed, 28 Sep 2022 04:17:42 +0000 (05:17 +0100)]
gh-65046: Add note about logging from async code. (GH-97602)
Andrew Kay [Wed, 28 Sep 2022 02:57:32 +0000 (03:57 +0100)]
Fix docs on conditional expression grouping (GH-96447)
C.A.M. Gerlach [Tue, 27 Sep 2022 23:47:14 +0000 (18:47 -0500)]
gh-96377: Update asyncio policy doc intro paras to be clear and accurate (#97603)
Also fix up some cross-references in the asyncio docs.
Pablo Galindo Salgado [Tue, 27 Sep 2022 22:23:42 +0000 (23:23 +0100)]
gh-96670: Raise SyntaxError when parsing NULL bytes (#97594)
Serhiy Storchaka [Tue, 27 Sep 2022 11:08:11 +0000 (14:08 +0300)]
gh-96959: Update more HTTP links (GH-97536)
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.
Serhiy Storchaka [Tue, 27 Sep 2022 11:05:05 +0000 (14:05 +0300)]
gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547)
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.
Cyker Way [Mon, 26 Sep 2022 23:38:00 +0000 (19:38 -0400)]
gh-97545: Make Semaphore run faster. (#97549)
Kumar Aditya [Mon, 26 Sep 2022 22:27:15 +0000 (03:57 +0530)]
GH-65046: Fix docs about logging in `asyncio` (#97559)
Explain that logging should not use network I/O.
Michael Curran [Mon, 26 Sep 2022 16:27:44 +0000 (02:27 +1000)]
bpo-38748: Add ctypes test for stack corruption due to misaligned arguments (GH-26204)
chgnrdv [Mon, 26 Sep 2022 16:12:19 +0000 (19:12 +0300)]
Fix typo in docstring and remove duplicate signal.h include in faulthandler.c (#96720)
This fix corrects a typo in dump_traceback_later function docstring and removes duplicate signal.h include directive