[doc] Document that __getattr__ can be called before __init__ (e.g. by pickle)

Offen
#60,446 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
35/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
documentation

Rechercherichtung

Start by locating the Python documentation for getattr and the pickle-related behavior described in the issue. Update the relevant documentation to state that getattr may be called before init, using pickle as an example, then run the applicable documentation checks and verify the rendered wording.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

3.11 docs stdlib type-feature
BPO 16242
Nosy @pitrou, @avassalotti

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2012-10-15.18:11:13.593>
labels = ['3.11', 'type-feature', 'library', 'docs']
title = '[doc]  Document that __getattr__ can be called before __init__ (e.g. by pickle)'
updated_at = <Date 2021-11-26.23:10:29.318>
user = 'https://bugs.python.org/powderflask'

bugs.python.org fields:

activity = <Date 2021-11-26.23:10:29.318>
actor = 'iritkatriel'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation', 'Library (Lib)']
creation = <Date 2012-10-15.18:11:13.593>
creator = 'powderflask'
dependencies = []
files = []
hgrepos = []
issue_num = 16242
keywords = []
message_count = 2.0
messages = ['172993', '223114']
nosy_count = 4.0
nosy_names = ['pitrou', 'alexandre.vassalotti', 'docs@python', 'powderflask']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue16242'
versions = ['Python 3.11']

Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
558

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus python/cpython

Alle Issues in python/cpython

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.