You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Identifiers starting with a reserved keyword are treated as reserved keywords #29
I noticed that dump() puts quotes around identifiers that only start with a reserved keyword. For example: internal_parameter would be dumped as "internal_parameter".
The issue seems to be in the regex that is created in lib._is_reserved_word(). Just appending $ to the whole pattern so that it reads _reserved_word_re = re.compile('|'.join(['break', ..., 'with']) + '$') fixes it.
Activity
dpranke commentedon Jan 14, 2020
I apologize for the delay in getting to this. You're right, it's a bug, and I'll try to get a patch posted shortly.
Note bug fixes #30, #29 in the README, fix other typos.
dpranke commentedon Jan 31, 2020
Okay, this should be fixed now in v0.9.0, which is live on PyPI.