Tutorial - Section 4 Has Numerous Problems
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Documentation
Remember, the target audience for the tutorial are people with no prior Python knowledge. Given this, there are a few problems:
- Section 4.2: The second code example uses dictionaries but they have not been introduced - and they appear again in a bullet point in Section 4.6.
- Section 4.2: (Same code example.) Furthermore, while
usersandusers.copy()might make some intuitive sense, a brief explanation of whatitems()does seems necessary, otherwise people will think "I guess I just have to write this even though I have no idea why". - Section 4.6:
__match_args__is poorly introduced. It is explained that if it's set a certain way, it's possible to write patterns in a certain way but it's not made clear how to set it until the following example, which is about nesting patterns. This might lead readers to get stuck before it's even clarified. - Section 4.6: It seems like some of the bullet points at the end of this section were written in a rush, assume prior knowledge of Python, and do not follow the pace of the tutorial. (We've had a bunch of questions on Discord from people who essentially didn't understand anything that was written there.)
It seems like a lot of this has been copied over almost verbatim from PEP-636, which shares the same problems.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Lesen der Tutorial-Abschnitte 4.2 und 4.6 und vergleiche anschließend das zugehörige Material in PEP-636. Prüfe, dass Dictionaries und items() vor ihrer Verwendung eingeführt werden, dass match_args vor seiner Mustersyntax erklärt wird und dass die abschließenden Aufzählungspunkte für Leser ohne vorherige Python-Kenntnisse verständlich sind. Als erledigt gilt die Aufgabe, wenn diese Abschnitte ohne die in der Issue beschriebenen Discord-Fragen verständlich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100