R. David Murray added the comment: So in python2, some were json serializable and some weren't? Yes, I'd call that a quirk :)
So back to the question of whether it makes sense for json to look for __index__ to decide if something can be serialized as an int. If not, I don't think there is anything we can do. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24313> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com