Skip to content

urllib.parse.quote is not consistent about encoding and errors defaults #130578

@andrei-korshikov

Description

@andrei-korshikov

Documentation

https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote reads:

encoding=None, errors=None

At the same time it reads:

encoding defaults to 'utf-8'. errors defaults to 'strict'

At least, it is confusing indeed. If it is not a bug, it should be explained, I think.


Off-topic: and thank you for Python:)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions