| 1 | initial version |
Actually, = has a different meaning in Python : it is used to pass a value to a parameter, that is, if a function f has two parameters m and n, and you want to evaluate it with $m=1$ and $n=4$, you can do:
f(m=1,n=4)
| 2 | No.2 Revision |
Actually, = has a different meaning in Python : it is used to pass a value to a parameter, that is, if a function f has two parameters m and n, and you want to evaluate it with $m=1$ and $n=4$, you can do:
f(m=1,n=4)
f(m=1, n=4)
| 3 | No.3 Revision |
Actually, in Python = has another meaning when calling a different meaning in Python function : it is used to pass a value to a parameter, that is, if a function f has two parameters m and n, and you want to evaluate it with $m=1$ and $n=4$, you can do:
f(m=1, n=4)
| 4 | No.4 Revision |
Actually, in Python = has another meaning when calling a function : or a method: it is used to pass a value to a parameter, that is, if a function f has two parameters m and n, and you want to evaluate it with $m=1$ and $n=4$, you can do:
f(m=1, n=4)
| 5 | No.5 Revision |
Actually, in Python = has another meaning when calling a function or a method: it is used to pass a value to a parameter, that is, if a function f has two parameters m and n, and you want to evaluate it with $m=1$ and $n=4$, you can do:
f(m=1, n=4)
I would say that f(m==1) is a attempt to be nice with the newcomer, but it would not mean anything outside the symbolic ring (that keeps m==1 as a symbolic expression with two operands), since in general this will just reduce to f(True) or f(False). There is nothing interesting to understand here, this is not Pythonic, and reserved to a dark part of Sage.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.