1.1 --- a/lib/builtins.py Mon Mar 21 01:27:27 2011 +0100
1.2 +++ b/lib/builtins.py Wed Mar 23 00:58:57 2011 +0100
1.3 @@ -4,7 +4,7 @@
1.4 Simple built-in classes and functions. Objects which provide code that shall
1.5 always be compiled should provide docstrings.
1.6
1.7 -Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -279,6 +279,9 @@
1.13 pass
1.14
1.15 class tuple(object):
1.16 +
1.17 + #"Implementation of tuple."
1.18 +
1.19 def __init__(self, args): pass
1.20
1.21 def __getitem__(self, index):
1.22 @@ -291,7 +294,7 @@
1.23
1.24 "Return a slice starting from 'start', with the optional 'end'."
1.25
1.26 - return tuple(_getslice(self, start, end))
1.27 + return _tuple(_getslice(self, start, end))
1.28
1.29 def __len__(self): pass
1.30 def __add__(self, other): pass
1.31 @@ -612,6 +615,7 @@
1.32 def _isinstance(obj, cls): pass
1.33 def _print(dest, *args): pass
1.34 def _printnl(dest, *args): pass
1.35 +def _tuple(l): pass
1.36
1.37 # Reference some names to ensure their existence. This should be everything
1.38 # mentioned in a get_builtin or load_builtin call. Instances from this module