kostyll / tinypy

Automatically exported from code.google.com/p/tinypy
Other
0 stars 0 forks source link

'If' statement bug #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This code (placed in class-method) works fine on python, but generates 
TypeError on TinyPy:
#=======
_list = ['test']
if _list and len(_list) != 1 or not _list[0]:
    print(str(_list))
#=======
Generates exception: "Exception: (tp_get) TypeError: ?0" in 'if' line.

What version of the product are you using? On what operating system?
SVN-latest version, Windows.

Please provide any additional information below.
It looks like the problem is in python part of TinyPy. It uses wrong internal 
registers.

Original issue reported on code.google.com by breaker....@gmail.com on 13 May 2012 at 9:15