On 9/12/2011 12:34 AM, Juan Pablo Romero Méndez wrote:
Hello,
What do you guys think about adding a method "to_json" to dictionaries
and sequence types? Perhaps through a module import?
Negative. If this were added, why not to_yaml, to_marshal, to_pickle,
to_zip, and so on. Bett
Perhaps an actual use-case would clarify the need for this?
2011/9/12 Chris Rebert
> 2011/9/11 Juan Pablo Romero Méndez :
> > Hello,
> >
> > What do you guys think about adding a method "to_json" to dictionaries
> > and sequence types? Perhaps through a mo
2011/9/11 Juan Pablo Romero Méndez :
> Hello,
>
> What do you guys think about adding a method "to_json" to dictionaries
> and sequence types? Perhaps through a module import?
Why? We already have json.dumps(); seems to cover the use case.
Cheers,
Chris
--
http://m
Hello,
What do you guys think about adding a method "to_json" to dictionaries
and sequence types? Perhaps through a module import?
Regards,
Juan Pablo
--
http://mail.python.org/mailman/listinfo/python-list