Repository navigation
Quickstart sets r.encoding after r.text, which raises ValueError #3801
Unanswered
HighnessAtharva
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Following the quickstart in order in one Python session, the "Text Encoding" section reads
r.textand then shows:On the current release this raises:
The setter's docstring documents that rule, but the quickstart does not, so a reader who runs the snippets in order hits it. A one-line change would fix it: "If you need to override the standard behaviour, set the encoding before you access
r.text." I can open a PR with that wording if it helps.Found by running the quickstart in a clean
python:3.11-slimcontainer with FirstRun.All reactions