Closed mkoeppe closed 10 months ago
@malb @dimpase Let's merge this please
Yes, this has already been tested, and the corresponding PR https://github.com/sagemath/cypari2/pull/117 was already merged (.... by you, @dimpase) into cypari2, until someone decided to back it out again without discussion. https://github.com/sagemath/cypari2/pull/130 has the change on the cypari2 side of things again.
Here I am using an approach that needs less coordination. Keeping the cypari2-specific code (so that current cypari2 works) and adding a general hook (so that future cypari2 with https://github.com/sagemath/cypari2/pull/130 can work).
Introduces a general hook as proposed in the discussion of https://github.com/sagemath/cypari2/pull/109.
Split out from #166. @kliem @videlec