Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: operator module functions Date: Thu, 09 Oct 2014 10:37:24 +1300 Lines: 13 Message-ID: References: <54349662$0$12987$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 3UNttRRW8W/4JajDjlKunQsjCXUc1ECaXtmEHSTOfFuAbt8vv4 Cancel-Lock: sha1:EjvUoRc/ZiNskMnPWTUpcLITpy0= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:78853 Chris Angelico wrote: >>>>operator.add is operator.__add__ > True That doesn't always seem to have been the case, however. In Python 2.7 and 3.3, I get >>> operator.add is operator.__add__ False -- Greg