Skip to content

'If' statement bug #53

Open
Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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 [email protected] on 13 May 2012 at 9:15

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions