Skip to content

Commit 418cf40

Browse files
committed
use lambda in closure
1 parent d7b7a3e commit 418cf40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cypari2/closure.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ cpdef Gen objtoclosure(f):
138138
Examples:
139139
140140
>>> from cypari2.closure import objtoclosure
141-
>>> def pymul(i,j): return i*j
142-
>>> mul = objtoclosure(pymul)
141+
>>> mul = objtoclosure(lambda i,j: i*j)
143142
>>> mul
144143
(v1,v2,v3,v4,v5)->call_python(v1,v2,v3,v4,v5,...)
145144
>>> mul.type()

0 commit comments

Comments
 (0)