Ask Your Question

Revision history [back]

This is because of the Sage preparser — search for "raw literals" on that page. In particular "2r" is interpreted as a "raw" integer as opposed to a Sage integer.

sage: type(2r) # a Python int, not a Sage Integer
<class 'int'>