| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Automerge-Triggered-By: @brettcannon
(cherry picked from commit ba18c0b13ba3c08077ea3db6658328523823a33f)
Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
|
|
|
|
| |
(GH-21668)
|
|
|
|
|
| |
(cherry picked from commit 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
|
|
|
|
|
| |
(cherry picked from commit 5e3826785dcc64f8e1a8a7bde11b88fbb40943be)
Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
|
|
|
|
|
|
|
| |
Co-Authored-By: Rishi <rishi93dev@gmail.com>
(cherry picked from commit 13efaec)
Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-18851)
(cherry picked from commit f117cef25b5ffc4db9fbe373ddb65e14f59f0397)
Co-authored-by: Shankar Jha <shankarj67@gmail.com>
|
|
|
|
|
|
| |
PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.
(cherry picked from commit 0028c14073109595e7532ec00bb1e8bf39ecfb4d)
Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
|
|
|
|
|
|
| |
Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".
(cherry picked from commit f9bf0157999cb4adbcfd7e9bf526bfa48601e128)
Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
| |
(GH-15312)
These changes updates the doc to comprehensively mention the behaviour of gather.cancel()
Automerge-Triggered-By: @asvetlov
(cherry picked from commit d42528a3a2c7d79fd2e6c9f2a02f3ce12d44c8cc)
Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
|
|
|
|
|
|
| |
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
(cherry picked from commit 10e466448f67850ed7bb2e2a4e7f017f2b050cad)
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-21474)
GH-msg373510
[bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document.
Automerge-Triggered-By: @1st1
(cherry picked from commit 2a5181829af394b82e8e8c917183c709ee72a2b7)
Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-21525)
(cherry picked from commit 9b01c598ca2576a1056816e85dd84bf5f9c74688)
Co-authored-by: Jordan Speicher <uSpike@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
This should also fix the syntax highlighting for these code blocks
Automerge-Triggered-By: @csabella
(cherry picked from commit 5e5c0f98667c9280c6d27b3db98a6cad2cc89077)
Co-authored-by: Christopher Yeh <chrisyeh96@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
The phrase "At any time during execution," was repeated twice.
Automerge-Triggered-By: @Mariatta
(cherry picked from commit 4f28f75deefc6e8f65694f96f1a40b0a26fc385d)
Co-authored-by: Paul McMillan <paul@mcmillan.ws>
|
|
|
|
|
| |
(cherry picked from commit 344dce312a0cf86d5a5772d54843cc179acaf6e3)
Co-authored-by: Nima Dini <nima.dini@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 6fc732a2116e2c42b0431bb7e2a21719351af755)
Co-authored-by: marload <rladhkstn8@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
Keywords are present in the main module tab completion lists generated by rlcompleter, which is used by REPLs on *nix. Add all keywords to IDLE's main module name list except those already added from builtins (True, False, and None) . This list may also be used by Show Completions on the Edit menu, and its hot key.
Rewrite Completions doc.
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
(cherry picked from commit bce2eb4646021910aa4074d86f44a09b32d0b2b2)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
|
|
| |
page (GH-21413)
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit 61bb24a270d15106decb1c7983bf4c2831671a75)
Co-authored-by: marload <rladhkstn8@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit c4a65ed7fe342bd18b5a5b0eea3470dc4fc31160)
Co-authored-by: Ogi Moore <ognyan.moore@jacobs.ucsd.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* improve control flow docs
* Add also
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit d12af71047f0eae86440654d3ea74c032c7c3558)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Clarify number of scopes
* Indicate 3 or 4
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 9ed3cd8ba052b395ab50692bb65988b065d68e27)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
|
|
|
|
|
|
| |
PyUnicode_EncodeDecimal is not used actually.
(cherry picked from commit 16f451744b7f4653ca9db4b4bedbb6fc5c0de154)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
|
|
|
|
|
| |
It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
(cherry picked from commit 9c8441712230660fedac818ed50e7cdd89e4c51d)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b40e434386cd94a367d4a256e3364771140160e7)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
|
| |
Co-authored-by: Tomer Vromen <tomer.vromen@intel.com>
(cherry picked from commit 741008a57bdc95090b8be6ded5a9fd3f17f7bf21)
Co-authored-by: tomerv <tomerv@gmail.com>
|
|
|
|
|
|
|
|
| |
Update FAQ to include:
* The new yearly release schedule from PEP 602
* Estimated users from "tens of thousands" to "millions"
(cherry picked from commit 3fa4799c3f9d9de7cac30e5db3627e9e125b9ce5)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 2ea6a9928e4fa135888cc8f4733c28d93e642301)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
| |
|
|
|
|
|
| |
(cherry picked from commit 02134dae448c7885c9c07adfc6970f878db33372)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
|
|
|
| |
(GH-21147)
|
|
|
|
|
|
| |
Automerge-Triggered-By: @merwok
(cherry picked from commit cf18c9e9d4d44f6671a3fe6011bb53d8ee9bd92b)
Co-authored-by: Arisaka97 <solitaire2312@gmail.com>
|
|
|
|
|
|
|
| |
(GH-20283)
(cherry picked from commit bf2e515fa43406d4bd9c4c53ecc9364034d8f9f6)
Co-authored-by: Gareth Rees <gdr@garethrees.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
* Add a glossary entry for the term "callback"
* Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit a16d6970496cae5ecab5aaea2b416a4b77527cc2)
Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
|
|
|
|
|
|
|
|
|
|
| |
Related to https://github.com/pypa/twine/issues/638 and https://github.com/pypa/packaging.python.org/issues/730, I wrote a spec based on the one that was removed in https://github.com/python/cpython/pull/13087. However, a Google search for "pypirc" turned up at least one [blog post](https://truveris.github.io/articles/configuring-pypirc/) that links to https://docs.python.org/3/distutils/packageindex.htmlGH-the-pypirc-file, which now just links to this document. So, I thought a link to the spec would be handy.
Automerge-Triggered-By: @jaraco
(cherry picked from commit af157fad286c00ff204e86d8556648cbb53ba99e)
Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
|
|
|
|
|
|
|
|
|
|
| |
(GH-20860)
(cherry picked from commit dea3223740127ac13f984c1d38f127ab6701af44)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Automerge-Triggered-By: @brettcannon
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-20687) (GH-20792)
The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration.
These notes present the user with a problem that has no easy solution.
I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress.
I asked for confirmation and @pitrou agreed that these notes could be removed:
https://github.com/python/cpython/commit/c1baa601e2b558deb690edfdf334fceee3b03327GH-commitcomment-39514438.
(cherry picked from commit 1642c0ef750f96664a98cadb09301d492098d2fb)
Co-authored-by: Daniel Fortunov <asqui@users.noreply.github.com>
Automerge-Triggered-By: @pitrou
|
|
|
|
|
|
|
|
|
| |
Follow-up to GH-8014
(cherry picked from commit 7aed0524d4129766a6032326949ef7f91f6f6dfc)
Co-authored-by: Éric Araujo <merwok@netwok.org>
Automerge-Triggered-By: @merwok
|
|
|
|
|
| |
arithmetic (GH-20745)
This reverts commit d6965ff026f35498e554bc964ef2be8f4d80eb7f.
|
|
|
| |
This reverts commit c6ecd9c14081a787959e13df33e250102a658154.
|
|
|
|
|
|
|
|
|
| |
(GH-20738)
(cherry picked from commit 3ab3475c42c8ee5580f4ea1aeda73ebc8e5d5478)
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
|
|
|
|
|
|
|
|
| |
Also added an example in shutil in order to make more clear how they are to be used.
Initially reported by Weinan Li on bpo.
(cherry picked from commit 7633371dace67aaa21eb4b86f889441571ec4167)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before
```
content.txt is 42 bytes in size and isa regular file.
folder is 420 bytes in size and isa directory.
magic is 4200 bytes in size and issomething else.
```
After:
```
content.txt is 42 bytes in size and is a regular file.
folder is 420 bytes in size and is a directory.
magic is 4200 bytes in size and is something else.
```
Automerge-Triggered-By: @orsenthil
(cherry picked from commit 7a280197f4162e5fcdde6f34701a9fa6e669190d)
Co-authored-by: Harsha Laxman <HarshaLaxman@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit fe5dd78182dbf4937bcc2b113ca7526bfad0192b)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
|
|
|
|
| |
(cherry picked from commit c8966667bbdb284c3780ef6cec8a3870935a6bb7)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 735d902b363b759df9ff00e58bbf4f7e2bde78cd)
Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
|
|
|
|
|
|
| |
Reference to PySide has been removed has it is for Qt 4, which has reached end of life.
(cherry picked from commit 4649202ea75d48e1496e99911709824ca2d3170e)
Co-authored-by: Samuel Gaist <samuel.gaist@idiap.ch>
|
| |
|
|
|
|
|
|
|
|
| |
* Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit eaca2aa117d663acf8160a0b4543ee2c7006fcc7)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
|
|
|
| |
require `_generate_next_value_` to be defined before members
|