Lines Matching refs:self

57     def __int__(self):
58 return toInteger(str(self))
59 def __long__(self):
60 return toLong(str(self))
61 def __float__(self):
62 return toFloat(str(self))
63 def __bool__(self):
64 return toBool(str(self))
67 def convert(self, other):
70 return bool(self)
72 return int(self)
74 return long(self)
76 return float(self)
77 return str(self)
78 def __lt__(self, other):
79 return self.convert(other) < other
80 def __le__(self, other):
81 return self.convert(other) <= other
82 def __eq__(self, other):
83 return self.convert(other) == other
84 def __ne__(self, other):
85 return self.convert(other) != other
86 def __gt__(self, other):
87 return self.convert(other) > other
88 def __ge__(self, other):
89 return self.convert(other) >= other
91 def __add__(self, other):
92 return self.convert(other) + other
93 def __sub__(self, other):
94 return self.convert(other) - other
95 def __mul__(self, other):
96 return self.convert(other) * other
97 def __div__(self, other):
98 return self.convert(other) / other
99 def __truediv__(self, other):
100 return self.convert(other) / other
102 def __radd__(self, other):
103 return other + self.convert(other)
104 def __rsub__(self, other):
105 return other - self.convert(other)
106 def __rmul__(self, other):
107 return other * self.convert(other)
108 def __rdiv__(self, other):
109 return other / self.convert(other)
110 def __rtruediv__(self, other):
111 return other / self.convert(other)
117 def __bool__(self):
127 def __getitem__(self, key):
131 if key in self:
132 return Variable(dict.get(self, key))
140 def __setitem__(self, key, item):
143 dict.__setitem__(self, key, str(item))
145 def values(self):
146 for value in dict.values(self):
149 def items(self):
150 for key,value in dict.items(self):
153 def get(self, key, default='False'):
154 return Variable(dict.get(self, key, str(default)))
156 def setdefault(self, key, default='False'):
157 return Variable(dict.setdefault(self, key, str(default)))