[issue1683368] object.__init__ shouldn't allow args/kwds

dauerbaustelle report at bugs.python.org
Fri Apr 2 00:47:15 CEST 2010

dauerbaustelle <jonas at 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 <report at bugs.python.org>

More information about the Python-bugs-list mailing list