Huaiyu Zhu wrote: > The only real danger is=20 >=20 > 3. + a > 3 .+ a >=20 > But in this case pointwise operation does not make sense.=20 really? what if "a" is a froob? class froob: def __add__(self, other): return other + 1.0 def __dotadd__(self, other): return other + 1.0 >>> a =3D froob() >>> print 3+a() 4.0 >>> print 3.+a() SyntaxError: sorry, that doesn't make sense. try inserting a space. >>> print 3. + a() 4.0 >>> print 3.0+a() 4.0 </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4