[New-bugs-announce] [issue9296] json module skipkeys handling changed exception types in 2.7

Doug Hellmann report at bugs.python.org
Sun Jul 18 17:48:56 CEST 2010


New submission from Doug Hellmann <doug.hellmann at gmail.com>:

Under Python 2.6 the json encoder raised a TypeError when it encountered dictionary keys that were not strings.  Under 2.7, that exception has changed to a ValueError, but the documentation still says it raises TypeError.  I'm not sure which is right, but TypeError seems like the correct exception.

----------
components: Library (Lib)
messages: 110660
nosy: doughellmann
priority: normal
severity: normal
status: open
title: json module skipkeys handling changed exception types in 2.7
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9296>
_______________________________________


More information about the New-bugs-announce mailing list