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 5ca809c commit 9646f52Copy full SHA for 9646f52
cypari2/pari_instance.pyx
@@ -1026,8 +1026,16 @@ cdef class Pari(Pari_auto):
1026
print("PARI stack size set to {} bytes, maximum size set to {}".
1027
format(self.stacksize(), self.stacksizemax()))
1028
1029
- def pari_version(self):
1030
- return str(PARIVERSION)
+ @staticmethod
+ def pari_version():
1031
+ """
1032
+ Return a string describing the version of PARI/GP.
1033
+
1034
+ >>> from cypari2 import Pari
1035
+ >>> Pari.pari_version()
1036
+ 'GP/PARI CALCULATOR Version ...'
1037
1038
+ return to_string(PARIVERSION)
1039
1040
def init_primes(self, unsigned long M):
1041
"""
0 commit comments