class declaration shortcut
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Mar 2 10:01:52 EST 2007
Steven D'Aprano wrote:
> Overkill? Storage of a single attribute holding a (usually short)
> string is overkill?
No, but storing the first name a class is bound to in it is a bit
of, IMHO.
> When you do that, you wouldn't expect the __name__ of
> some.module.function to change to f, and it doesn't.
But what is it for then? =) Showing the first name the class was
bound to?
Regards,
Björn
--
BOFH excuse #217:
The MGs ran out of gas.
More information about the Python-list
mailing list