Life's better without braces
Martin von Loewis
loewis at informatik.hu-berlin.de
Fri Feb 25 14:02:09 EST 2000
Gerrit Holl <gerrit.holl at pobox.com> writes:
> These aren't:
>
> apply, buffer, coerce, compile, complex, dir, eval, exit, globals, hash,
> id, intern, locals, round, slice, type, xrange
What's wrong with
def sys.exit(status):
raise SystemExit(status)
def globals():
import sys
try:
raise ""
except:
return sys.exc_info()[2].tb_frame.f_globals
Regards,
Martin
More information about the Python-list
mailing list