Blair <bidih...@gmail.com> added the comment:

Just to keep this discussion as clear as possible Mark, it was your first
option that I suggest is needed.

When that is done (as it was for a subclass of float in 2.6.6) it is
possible for the author of the subclass to implement commutative binary
operations (like + and * that must behave the same regardless of argument
order). Otherwise (as far as I can see) this cannot be done.

On Mon, Nov 29, 2010 at 5:04 AM, Mark Dickinson <rep...@bugs.python.org>wrote:

>
> Changes by Mark Dickinson <dicki...@gmail.com>:
>
>
> Removed file: http://bugs.python.org/file19820/unnamed
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue5211>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file19859/unnamed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5211>
_______________________________________
Just to keep this discussion as clear as possible Mark, it was your first 
option that I suggest is needed. <br><br>When that is done (as it was for a 
subclass of float in 2.6.6) it is possible for the author of the subclass to 
implement commutative binary operations (like + and * that must behave the same 
regardless of argument order). Otherwise (as far as I can see) this cannot be 
done.<br>
<br><br><div class="gmail_quote">On Mon, Nov 29, 2010 at 5:04 AM, Mark 
Dickinson <span dir="ltr">&lt;<a 
href="mailto:rep...@bugs.python.org";>rep...@bugs.python.org</a>&gt;</span> 
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; 
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
Changes by Mark Dickinson &lt;<a 
href="mailto:dicki...@gmail.com";>dicki...@gmail.com</a>&gt;:<br>
<br>
<br>
</div>Removed file: <a href="http://bugs.python.org/file19820/unnamed"; 
target="_blank">http://bugs.python.org/file19820/unnamed</a><br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a 
href="mailto:rep...@bugs.python.org";>rep...@bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue5211"; 
target="_blank">http://bugs.python.org/issue5211</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to