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 <1270162035.17.0.91267039659.issue1683368@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
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: <1270162035.17.0.91267039659.issue1683368@psf.upfronthosting.co.za>
2010-04-01 22:47:13jonashlinkissue1683368 messages
2010-04-01 22:47:12jonashcreate