Nick Coghlan wrote: > Putting the essential parts in > __new__ means never having to include the instruction that "you must > call this classes __init__ method when subclassing and overriding > __init__" into any API documentation I write.
I always assume that I *do* have to call the base __init__ if I override it, unless something explicitly says that I don't. And I assume other people follow the same rule, so I don't feel obliged to spell it out when I document my own classes. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com