Life's better without builtins? (was: Life's better without braces)

Gareth McCaughan Gareth.McCaughan at pobox.com
Fri Feb 25 13:35:00 EST 2000


Niels Diepeveen wrote:

> Do you have some source code of this? I can't think of a way to do
> reload() or tuple().

What's wrong with this?

    def tuple(seq):
      if len(seq)==0: return ()
      else: return (seq[0],) + tuple(seq[1:])

-- 
Gareth McCaughan  Gareth.McCaughan at pobox.com
sig under construction



More information about the Python-list mailing list