[Python-Dev] Nested scopes core dump

Guido van Rossum guido@digicool.com
Tue, 20 Mar 2001 09:32:00 -0500


> > Checking for a dup key in PyDict_SetItem() before calling dictresize()
> > slows things down.  Checking in insertdict() is wrong because
> > dictresize() uses that!
> 
> Maybe you could do the check for resize *after* the call to
> insertdict?  I think that would work, but I wouldn't like to go
> messing with such a performance critical bit of code without some
> careful thinking.

No, that could still decide to resize, couldn't it?

--Guido van Rossum (home page: http://www.python.org/~guido/)