Message102136
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:15 | jonash | set | recipients:
+ jonash, gvanrossum, georg.brandl, rhettinger, terry.reedy, gregory.p.smith, jcea, Rhamphoryncus, blakeross, benjamin.peterson, KayEss |
2010-04-01 22:47:15 | jonash | set | messageid: <1270162035.17.0.91267039659.issue1683368@psf.upfronthosting.co.za> |
2010-04-01 22:47:13 | jonash | link | issue1683368 messages |
2010-04-01 22:47:12 | jonash | create | |
|