Message13730
Logged In: YES
user_id=6380
This is an age-old problem that crops up whenever "i" and
similar format codes are used.
The problem is that on the one hand you want "i" to accept
other int-ish types that have an __int__ method. But on the
other hand you don't want it to accept float, which also has
an __int__ method. Or other float-ish types.
I think the "i" format code has to be fixe, but I'm not sure
how -- maybe as a start it would be sufficient to test
explicitly for float and its subclasses and reject those.
That would still allow 3rd party float-ish classes that
implement __int__, but that's not so important. |
|
Date |
User |
Action |
Args |
2007-08-23 14:09:33 | admin | link | issue660144 messages |
2007-08-23 14:09:33 | admin | create | |
|