[issue26623] JSON encode: more informative error

2016-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb1ad434f10e by Serhiy Storchaka in branch 'default': Issue #26623: TypeError message for JSON unserializible object now contains https://hg.python.org/cpython/rev/cb1ad434f10e -- nosy: +python-dev ___

[issue26623] JSON encode: more informative error

2016-04-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Is there a use case where the representation is too long? For example large bytes, bytearray or set object. -- ___ Python tracker

[issue26623] JSON encode: more informative error

2016-04-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Mahmoud. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue26623] JSON encode: more informative error

2016-04-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue26623] JSON encode: more informative error

2016-04-04 Thread Mahmoud Lababidi
Mahmoud Lababidi added the comment: Serhiy, I've attached a patch without the Object representation. Choose whichever you feel is better. -- Added file: http://bugs.python.org/file42366/json_encode.patch ___ Python tracker

[issue26623] JSON encode: more informative error

2016-03-30 Thread Mahmoud Lababidi
Mahmoud Lababidi added the comment: Is there a use case where the representation is too long? I think it may be useful to see the representation, but perhaps you are correct. -- ___ Python tracker

[issue26623] JSON encode: more informative error

2016-03-23 Thread Mahmoud Lababidi
Changes by Mahmoud Lababidi : -- keywords: +patch Added file: http://bugs.python.org/file42258/json_encode.patch ___ Python tracker

[issue26623] JSON encode: more informative error

2016-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is better to remove the representation of the object at all. It can be too long and less informative that the type of the object. -- nosy: +serhiy.storchaka ___ Python tracker

[issue26623] JSON encode: more informative error

2016-03-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +ezio.melotti, pitrou, rhettinger ___ Python tracker ___

[issue26623] JSON encode: more informative error

2016-03-23 Thread Mahmoud Lababidi
New submission from Mahmoud Lababidi: The json.dumps()/encode functionality will raise an Error when an object that cannot be json-encoded is encountered. The current Error message only shows the Object itself. I would like to enhance the error message by also providing the Type. This is