Hi David,

On Wed, Jul 10, 2013 at 08:45:04AM -0600, David Roe wrote:
> If a special method returns NotImplemented, Python will try calling
> the special method on the second input (with the arguments in the
> same order).

That's what I thought too, but I did not manage to find this in the
Python specifications nor to actually make it work. And was
disappointed. It seems to actually be a Sage feature given by the
coercion model.

Or would you have an example showing off this feature in pure Python?

Cheers,
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to