[Python-Dev] python -O weirdness

Christian Tismer tismer@tismer.com
Fri, 07 Apr 2000 20:37:54 +0200


Vladimir Marangozov wrote:
> 
> Christian Tismer wrote:
> >
> > Guido van Rossum wrote:
> > ...
> > > The function name is not taken into account for the comparison.  Maybe
> > > it should?
> >
> > Absolutely, please!
> 
> Honestly, no. -O is used for speed, so showing the wrong symbols is
> okay. It's the same in C.

Not ok, IMHO. If the name is not guaranteed to be valid, why
should it be there at all? If I write code that relies on
inspecting those things, then I'm hosed.
I'm the last one who argues against optimization.
But I'd use either no name at all, or a tuple with all folded names.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com