sys._getframe() not behaving as expected
Skip Montanaro
skip at pobox.com
Mon Dec 1 23:14:13 EST 2003
Tim> [Skip Montanaro]
>> sys._getframe() is acting peculiar.
Tim> An argument < 0 is treated like 0. You want to pass 2 and 1, not
Tim> -2 and -1.
Thanks. That is the final bit of mortar needed for a small brick wall. On
python-dev, Gerrit Holl suggested two new builtins: save() and load(), which
would allow a user to save a session and later restore it. The very
simpleminded implementation of that concept is available at
http://www.musi-cal.com/~skip/python/save_session.py
Skip
More information about the Python-list
mailing list