A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-October/093078.html below:

[Python-Dev] nonstandard behavior of reflected functions

[Python-Dev] nonstandard behavior of reflected functions [Python-Dev] nonstandard behavior of reflected functionsNick Coghlan ncoghlan at gmail.com
Mon Oct 19 03:15:38 CEST 2009
Ehsan Amiri wrote:
> I see the same behaviour, moreover when I change class Quantity to a
> classic class (removing '(object)'), it works as expected. (i.e.
> Quanitity.__add__() is called after the fourth print. I run Python 2.6.2
> on Vista.

Darren found the explanation further down the page he was reading - the
fact that the right operand is an instance of a subclass of the left
operand's class makes a difference.

Regards,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev mailing list

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