From: Sasha <nd...@ma...> - 2006-06-25 20:22:05
|
On 6/24/06, Eric Firing <ef...@ha...> 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> |