Life's better without builtins? (was: Life's better without braces)
Moshe Zadka
moshez at math.huji.ac.il
Fri Feb 25 09:42:19 EST 2000
On Fri, 25 Feb 2000, Niels Diepeveen wrote:
> Do you have some source code of this? I can't think of a way to do
> reload() or tuple().
def reload(module):
del sys.modules[module]
exec 'import '+module
def tuple(seq):
ret = ()
for item in seq:
ret = ret + (item,)
return ret
Ouch big time!
--
Moshe Zadka <mzadka at geocities.com>.
INTERNET: Learn what you know.
Share what you don't.
More information about the Python-list
mailing list