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

tr ranges need to be expanded for maketrans #121

Open
snoopyjc opened this issue Feb 22, 2022 · 2 comments
Open

tr ranges need to be expanded for maketrans #121

snoopyjc opened this issue Feb 22, 2022 · 2 comments

Comments

@snoopyjc
Copy link

tr ranges need to be expanded for maketrans. The python maketrans call doesn't accept ranges, so wrong code is generated for like:

tr/a-z/A-Z/;
@snoopyjc
Copy link
Author

Also the length of the strings in the 2 args to maketrans must be the same.

@snoopyjc
Copy link
Author

Fixed in my v0.956 https://github.com/snoopyjc/pythonizer/

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