| 1 | initial version |
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'>
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.