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
sub[n] not working as expected. #37084
Comments
I'm running into what looks to be a bug in the python Using Python 1.5.2: This output is exactly what I expect, but now see what I like the hex output over the octal in 1.5, but the |
Logged In: YES The substitution is correct. Notice that the r"..." raw If you use .sub("\xFF\\1", data) instead you will achieve Note that the raw string passed to re.compile() also does |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: