[Python-Dev] Consistency questions

Paul Prescod paul@prescod.net
Thu, 20 Jul 2000 12:58:19 -0500


Skip Montanaro wrote:
> 
> ...
> 
> I don't think so.  I suspect most people use dir() interactively to see what
> attributes an object supports and would appreciate the improved
> functionality.  Besides, we are talking 2.0 here.  Nothing wrong with a
> little breakage... ;-)

I think that Thomas is right that there is going to be a fair bit of
code that manually worked around this limitation in dir and now will get
two copies of some attributes. What do you think about

attrs( foo )

It's more descriptive anyhow.
-- 
 Paul Prescod - Not encumbered by corporate consensus
"Hardly anything more unwelcome can befall a scientific writer than 
having the foundations of his edifice shaken after the work is 
finished.  I have been placed in this position by a letter from 
Mr. Bertrand Russell..." 
 - Frege, Appendix of Basic Laws of Arithmetic (of Russell's Paradox)