1.1 --- a/lib/builtins.py Tue Oct 28 01:08:06 2008 +0100
1.2 +++ b/lib/builtins.py Sat Nov 08 21:15:11 2008 +0100
1.3 @@ -262,17 +262,10 @@
1.4
1.5 # Various types.
1.6
1.7 -class EllipsisType: pass
1.8 +class ellipsis: pass
1.9 class NoneType: pass
1.10 class NotImplementedType: pass
1.11
1.12 -# Special values.
1.13 -
1.14 -True = bool()
1.15 -False = bool()
1.16 -Ellipsis = EllipsisType()
1.17 -NotImplemented = NotImplementedType()
1.18 -
1.19 # General functions.
1.20 # NOTE: Some of these are actually provided by classes in CPython.
1.21 # NOTE: We may refuse to support some of these in practice, such as...
1.22 @@ -331,4 +324,17 @@
1.23 def vars(obj=None): pass
1.24 def zip(*args): pass
1.25
1.26 +# Reference some names to ensure their existence. This should be everything
1.27 +# mentioned in a get_builtin or load_builtin call. Instances from this module
1.28 +# should be predefined constants.
1.29 +
1.30 +function
1.31 +list
1.32 +tuple
1.33 +xrange
1.34 +AttributeError
1.35 +StopIteration
1.36 +TypeError
1.37 +ellipsis
1.38 +
1.39 # vim: tabstop=4 expandtab shiftwidth=4