| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(cherry picked from commit e59334ebc9308b0f3ad048ef293c6b49e6456d1a)
Co-authored-by: Caleb Donovick <cdonovick@users.noreply.github.com>
|
| |
|
|
|
|
|
|
| |
(GH-18559)
The language reference now specifies restrictions on class namespaces. Adapted from a patch by Ethan Furman.
(cherry picked from commit fbe2e0bb8a7ee75d0f9d57682436dac7d69e202e)
Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
|
| |
|
|
|
|
| |
(cherry picked from commit 7de617455ed788e6730c40cf854c4b72b0432194)
Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit abc0c4fa9970931849b3da598c5980a5b170661e)
Co-authored-by: HongWeipeng <961365124@qq.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(cherry picked from commit d587272fe3b0fcad2f23a490e76f9f82ca7d64ef)
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
https://bugs.python.org/issue38316
Automerge-Triggered-By: @vstinner
|
| |
|
|
|
| |
(cherry picked from commit 02519f75d15b063914a11351da30178ca4ceb54b)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
| |
|
|
|
|
|
| |
__set_name__ (GH-17364)
(cherry picked from commit 1bddf890e595a865414645c6041733043c4081f8)
Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
|
| |
|
|
|
| |
(cherry picked from commit 4544e78ec4558b75bf95e5b7dfc1b5bbb07ae5f0)
Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
|
| | |
|
| |
|
|
|
| |
(cherry picked from commit 5e98f05e55d13981c7c92fb14b9c013e4227c3c1)
Co-authored-by: Catherine Alvarado <catherine@qventus.com>
|
| |
|
|
|
| |
(cherry picked from commit 1fc5bf2ff27b898e8d9460d0fbc791e83009ed71)
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
|
| |
|
|
|
| |
(cherry picked from commit 7463884f6993edcd92bec56213ee1959034fd31c)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
|
| |
|
|
|
|
| |
(GH-11174). (GH-11232)
(cherry picked from commit 2b57c43f21f891df4c6f2294a3b9e1b9029a16b6)
|
| |
|
|
|
| |
(cherry picked from commit 1ce853f37783575e2b3aaa159ddcebc8660830ef)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit a48e0eb9673ec96d1decb8a230331533cfb6138b)
Co-authored-by: wim glenn <wim.glenn@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
|
| |
access. (GH-10323)
https://bugs.python.org/issue35119
(cherry picked from commit 0bee3c36d406e47fa9f99cfc1e07b701512c4f3f)
Co-authored-by: Denis Osipov <osipov_d@list.ru>
|
| |
|
|
|
| |
(cherry picked from commit 913876d824d969f8c7431e8a9d4610a9a11a786e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit ddb961d2abe5d5fde76d85b21a77e4e91e0043ad)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 3c1b590472d567e22a607ba31271865cd90c8e9b)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
| |
|
|
|
|
| |
This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
(cherry picked from commit 00818c8ffd657f9ec727e366bfffd9c2135fa5ab)
Co-authored-by: Zach Mitchell <zmitchell@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 8ae8e6af37f29163ee263e293570cb892dc5b5d5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit bd5f96581bf23f6d05fc106996428a8043b6b084)
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 496431ffb6c29719332bf2af773349e8dd85e45a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
`int` fails back to `__trunc__` is `__int__` isn't defined, so cover
that in the docs.
(cherry picked from commit 308eab979d153f1ab934383dc08bc4546ced8b6c)
Co-authored-by: Eric Appelt <eric.appelt@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit aec7532ed3ccbd29d3429a3f375e25f956c44003)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
property (GH-5543)
When `__getattr__` is implemented, attribute lookup will always fall back to that,
even if the initial failure comes from `__getattribute__` or a descriptor's `__get__`
method (including property methods).
(cherry picked from commit d1f318105b8781b01f3507d5cb0fd841b977d5f2)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
| |
|
|
|
|
| |
Make it clear that setting __class__ on a module has worked since 3.5,
but support for __getattr__ and __dir__ on module instances requires 3.7+
Patch by Cheryl Sabella.
|
| |
|
|
|
|
| |
* Fix #32377: improve __del__ docs and fix mention about resurrection
* Mention that CPython only calls __del__ once.
|
| |
|
|
|
| |
Implement PEP 562: module __getattr__ and __dir__.
The implementation simply updates module_getattro and
module_dir.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
f_trace_lines: enable/disable line trace events
f_trace_opcodes: enable/disable opcode trace events
These are intended primarily for testing of the interpreter
itself, as they make it much easier to emulate signals
arriving at unfortunate times.
|
| |
|
| |
The cell_contents attribute of the cell object is now writable.
|
| |
|
|
|
|
|
|
| |
* correct __slots__ documentation with minimal changes
* add multiple inheritance info
* remove mapping from description
|
| |
|
|
|
|
|
|
|
|
| |
The data model section of the language reference was written well
before the zero-argument form of super() was added.
To avoid giving the impression that they're doing something
unusual, this updates the description of `__new__` and `__init__`
to use the zero-argument form.
Patch by Cheryl Sabella.
|
| |
|
|
| |
rather than `format(str(self), '')`.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Builtin container types have two potential link targets in the docs:
- their entry in the list of builtin callables
- their type documentation
This change brings `bytes` and `bytearray` into line with other
container types by having cross-references default to linking to
their type documentation, rather than their builtin callable entry.
|
| |
|
|
| |
collections. (#1263)
|
| |
|
|
| |
(#1256)
|
| |\ |
|
| | |
| |
| |
| | |
Patch by Jim Fasarakis-Hilliard.
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
Patch by Jim Fasarakis-Hilliard.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| | |
Issue #28383: __hash__ documentation recommends naive XOR to combine but this
is suboptimal. Update the doc to suggest to reuse the hash() method using a
tuple, with an example.
|
| | |
| |
| |
| | |
Patch by Eric Appelt.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
|
| | | |
|