-
-
Notifications
You must be signed in to change notification settings - Fork 698
Closed
Description
This behavior is inconsistent and could lead to horrible bugs:
sage: int('070')
70
sage: Integer('070')
56
Because Sage uses Python instead of inventing its own language, there
are issues like this. The only options to fix this problem
are (a) make int('070') return 56 or (b) make Integer('070') return 70.
Irregardless of what Sage should do, (a) is not an option since it
requires changing the Python interpreter, and an axiom of Sage development
is that we will never do that. So (b) it is. To resolve this trac tick
one must thus do (b).
CC: @timothyclemans
Component: coercion
Issue created by migration from https://trac.sagemath.org/ticket/2910