Who am I: can a class instance determine its own name?

Carlos Ribeiro carribeiro at yahoo.com
Sun Mar 18 21:02:56 EST 2001


Alex Martelli wrote:
>(My dream is actually of a collection of bits in an attribute...

While I agree on the *principle*, I disagree on the details. Thinking about 
this as a bitmap is an artifact of historic optimization techniques. Worse 
- the performance gain is highly improbable in scripting languages like 
Python, and should be negligibe in most cases.  Any exception to this 
probably deserve to be implemented in C or some similar, highly optimized 
compiled language.

OTOH, having a set of attributes would make the code more readable and 
extensible. (the set of attributes is itself in a dictionary and would also 
be subject to the same control).


-------------------------------
Carlos Ribeiro
cribeiro-AT-mail-inet-com-br



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the Python-list mailing list