[Python-Dev] New operations in Decimal (original) (raw)

Ronald Oussoren ronaldoussoren at mac.com
Tue May 1 19:00:25 CEST 2007


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 "", line 1 def and(l, r): pass ^ SyntaxError: invalid syntax

Ronald -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3562 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20070501/f17f623f/attachment.bin



More information about the Python-Dev mailing list