4 ms·
Python is mostly strongly typed. You can get a mix of floats and ints from e.g. parsing JSON, but your library's authors must have been pretty explicit on wanti
by owl57 7y ago
Python is mostly strongly typed. You can get a mix of floats and ints from e.g. parsing JSON, but your library's authors must have been pretty explicit on wanting to confuse strings with numbers.
- therein 7y agoI know, I was surprised too. But I guess if it comes in as a number from the get-go, it will simply continue as a number until we tried to slice it or something, which made the deployer abort. :)
- owl57 7y agoI mean, of course the library in question could contain something like this: try: hash = int(raw_hash) except ValueError: hash = raw_hash But WHY? Can you think of something one could do accidentally to achieve the same effect?
- therein 7y agoMaybe a migration from SVN and some legacy code somewhere. Since revisions will have r12345678 kind of format.