Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Distinguish between b'x' and 'x' in Python 2 #10

Closed
gvanrossum opened this issue Aug 10, 2016 · 0 comments · Fixed by #17
Closed

Distinguish between b'x' and 'x' in Python 2 #10

gvanrossum opened this issue Aug 10, 2016 · 0 comments · Fixed by #17

Comments

@gvanrossum
Copy link
Member

For python/typing#208 I'd like to distinguish between bytes, str and unicode, but the Python 2 tokenizer erases the difference between b'x' and 'x' in an early stage.

ddfisher pushed a commit that referenced this issue Sep 20, 2016
Fixes #10 

This is a naive fix. It only checks the first string in concatenation at CST level, for ``b`` or ``B`` prefix and sets the ``has_b`` flag in ``Str`` AST node accordingly.
tbbharaj pushed a commit to tbbharaj/typed_ast that referenced this issue Dec 6, 2021
Fix lz4.frame.decompress crash caused by incorrect realloc() usage
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant