On Fri, Apr 18, 2008 at 12:08 PM, <[EMAIL PROTECTED]> wrote: > Any guidelines on when to use __new__ vs. __init__ when sub-classing? >
Generally use __init__(). The only use-case for __new__() that I can think of is when you subclass immutable classes like str or int you generally have to use __new__() because __init__() is too late. Kent
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor