Ask Your Question

Revision history [back]

The problem comes from the fact that 0,1,23 are preparsed as Sage Ingeers, not Python ints.

To work around the issue, you can either:

  • replace 0,1,23 with 0r,1r,23r (the letter r stands for "raw")
  • turn the preparser off, with the command preparser(False)

The problem comes from the fact that 0,1,23 are preparsed preparsed as Sage Ingeers, Integers, not Python ints.ints, see https://doc.sagemath.org/html/en/reference/repl/sage/repl/preparse.html

To work around the issue, you can either:

  • replace 0,1,23 with 0r,1r,23r (the letter r stands for "raw")
  • turn the preparser off, with the command preparser(False)

The problem comes from the fact that 0,1,23 are preparsed as Sage Integers, not Python ints, see https://doc.sagemath.org/html/en/reference/repl/sage/repl/preparse.html

To work around the issue, you can either:

  • replace 0,1,23 with 0r,1r,23r (the letter r stands for "raw")
  • turn the preparser off, with the command preparser(False)

The problem comes from the fact that 0,1,23 are preparsed as Sage Integers, not Python ints, see https://doc.sagemath.org/html/en/reference/repl/sage/repl/preparse.html

To work around the issue, you can either:

  • replace 0,1,23 with 0r,1r,23r (the letter r stands for "raw")
  • turn the preparser off, with the command preparser(False)