1.1 --- a/lib/builtins.py Sun Feb 18 01:39:11 2007 +0100
1.2 +++ b/lib/builtins.py Thu Feb 22 22:06:10 2007 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Simple built-in classes and functions.
1.6
1.7 -Copyright (C) 2005, 2006 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This software is free software; you can redistribute it and/or
1.11 modify it under the terms of the GNU General Public License as
1.12 @@ -611,6 +611,16 @@
1.13 def __str__(self):
1.14 return "None"
1.15
1.16 +class slice:
1.17 + def __init__(self, start_or_end, end=None, step=None):
1.18 + if end is None:
1.19 + self.start = 0
1.20 + self.end = start_or_end
1.21 + else:
1.22 + self.start = start_or_end
1.23 + self.end = end
1.24 + self.step = step
1.25 +
1.26 class str:
1.27 __atomic__ = 1
1.28