urllib.parse - quote/unquote documentation issues
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
https://docs.python.org/3/library/urllib.parse.html
- It's my understanding that the arguement in the displayed usage shows the default. So:
urllib.parse.quote(string, safe='/', encoding=None, errors=None)
means thaterrorsdefaults toNoneType, however, the documentation just below that says:
"errors defaults to 'strict'
-
quote: There isn't a list of possible values for the "errors" argument -
unquote- There isn't a list of possible values for the "errors" argument -
unquote-
errors defaults to 'replace', meaning invalid sequences are replaced by a placeholder character.
What "placeholder character" is it that's used?
unquote
encoding defaults to 'utf-8'. errors defaults to 'replace', meaning invalid sequences are replaced by a placeholder character.
Is a single line. errors should be on a new line (all arguements for all functions really should always be on a new line unless there's a compelling reason not to. To do otherwise significantly impedes readability, while increasing the chances of misunderstanding).
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 der verlinkten Dokumentationsseite zu urllib.parse und überprüfe die Signaturen von quote und unquote sowie die Beschreibungen der umgebenden Parameter. Kläre die gemeldeten Standardwerte, die Wertelisten für errors, die Erklärung des Platzhalterzeichens und Fragen zur Formatierung, sodass auf der Seite die Argumente und das Verhalten jeder Funktion eindeutig dokumentiert sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100