-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify base64.a85encode docs: *wrapcols* doesn't count the newline #119409
Conversation
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ythonGH-119409) (cherry picked from commit ffa24aa) Co-authored-by: Petr Viktorin <encukou@gmail.com>
…ythonGH-119409) (cherry picked from commit ffa24aa) Co-authored-by: Petr Viktorin <encukou@gmail.com>
GH-119482 is a backport of this pull request to the 3.12 branch. |
GH-119483 is a backport of this pull request to the 3.13 branch. |
|
When writing #119406 I noticed the wrapcol docs are unclear; the
\n
is not counted.Here's a doc fix.
Another undocumented feature is that negative wrapcol is treated as 1 (and in adobe mode, 1 is treated as 2). I don't think these edge cases need to be documented; nowadays we'd warn/error for those cases, but that's not really worth breaking backwards compatibility.
📚 Documentation preview 📚: https://cpython-previews--119409.org.readthedocs.build/