[PyPy-issue] [issue568] __repr__ lost in translation

AliaK pypy-dev-issue at codespeak.net
Sat Nov 27 08:17:56 CET 2010

New submission from AliaK <alia_khouri at yahoo.com>:

As of pypy-trunk revision 79591 on ubuntu maverick, the result of translating
the attached (klass.py) via "../pypy/translator/goal/translate.py klass.py"
produces an executable which incorrectly represents the class instance, by
somehow ignoring __repr__ logic.

so ./klass-c produces:

<Person object at 0xb730f038>

when it should output the correct:

Person(name='sa', age='21')

effort: ???
files: klass.py
messages: 1853
nosy: alia_khouri, pypy-issue
priority: bug
release: ???
status: unread
title: __repr__ lost in translation

PyPy development tracker <pypy-dev-issue at codespeak.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klass.py
Type: text/x-python-script
Size: 649 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20101127/b0f5d4ce/attachment.bin>

More information about the Pypy-issue mailing list