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

tinypy does not handle tabs in input files correctly. #56

Open
GoogleCodeExporter opened this issue Oct 1, 2015 · 0 comments
Open

tinypy does not handle tabs in input files correctly. #56

GoogleCodeExporter opened this issue Oct 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Try to compile:

def func(a):
    if a<0.5:
        return 0,0
    else:
        return 1.0

print(func(3))

But use tabs infront to the "return" statements.

2. Run the compiler  it prints this message:

Exception:
error: tokenize
   4:   return 0,0
      ^

What is the expected output? What do you see instead?

    I'd expect tinypy to expand tabs in the input file into 
    equivalent spaces, like Cpython does.  Something like the 
    unix command expand:

    expand -8 < tabs.py > notabs.py


What version of the product are you using? On what operating system?

    tinypy version 1.1 OSX 10.7.5

Please provide any additional information below.

    Please see the attached file.

Original issue reported on code.google.com by [email protected] on 17 Feb 2013 at 8:02

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant