]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Adam Turner [Thu, 6 Oct 2022 17:11:37 +0000 (18:11 +0100)]
gh-93738: Disallow pre-v3 syntax in the C domain (#97962)
Also, disable using invalid sphinx-lint 0.6.2.
180909 [Thu, 6 Oct 2022 16:52:21 +0000 (00:52 +0800)]
gh-95986: Fix the example using match keyword (#95989)
Ned Deily [Thu, 6 Oct 2022 16:11:47 +0000 (09:11 -0700)]
gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944)
The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls.
Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a
segfault if cpython is built with the macOS 13 SDK but run on an earlier
version of macOS. Prevent this by adding runtime support for detection of
these system calls ("weaklinking") as is done for other newer syscalls on
macOS.
Nikita Sobolev [Thu, 6 Oct 2022 15:20:22 +0000 (18:20 +0300)]
gh-94808: Cover `PyUnicode_Count` in CAPI (#96929)
Nikita Sobolev [Thu, 6 Oct 2022 12:16:16 +0000 (15:16 +0300)]
gh-94808: Cover `PyObject_PyBytes` case with custom `__bytes__` method (#96610)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
180909 [Wed, 5 Oct 2022 23:57:42 +0000 (07:57 +0800)]
gh-95691: Doc BufferedWriter and BufferedReader (#95703)
Guido van Rossum [Wed, 5 Oct 2022 23:42:01 +0000 (16:42 -0700)]
GH-88968: Add notes about socket ownership transfers (#97936)
Ethan Furman [Wed, 5 Oct 2022 22:25:55 +0000 (15:25 -0700)]
gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)
Brett Cannon [Wed, 5 Oct 2022 22:00:45 +0000 (15:00 -0700)]
gh-65961: Raise `DeprecationWarning` when `__package__` differs from `__spec__.parent` (#97879)
Also remove `importlib.util.set_package()` which was already slated for removal.
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Simon Legner [Wed, 5 Oct 2022 20:08:07 +0000 (22:08 +0200)]
docs(typing): add "see PEP 675" to LiteralString (#97926)
Barry Warsaw [Wed, 5 Oct 2022 18:42:26 +0000 (11:42 -0700)]
gh-97850: Remove all known instances of module_repr() (#97876)
Remove all known instances of module_repr()
Tshepang Mbambo [Wed, 5 Oct 2022 18:16:45 +0000 (20:16 +0200)]
I changed my surname early this year (#96671)
* I recently changed my name
* Update ACKS
Adam Turner [Wed, 5 Oct 2022 18:01:14 +0000 (19:01 +0100)]
gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (#97768)
:c:type:`<C type>` -> :c:expr:`<C type>`
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Pieter Eendebak [Wed, 5 Oct 2022 17:57:52 +0000 (19:57 +0200)]
gh-91539: improve performance of get_proxies_environment (#91566)
* improve performance of get_proxies_environment when there are many environment variables
* 📜🤖 Added by blurb_it.
* fix case of short env name
* fix formatting
* fix whitespace
* whitespace
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* whitespace
* Update Misc/NEWS.d/next/Library/2022-04-15-11-29-38.gh-issue-91539.7WgVuA.rst
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
dependabot[bot] [Wed, 5 Oct 2022 17:56:42 +0000 (10:56 -0700)]
build(deps): bump actions/stale from 5 to 6 (#97701)
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 6.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v6)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
180909 [Wed, 5 Oct 2022 17:52:59 +0000 (01:52 +0800)]
GH-95172 Make the same version `versionadded` oneline (#95172)
* Make the same version versionadded oneline
* Format versionadded for enum.rst
* Format versionadded
A single line versionadded was reading better.
Co-authored-by: Senthil Kumaran <senthil@python.org>
Kumar Aditya [Wed, 5 Oct 2022 17:15:31 +0000 (22:45 +0530)]
gh-88050: Fix asyncio subprocess to kill process cleanly when process is blocked (#32073)
Adam Turner [Wed, 5 Oct 2022 15:22:28 +0000 (16:22 +0100)]
gh-93738: Documentation C syntax (Function glob patterns -> literal markup) (#97774)
Oleg Iarygin [Wed, 5 Oct 2022 14:31:43 +0000 (18:31 +0400)]
gh-93357: Port test cases to IsolatedAsyncioTestCase, part 2 (#97896)
This fixes the buildbots.
Serhiy Storchaka [Wed, 5 Oct 2022 11:21:16 +0000 (14:21 +0300)]
gh-95196: Disable incorrect pickling of the C implemented classmethod descriptors (GH-96383)
Serhiy Storchaka [Wed, 5 Oct 2022 09:51:58 +0000 (12:51 +0300)]
gh-97758: Fix a crash in getpath_joinpath() called without arguments (GH-97759)
Serhiy Storchaka [Wed, 5 Oct 2022 09:48:59 +0000 (12:48 +0300)]
gh-74696: Pass root_dir to custom archivers which support it (GH-94251)
Co-authored-by: Éric <merwok@netwok.org>
Jia Junjie [Wed, 5 Oct 2022 08:47:54 +0000 (16:47 +0800)]
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (#97662)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Irit Katriel [Wed, 5 Oct 2022 07:52:35 +0000 (08:52 +0100)]
gh-87092: bring compiler code closer to a preprocessing-opt-assembler organisation (GH-97644)
Guido van Rossum [Wed, 5 Oct 2022 06:49:10 +0000 (23:49 -0700)]
GH-96704: Add {Task,Handle}.get_context(), use it in call_exception_handler() (#96756)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Adam Turner [Wed, 5 Oct 2022 00:56:20 +0000 (01:56 +0100)]
gh-93738: Documentation C syntax (:c:type:`PyTypeObject*` -> :c:expr:`PyTypeObject*`) (#97778)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
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.