dauerbaustelle <jo...@lophus.org> added the comment: What exactly is the correct solution with Python 2.6 to avoid this warning? My use case is something like
class myunicode(unicode): def __init__(self, *args, **kwargs): unicode.__init__(self, *args, **kwargs) self.someattribute = calculate_attribute_once() Shall I overwrite __new__ rather than __init__? Or what :-) ---------- nosy: +dauerbaustelle _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1683368> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com