789:c190cd71b097 | 790:2c0ea0163ef4 |
---|---|
171 def __radd__(self, other): | 171 def __radd__(self, other): |
172 # Implementing 0+Numbers allows us to sum() a list of Numbers. | 172 # Implementing 0+Numbers allows us to sum() a list of Numbers. |
173 if other == 0: | 173 if other == 0: |
174 return self | 174 return self |
175 raise NotImplemented | 175 raise NotImplemented |
176 | |
177 # | |
178 # eflag: FileType = Python2 |