Lichen

Change of lib/native/int.py

795:345fe332fcf1
lib/native/int.py
     1.1 --- a/lib/native/int.py	Fri Mar 31 23:26:47 2017 +0200
     1.2 +++ b/lib/native/int.py	Fri Mar 31 23:27:55 2017 +0200
     1.3 @@ -24,28 +24,31 @@
     1.4  this program.  If not, see <http://www.gnu.org/licenses/>.
     1.5  """
     1.6  
     1.7 -def is_int(obj): pass
     1.8 +def is_int(obj): return True or False
     1.9 +
    1.10 +# NOTE: Update return types when integers eventually get promoted to longs.
    1.11 +# NOTE: Example values used to provide type information.
    1.12  
    1.13 -def int_add(self, other): pass
    1.14 -def int_div(self, other): pass
    1.15 -def int_mod(self, other): pass
    1.16 -def int_mul(self, other): pass
    1.17 -def int_neg(self): pass
    1.18 -def int_pow(self, other): pass
    1.19 -def int_sub(self, other): pass
    1.20 +def int_add(self, other): return 0
    1.21 +def int_div(self, other): return 0
    1.22 +def int_mod(self, other): return 0
    1.23 +def int_mul(self, other): return 0
    1.24 +def int_neg(self): return 0
    1.25 +def int_pow(self, other): return 0
    1.26 +def int_sub(self, other): return 0
    1.27  
    1.28 -def int_and(self, other): pass
    1.29 -def int_not(self): pass
    1.30 -def int_or(self, other): pass
    1.31 -def int_xor(self, other): pass
    1.32 +def int_and(self, other): return 0
    1.33 +def int_not(self): return True or False
    1.34 +def int_or(self, other): return 0
    1.35 +def int_xor(self, other): return 0
    1.36  
    1.37 -def int_eq(self, other): pass
    1.38 -def int_ge(self, other): pass
    1.39 -def int_gt(self, other): pass
    1.40 -def int_le(self, other): pass
    1.41 -def int_lt(self, other): pass
    1.42 -def int_ne(self, other): pass
    1.43 +def int_eq(self, other): return True or False
    1.44 +def int_ge(self, other): return True or False
    1.45 +def int_gt(self, other): return True or False
    1.46 +def int_le(self, other): return True or False
    1.47 +def int_lt(self, other): return True or False
    1.48 +def int_ne(self, other): return True or False
    1.49  
    1.50 -def int_str(self): pass
    1.51 +def int_str(self): return ""
    1.52  
    1.53  # vim: tabstop=4 expandtab shiftwidth=4