]> granicus.if.org Git - python/commit
Refactor the logic for setting f_builtins.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 5 Feb 2003 22:39:29 +0000 (22:39 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 5 Feb 2003 22:39:29 +0000 (22:39 +0000)
commitbd5cbf866f011dc170841f6eb121d74610fcc7b6
tree4cc3635e881c97d32f63013ef08f450d2d9d023e
parent64edd6ac1ddb29f7817ee44e9b376b096ffa1d55
Refactor the logic for setting f_builtins.

For the case where the current globals match the previous frame's
globals, eliminates three tests in two if statements.  For the case
where we just get __builtins__ from a module, eliminate a couple of
tests.
Objects/frameobject.c