[Python-Dev] save()/load() (original) (raw)

Phillip J. Eby pje at telecommunity.com
Mon Dec 1 23:11:20 EST 2003


At 02:27 PM 12/2/03 +1300, Greg Ewing wrote:

"Phillip J. Eby" <pje at telecommunity.com>

> What does getframe with a negative number do? Obviously it uses the time machine to look into the future a little and return a frame that is going to be called from the current function...

Actually, it appears to return the same result as sys._getframe(0). Maybe it should raise an exception for a negative value. (OTOH, maybe leaving it so that it silently does something meaningless will help discourage people from using it so often... ;) )



More information about the Python-Dev mailing list