8000 "lambda" is not allowed to use as keyword arguments because it is a r… · masasin/numpy@02b966c · GitHub
[go: up one dir, main page]

Skip to content

Commit 02b966c

Browse files
committed
"lambda" is not allowed to use as keyword arguments because it is a reserved word.
1 parent d3e3d91 commit 02b966c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/lib/function_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,8 @@ def piecewise(x, condlist, funclist, *args, **kw):
12471247
kw : dict, optional
12481248
Keyword arguments used in calling `piecewise` are passed to the
12491249
functions upon execution, i.e., if called
1250-
``piecewise(..., ..., lambda=1)``, then each function is called as
1251-
``f(x, lambda=1)``.
1250+
``piecewise(..., ..., alpha=1)``, then each function is called as
1251+
``f(x, alpha=1)``.
12521252
12531253
Returns
12541254
-------

0 commit comments

Comments
 (0)
0