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

Could be reduced to five-char-max #4

Closed
sethmlarson opened this issue Jun 2, 2017 · 5 comments
Closed

Could be reduced to five-char-max #4

sethmlarson opened this issue Jun 2, 2017 · 5 comments

Comments

@sethmlarson
Copy link

sethmlarson commented Jun 2, 2017

Six characters is far too many, I can barely fit the code generated by this tool on my terminal!
I suggest moving to a five character maximum with the following technique:

c=chr
a=''
i=255
b=c(
i)
a+=b

# ... And so on...

exec(
a)

This could be reduced to 4 but for the sake of compatibility with Python 2 I've stayed at 5. This is the obviously the best reason to upgrade to Python 3.

@christopherjenness
Copy link

Line continuations sort of break the spirit of the rule.

@UsmannK
Copy link

UsmannK commented Jun 2, 2017

This could also help with #3

@sethmlarson
Copy link
Author

We're not about spirit, we're about stone-cold rules that aren't allowed to be broken. 😉

@szabolcsdombi
Copy link

Hopefully this will be the style guide for the next python major version.
This project is awesome.

@zbanks
Copy link

zbanks commented Jun 4, 2017

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

5 participants