Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Python 3 compatibility in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
defeo committed Jan 11, 2017
1 parent 375658c commit 8828867
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/libs/pari/convert_sage.pyx
Expand Up @@ -168,23 +168,23 @@ cpdef gen_to_sage(gen z, locals=None):
sage: a1 = gen_to_sage(z1)
sage: a2 = gen_to_sage(z2)
sage: type(a1), type(a2)
(<type 'list'>, <type 'list'>)
(<... 'list'>, <... 'list'>)
sage: [parent(b) for b in a1]
[Integer Ring,
Real Field with 64 bits of precision,
Number Field in i with defining polynomial x^2 + 1]
sage: [parent(b) for b in a2]
[Complex Field with 64 bits of precision, <type 'list'>]
[Complex Field with 64 bits of precision, <... 'list'>]
sage: z = pari('Vecsmall([1,2,3,4])')
sage: z.type()
't_VECSMALL'
sage: a = gen_to_sage(z); a
[1, 2, 3, 4]
sage: type(a)
<type 'list'>
<... 'list'>
sage: [parent(b) for b in a]
[<type 'int'>, <type 'int'>, <type 'int'>, <type 'int'>]
[<... 'int'>, <... 'int'>, <... 'int'>, <... 'int'>]
Matrices::
Expand Down

0 comments on commit 8828867

Please sign in to comment.