New JSON encoding method proposal for custom objects

2015-11-29 Thread cescus92
Hello everyone! I'm writing here since I've read on the Pyhton's documentation that this is the most common path that a new proposal should follow. I'd be really glad if this proposal could become a PEP if I see a good response from the community or, in the worst case, understand why this propo

Re: New JSON encoding method proposal for custom objects

2015-11-30 Thread cescus92
Hello everyone and thank you for your interest! The Peter's code is very similar to what I think the default JSON encoder should be. The advantage of the method that I propose is that you should not care anymore about which encoder you're going to use even in case of different class instance

Re: New JSON encoding method proposal for custom objects

2015-12-01 Thread cescus92
Hello Burak, thank you for the reply. > FWIW, Spyne can to the exact same thing -- i.e. serialize an object > given its definition to whatever format you want. (currently xml, json, > yaml and msgpack are supported). My aim is to propose a built-in method to accomplish this common and simple task

Re: New JSON encoding method proposal for custom objects

2015-12-01 Thread cescus92
> At the same place where you already found python-list, or here: > > https://mail.python.org/mailman/listinfo/python-ideas Yeah, I've found it after a simple search.. I thought it was like an hidden place for just some python's guru lol! Thank you! :) -- https://mail.python.org/mailman/listi