On 27 Apr, 2007, at 20:39, Facundo Batista wrote:


- and (and), or (or), xor (xor) [CD]: Takes two logical operands, the
  result is the logical operation applied between each digit.

"and" and "or" are keywords, you can't have methods with those names:

>>> def and(l, r): pass
  File "<stdin>", line 1
    def and(l, r): pass
          ^
SyntaxError: invalid syntax
>>>


Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to