Skip to content

Commit 6650d0b

Browse files
committed
Revert "use lambda in closure" to fix doctest
This reverts commit 418cf40.
1 parent b65cfb7 commit 6650d0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cypari2/closure.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ cpdef Gen objtoclosure(f):
139139
Examples:
140140
141141
>>> from cypari2.closure import objtoclosure
142-
>>> mul = objtoclosure(lambda i,j: i*j)
142+
>>> def pymul(i,j): return i*j
143+
>>> mul = objtoclosure(pymul)
143144
>>> mul
144145
(v1,v2,v3,v4,v5)->call_python(v1,v2,v3,v4,v5,...)
145146
>>> mul.type()

0 commit comments

Comments
 (0)