[Skip] > So instead of simply int()ing longs to marshal them, we should do > something like > > val = int(val) > if val > 2L**31-1 or val < -2L**31: > raise OverflowError > > ? (Same test needed for ints...) I don't know -- I'm not an xmlrpc guy. My guess, though, is that we should refuse to produce anything that doesn't meet the letter of the spec (although "the spec" in this case leaves oodles of stuff un-spec-ified, it seemed clear about the limitation to 4 bytes for ints; OTOH, IIRC it didn't specify 2's-complement ints, and if not we can only guess at the intended limits).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4