| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
(GH-119150) (#119324)
The supported mode values are 'r', 'w', and 'b', or a combination of those.
(cherry picked from commit 62a29be5bb01c2d0f72d8f9b1b5539816e65310c)
Co-authored-by: Daniel Williams <dann0a@gmail.com>
|
|
|
|
|
|
|
|
| |
GH-110383: Improve Tutorial for Input Ouput (GH-119230)
(cherry picked from commit 9db2fd7edaa9d03e8c649c3bb0e8d963233cde22)
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
|
|
|
|
| |
line number (GH-119221) (#119261)
|
|
|
|
|
|
|
|
|
|
|
| |
* expand on What's New entry for PEP 667 (including porting notes)
* define 'optimized scope' as a glossary term
* cover comprehensions and generator expressions in locals() docs
* review all mentions of "locals" in documentation (updating if needed)
* review all mentions of "f_locals" in documentation (updating if needed)
(cherry picked from commit e870c852c0ea96fa4e4569e9c39c7ceb80ce858d)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
guide (GH-119232) (#119284)
gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232)
* Remove description of issue fixed in 3.5 from autospeccing guide
* Make autospeccing note text more succint and lint whitespace
* Add linting changes (missed in last commit)
---------
(cherry picked from commit 7e57640c7ec6b7b5ce9b5eac465f6b771fd6ae69)
Co-authored-by: Shauna <shaunagm@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
|
|
|
|
|
|
| |
gh-108267 Fix another dataclasses docs typo (GH-119277)
(cherry picked from commit 423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-118784) (GH-119251)
It was set to 2 in 65f5e586a1239ed1a66d8284773d7b02ce40e480 (GH-98592).
(cherry picked from commit e188527c343c74574d481b77c30063db1436e62b)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-119207) (GH-119250)
Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
(cherry picked from commit 6b80a5b20f31a067bd1c374295608df5f1210f49)
Co-authored-by: Tialo <65392801+Tialo@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
locals argument (GH-119235) (#119239)
DOCS: Suggest always calling exec with a globals argument and no locals argument (GH-119235)
Many users think they want a locals argument for various reasons but they do not
understand that it makes code be treated as a class definition. They do not want
their code treated as a class definition and get surprised. The reason not
to pass locals specifically is that the following code raises a `NameError`:
```py
exec("""
def f():
print("hi")
f()
def g():
f()
g()
""", {}, {})
```
The reason not to leave out globals is as follows:
```py
def t():
exec("""
def f():
print("hi")
f()
def g():
f()
g()
""")
```
(cherry picked from commit 7e1a130b8ff1ed8b3a5f00fe0f06d3916b852216)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit e406b399f9f677cda3d48ed8d7c9d29a173f51f3)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
|
|
|
|
|
|
| |
typing docs: Fix formatting issue (GH-119210)
(cherry picked from commit 72d07dd30bc10751fe0298915c918eb08e555a7a)
Co-authored-by: David Foster <david@dafoster.net>
|
|
|
|
|
|
|
|
| |
Nobody has been using a Sun machine for a long time. When I saw
this sentence in a lightning talk just now, I thought it was talking
about sending Python code on a spacecraft.
(cherry picked from commit 697465ff88e49d98443025474e5b534adfba2cb0)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
|
|
|
|
|
| |
docs: make mimalloc license text literal (GH-119046)
(cherry picked from commit 691429702f1cb657e65f4e5275bb5ed16121d2b7)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
|
|
|
| |
(cherry picked from commit 0f5e8bed636c2f29701e5a1965d1b088d33abbf0)
|
|
|
|
| |
(gh-119136)
|
|
|
|
|
|
| |
(GH-119082) (#119097)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
|
|
|
|
|
|
| |
Use literal syntax in origin property (GH-119029)
(cherry picked from commit 66b73e9724fc376715ae264c8282dc1e981e4f17)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
|
|
|
|
| |
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
I honestly forgot this slipped into 3.13, but I think it's worth highlighting more, as it is a PEP-sized change that makes the type system significantly more powerful.
@Yhg1s I think it's also worth mentioning in your release announcements.
(cherry picked from commit ee13797dec988884f8792144fe5b3d7f5c8083c9)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
| |
|
|
|
|
| |
equivalents (gh-118977) (#119043)
|
|
|
|
|
|
|
|
|
| |
`functools.update_wrapper` (GH-119012) (#119013)
gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012)
(cherry picked from commit b04c497f187b0b474e431a6d8d282269b40ffe52)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
|
|
|
|
|
| |
(GH-118964) (#118991)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
|
|
|
|
| |
`secrets.randbelow` in `secrets.rst` (GH-118098) (GH-118906)
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098)
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
(cherry picked from commit c444362c6e0b6c01f49c3bee864100f52bd3b640)
Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit e85e8deaf3220c8d12b69294e45645aaf20187b9)
Co-authored-by: Dobatymo <Dobatymo@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 7ac933e2609b2ef9b08ccf9c815b682b0e1ede2a)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-118854) (#118871)
(cherry picked from commit 68fbc00dc870f6a8dcbecd2ec19298e21015867f)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
| |
Update docs for CVE-2024-4030 reference
|
|
|
|
|
|
|
| |
(GH-118792)
(cherry picked from commit 05c2fe1acda9ea5a57061642c36e8b73bb4fbba4)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-117099) (#118790)
docs: module page titles should not start with a link to themselves (GH-117099)
(cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
|
|
|
|
|
|
| |
Docs: fix typos in documentation (GH-118752)
(cherry picked from commit 7b0c247f1c176e092777fce4677a00f22c738b3c)
Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
|
| |
|
|
|
|
|
| |
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
|
|
| |
Regen dependencies
|
|
|
|
|
|
| |
Make a rough editorial pass over Python 3.13's What's New document. Add the
release highlights, remove or merge some duplicated entries, and reorder
some of the sections (removals should really go before future deprecations).
|
| |
|
| |
|
|
|
| |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Callbacks registered in the tkinter module now take arguments as
various Python objects (int, float, bytes, tuple), not just str.
To restore the previous behavior set tkinter module global wantobject to 1
before creating the Tk object or call the wantobject() method of the Tk object
with argument 1.
Calling it with argument 2 restores the current default behavior.
|
|
|
|
| |
(#118693)
|
|
|
|
|
|
|
| |
The provided example was incorrect:
- The example enum was missing the `int` mixin as implied by the context
- The value of `int('1a', 16)` was incorrectly given as 17
(should be 26)
|
|
|
|
| |
in Python 3.13 (#118697)
|
| |
|
| |
|
|
|
| |
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
|
|
|
|
|
|
|
|
| |
Now, such classes will no longer require changes in Python 3.13 in the normal case.
The test suite for robotframework passes with no DeprecationWarnings under this PR.
I also added a new DeprecationWarning for the case where `_field_types` exists
but is incomplete, since that seems likely to indicate a user mistake.
|
|
|
|
| |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
| |
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
|
|
|
|
| |
(GH-118645)
|