Lichen

lib/__builtins__/float.py

587:87f11937a8e8
2017-02-14 Paul Boddie Record the context for accesses that are immediately invoked so that it may be used by the invocation operation. method-wrapper-for-context
     1 #!/usr/bin/env python     2      3 """     4 Floating point objects.     5      6 Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>     7      8 This program is free software; you can redistribute it and/or modify it under     9 the terms of the GNU General Public License as published by the Free Software    10 Foundation; either version 3 of the License, or (at your option) any later    11 version.    12     13 This program is distributed in the hope that it will be useful, but WITHOUT    14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    15 FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more    16 details.    17     18 You should have received a copy of the GNU General Public License along with    19 this program.  If not, see <http://www.gnu.org/licenses/>.    20 """    21     22 class float:    23     def __init__(self, number_or_string=None):    24         # Note member.    25         self.__data__ = 0.0    26     27     def __iadd__(self, other): pass    28     def __isub__(self, other): pass    29     def __add__(self, other): pass    30     def __radd__(self, other): pass    31     def __sub__(self, other): pass    32     def __rsub__(self, other): pass    33     def __mul__(self, other): pass    34     def __rmul__(self, other): pass    35     def __div__(self, other): pass    36     def __rdiv__(self, other): pass    37     def __floordiv__(self, other): pass    38     def __rfloordiv__(self, other): pass    39     def __mod__(self, other): pass    40     def __rmod__(self, other): pass    41     def __pow__(self, other): pass    42     def __rpow__(self, other): pass    43     def __lt__(self, other): pass    44     def __gt__(self, other): pass    45     def __le__(self, other): pass    46     def __ge__(self, other): pass    47     def __eq__(self, other): pass    48     def __ne__(self, other): pass    49     def __neg__(self): pass    50     def __pos__(self): pass    51     def __str__(self): pass    52     def __bool__(self): pass    53     54 # vim: tabstop=4 expandtab shiftwidth=4