Changes between Initial Version and Version 1 of Ticket #20601, comment 6
- Timestamp:
- Jun 14, 2013, 2:31:53 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20601, comment 6
initial v1 34 34 1000,11 or 1000000,11 will be 35 35 1,000,11 or 1,000,000,11 which could get converted to an integer, so the next time intcomma gets called, it thinks that the SafeText type could now get converted to an integer and will then return himself. 36 So this will be an uncorrect return value 36 So this will be an uncorrect return value it should return either the correct output of 1.000.000,11 or nothing since it isn't a valid number. But i think its better to check if isinstance(value, int) and if not it should check if isinstance(value, float) and when nothing is correct it should try to convert to float