Iterator addition

jepler at jepler at
Mon Nov 14 00:28:59 CET 2005

On Sun, Nov 13, 2005 at 09:44:43PM +0000, Bengt Richter wrote:
> even if expr1 had a __unaryop__ method,
>     expr1 - expr2
> could not become
>     expr1.__unaryop__(-expr2)
> unless you forced the issue with
>     expr1 (-expr2)

as opposed to being a function call?  I don't think you've solved the ambiguity problem yet.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list