Skip to content

Commit

Permalink
cython3 support using legacy directives
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Oct 2, 2023
1 parent 0c7e9a1 commit a197cc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cypari2/gen.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ cdef class Gen(Gen_base):
>>> pari = Pari()
>>> L = pari("vector(10,i,i^2)")
>>> L.__iter__()
<generator object at ...>
<...generator object at ...>
>>> [x for x in L]
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
>>> list(L)
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def finalize_options(self):
"binding": True,
"cdivision": True,
"language_level": 2,
"legacy_implicit_noexcept": True,
"c_api_binop_methods": True,
}

_build_ext.finalize_options(self)
Expand Down

0 comments on commit a197cc3

Please sign in to comment.