[Numpy-discussion] logical_and operator, &&, is missing? (original) (raw)
Sasha ndarray at mac.com
Sun Jun 25 16:22:02 EDT 2006
- Previous message (by thread): [Numpy-discussion] logical_and operator, &&, is missing?
- Next message (by thread): [Numpy-discussion] basearray
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 6/24/06, Eric Firing <efiring at hawaii.edu> wrote:
Out of curiosity, is there a simple explanation as to why "and" cannot be overridden but operators like "&" can? Is it a fundamental distinction between operators and keywords?
There is no fundamental reason. In fact overloadable boolean operators were proposed for python: <http://www.python.org/dev/peps/pep-0335>
- Previous message (by thread): [Numpy-discussion] logical_and operator, &&, is missing?
- Next message (by thread): [Numpy-discussion] basearray
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]