Skip to content

__getitem__ followed by idealfrobenius -> SystemError #136

@pjbruin

Description

@pjbruin

In cypari2 2.1.3, the code

from cypari2.pari_instance import Pari
pari = Pari()
M = pari('nfinit(x^2 + 1)')
P = M.idealfactor(7)[0, 0]
G = M.galoisinit()
print(G[5])  # error does not arise without this line
print(M.idealfrobenius(G, P))

raises SystemError: new_gen() argument not on PARI stack, not on PARI heap and not a universal constant

Possibly related: #133

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions