Benjamin Peterson added the comment:

This is no different than this simpler case:

class A:
    def __init__(self, name):
        print("init {!r}".format(self))
        self.name = name
    def __repr__(self):
        return "I am {}".format(self.name)

The instance of A doesn't not have a name attribute for __repr__ to use until 
you set it.

----------
nosy: +benjamin.peterson
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28316>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to