Message193166
if you assign a lambda to a object and call it,you get this:
Traceback (most recent call last):
File "<pyshell#21>", line 1, in <module>
n.__div__(3)
TypeError: <lambda>() takes exactly 2 arguments (1 given)
The full test is here:
>>> n = num()
>>> n.__div__
<function <lambda> at 0x040B2DF0>
>>> n/3
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
n/3
TypeError: unsupported operand type(s) for /: 'num' and 'int'
>>> n.__div__(3)
Traceback (most recent call last):
File "<pyshell#21>", line 1, in <module>
n.__div__(3)
TypeError: <lambda>() takes exactly 2 arguments (1 given) |
|
Date |
User |
Action |
Args |
2013-07-16 14:20:54 | James.Lu | set | recipients:
+ James.Lu |
2013-07-16 14:20:54 | James.Lu | set | messageid: <1373984454.04.0.881865417632.issue18474@psf.upfronthosting.co.za> |
2013-07-16 14:20:54 | James.Lu | link | issue18474 messages |
2013-07-16 14:20:53 | James.Lu | create | |
|