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 jonash
Recipients KayEss, Rhamphoryncus, benjamin.peterson, blakeross, georg.brandl, gregory.p.smith, gvanrossum, jcea, jonash, rhettinger, terry.reedy
Date 2010-04-01.22:47:12
SpamBayes Score 9.132e-06
Marked as misclassified No
Message-id <>
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 :-)
Date User Action Args
2010-04-01 22:47:15jonashsetrecipients: + jonash, gvanrossum, georg.brandl, rhettinger, terry.reedy, gregory.p.smith, jcea, Rhamphoryncus, blakeross, benjamin.peterson, KayEss
2010-04-01 22:47:15jonashsetmessageid: <>
2010-04-01 22:47:13jonashlinkissue1683368 messages
2010-04-01 22:47:12jonashcreate