[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Pierre Hanser
Pierre Hanser added the comment: you realize that the current handling is incorrect and also not documented? and that the described case is from the real world: it prevents using pydbus and dbus.Boolean type to send a json boolean I don't take your argument about performance: i would li

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Pierre Hanser
New submission from Pierre Hanser : The json module provides an encoder python -> json. The encoding may be specialized by the user, using the cls parameter of the dumps function. But all simple types are always handled by the library encoder, the user encoder is only used as a last resort