1.1 --- a/lib/__builtins__/__init__.py Sun Oct 23 00:36:32 2016 +0200
1.2 +++ b/lib/__builtins__/__init__.py Sun Oct 23 00:37:13 2016 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Simple built-in classes and functions.
1.6
1.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016 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 @@ -19,7 +19,8 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from __builtins__.core import object, type, function, BaseException, Exception, Warning
1.17 +from __builtins__.core import function, get_using, object, type, \
1.18 + BaseException, Exception, Warning
1.19
1.20 # Exceptions.
1.21
2.1 --- a/lib/__builtins__/core.py Sun Oct 23 00:36:32 2016 +0200
2.2 +++ b/lib/__builtins__/core.py Sun Oct 23 00:37:13 2016 +0200
2.3 @@ -61,4 +61,6 @@
2.4 class Exception(BaseException): pass
2.5 class Warning(object): pass
2.6
2.7 +def get_using(callable, instance): pass
2.8 +
2.9 # vim: tabstop=4 expandtab shiftwidth=4
3.1 --- a/lib/__builtins__/span.py Sun Oct 23 00:36:32 2016 +0200
3.2 +++ b/lib/__builtins__/span.py Sun Oct 23 00:37:13 2016 +0200
3.3 @@ -66,6 +66,6 @@
3.4
3.5 "Initialise the slice with the given 'start_or_end', 'end' and 'step'."
3.6
3.7 - xrange.__init__(self, start_or_end, end, step)
3.8 + get_using(xrange.__init__, self)(start_or_end, end, step)
3.9
3.10 # vim: tabstop=4 expandtab shiftwidth=4