Skip to content
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

Strings are not being parsed #43

Closed
fabi321 opened this issue May 10, 2023 · 0 comments
Closed

Strings are not being parsed #43

fabi321 opened this issue May 10, 2023 · 0 comments

Comments

@fabi321
Copy link

fabi321 commented May 10, 2023

when I parse the string `'\0\n\ta', the escape sequences are not being parsed.

tree = ast.parse("a='\\0\\n\\ta'")

leads to the string node:

String: {} 3 keys
  s: '\\0\\n\\ta'
  delimiter: SINGLE_QUOTE

however, it should look like:

String: {} 3 keys
  s: '\x00\n\ta'
  delimiter: SINGLE_QUOTE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant