1.1 --- a/lib/__builtins__/int.py Sat Nov 12 23:27:04 2016 +0100
1.2 +++ b/lib/__builtins__/int.py Tue Nov 15 19:12:12 2016 +0100
1.3 @@ -23,9 +23,18 @@
1.4 import native
1.5
1.6 class int(object):
1.7 +
1.8 + "An integer abstraction."
1.9 +
1.10 def __init__(self, number_or_string=None):
1.11 - # Note member.
1.12 - self.__data__ = 0
1.13 +
1.14 + "Initialise the integer with the given 'number_or_string'."
1.15 +
1.16 + if isinstance(number_or_string, int):
1.17 + self.__data__ = number_or_string.__data__
1.18 + else:
1.19 + # NOTE: To be implemented.
1.20 + self.__data__ = None
1.21
1.22 def __iadd__(self, other):
1.23 "Return a new int for the operation."