diff options
author | Toshihiro Kamishima <mail@kamishima.net> | 2016-07-04 23:05:36 +0900 |
---|---|---|
committer | Toshihiro Kamishima <mail@kamishima.net> | 2016-07-04 23:05:36 +0900 |
commit | 02b966c84c42ae5a364a1b5b2c6fbcacfde85a3a (patch) | |
tree | 6f627d34f43e5eb8dfc0b537af217f4d04a910b0 /numpy/lib | |
parent | d3e3d91d401f5e47a81e748cd7fb12620b45947a (diff) | |
download | numpy-02b966c84c42ae5a364a1b5b2c6fbcacfde85a3a.tar.gz |
"lambda" is not allowed to use as keyword arguments because it is a reserved word.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 1e44345b0..3cfaf350b 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1247,8 +1247,8 @@ def piecewise(x, condlist, funclist, *args, **kw): kw : dict, optional Keyword arguments used in calling `piecewise` are passed to the functions upon execution, i.e., if called - ``piecewise(..., ..., lambda=1)``, then each function is called as - ``f(x, lambda=1)``. + ``piecewise(..., ..., alpha=1)``, then each function is called as + ``f(x, alpha=1)``. Returns ------- |