We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b66460 commit 3040e65Copy full SHA for 3040e65
cypari2/convert.pyx
@@ -536,21 +536,21 @@ cpdef gen_to_python(Gen z):
536
[1, 2, 3]
537
>>> type(a1)
538
<... 'list'>
539
- >>> list(map(type, a1))
+ >>> [type(x) for x in a1]
540
[<... 'int'>, <... 'int'>, <... 'int'>]
541
542
>>> a2 = gen_to_python(z2); a2
543
[1, 3.4, [-5, 2], inf]
544
>>> type(a2)
545
546
- >>> list(map(type, a2))
+ >>> [type(x) for x in a2]
547
[<... 'int'>, <... 'float'>, <... 'list'>, <... 'float'>]
548
549
>>> a3 = gen_to_python(z3); a3
550
[1, 5.2]
551
>>> type(a3)
552
553
- >>> list(map(type, a3))
+ >>> [type(x) for x in a3]
554
[<... 'int'>, <... 'float'>]
555
556
Converting matrices:
0 commit comments