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

May produce longer than 6 character line #3

Open
rampion opened this issue Jun 2, 2017 · 0 comments
Open

May produce longer than 6 character line #3

rampion opened this issue Jun 2, 2017 · 0 comments

Comments

@rampion
Copy link

rampion commented Jun 2, 2017

For example, this input file produces 8 character lines:

$ cat input.py
print "α β γ"
$ python max6.py input.py output.py
$ cat output.py
a = ""
a+='p'
a+='r'
a+='i'
a+='n'
a+='t'
a+=' '
a+='"'
b='\xce'
a+=b
b='\xb1'
a+=b
a+=' '
b='\xce'
a+=b
b='\xb2'
a+=b
a+=' '
b='\xce'
a+=b
b='\xb3'
a+=b
a+='"'
b='\n'
a+=b
exec a

See this gist for a sample ascii python input file that produces an 8 character line.

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