Issue 53 in tinypy: 'If' statement bug

60 views
Skip to first unread message

codesite...@google.com

unread,
May 13, 2012, 5:16:01 AM5/13/12
to tin...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 53 by breaker....@gmail.com: 'If' statement bug
http://code.google.com/p/tinypy/issues/detail?id=53

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.

Reply all
Reply to author
Forward
0 new messages