Iterator addition
jepler at unpythonic.net
jepler at unpythonic.net
Sun Nov 13 18:28:59 EST 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.
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051113/bb6df706/attachment.sig>
More information about the Python-list
mailing list