Issue 56 in tinypy: tinypy does not handle tabs in input files correctly.

37 views
Skip to first unread message

codesite...@google.com

unread,
Feb 17, 2013, 3:02:24 PM2/17/13
to tin...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 56 by paulhaeb...@gmail.com: tinypy does not handle tabs in input
files correctly.
http://code.google.com/p/tinypy/issues/detail?id=56

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.

Attachments:
tabs.py 78 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages