Override 'and' and 'or'

2007-10-07 Thread Dekker
Is it possible to override 'and' and/or 'or'? I cannot find a special method for it... __and__ and __rand__ and __or__ and __ror__ are for binary manipulation... any proposals? Have marvelous sunday, Marco -- http://mail.python.org/mailman/listinfo/python-list

Re: Override 'and' and 'or'

2007-10-07 Thread Dekker
On 7 Okt., 16:19, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sun, 07 Oct 2007 13:52:15 +, Dekker wrote: > > Is it possible to override 'and' and/or 'or'? > > Not without hacking the Python source code, in which case what yo

Installed Python 3 on Mac OS X Yosemite but its still Python 2.7

2015-03-09 Thread James Dekker
I am currently running OS X Yosemite (10.10.2) on my MacBook Pro... By default, Apple ships Python 2.7.6 on Yosemite. Just downloaded and ran this installer for Python 3: python-3.4.3-macosx10.6.pkg When I opened up my Terminal and typed in python, this is what came up: Python 2.7.6 (default, S