Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3358 by [email protected]: Integer('023') != Integer(023)
http://code.google.com/p/sympy/issues/detail?id=3358
The parser for Integer should probably not ignore a leading zero on an
integer. Python interprets 023 as a binary representation (19) whereas
Integer('023') gives 23. When Python gets a leading 0 on floats it ignores
it, however:
01.2
1.2
023
19
The Integer parsing doesn't allow for '0x23' notation...perhaps it should
just disallow a leading zero if what follows is not an integer. Or it could
be made to correctly handle the alternate base representations of integers.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.