-
Notifications
You must be signed in to change notification settings - Fork 58
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
Can’t safely put NUL or CR bytes inside a double-quoted string #186
Comments
I've fixed the null byte issue, but the CR issue seems to be introduced by Python. I'll need to investigate more for that one. |
If you replace (It may be cleaner, but more work, to open in binary mode and use |
|
There are similar issues with
|
Inside a double-quoted string, Pyth translates CR (
\r
) to LF (\n
). NUL bytes (\000
) seem to work unless followed by a digit 0–7, because Pyth translates them to\0
instead of\000
.The text was updated successfully, but these errors were encountered: