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

Skip to first unread message

Feb 17, 2013, 3:02:24 PM2/17/13
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 56 by tinypy does not handle tabs in input
files correctly.

What steps will reproduce the problem?

1. Try to compile:

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


But use tabs infront to the "return" statements.

2. Run the compiler it prints this message:

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 < >

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: 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:
Reply all
Reply to author
0 new messages