This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients Sabine.maennel@gmail.com, benjamin.peterson
Date 2016-09-30.06:40:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475217619.76.0.268971427563.issue28316@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-30 06:40:19benjamin.petersonsetrecipients: + benjamin.peterson, Sabine.maennel@gmail.com
2016-09-30 06:40:19benjamin.petersonsetmessageid: <1475217619.76.0.268971427563.issue28316@psf.upfronthosting.co.za>
2016-09-30 06:40:19benjamin.petersonlinkissue28316 messages
2016-09-30 06:40:19benjamin.petersoncreate