Skip to content

Make max6 Python 2/3 agnostic, and make the help usage it prints out more readable#1

Open
ervanalb wants to merge 1 commit intopetersn:masterfrom
ervanalb:master
Open

Make max6 Python 2/3 agnostic, and make the help usage it prints out more readable#1
ervanalb wants to merge 1 commit intopetersn:masterfrom
ervanalb:master

Conversation

@ervanalb
Copy link

@ervanalb ervanalb commented Jun 1, 2017

No description provided.

@ervanalb
Copy link
Author

ervanalb commented Jun 1, 2017

I wish I could find a way to run the exec command without needing a backslash. This works in python 3 but not 2:

e=exec
e(a)

and this works in 2 but not 3:
exec a

If only there were some way to combine them...

@zbanks
Copy link

zbanks commented Jun 2, 2017

Your help message is unreadble, some lines are longer than 6 characters! (notably max6.py).
Also this doesn't actually work for me; I need to call python max6.py in.py out.py

Usage:
max6.py
in.py
out.py

Makes
progs
comply
with
6 char
per
line.

@ervanalb
Copy link
Author

ervanalb commented Jun 2, 2017

@zbanks This is a problem with your setup. That line is the contents of sys.argv[0], so if you name max6.py something shorter, you won't run into this problem.

@novel-yet-trivial
Copy link

@ervanalb: Python 2 / 3 compatible:

exec(a
)

@zbanks zbanks mentioned this pull request 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

Successfully merging this pull request may close these issues.

4 participants