Re: What do you guys think about adding a method "to_json"

2011-09-12 Thread Terry Reedy
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

Re: What do you guys think about adding a method "to_json"

2011-09-11 Thread Adam Jorgensen
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

Re: What do you guys think about adding a method "to_json"

2011-09-11 Thread 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 module import? Why? We already have json.dumps(); seems to cover the use case. Cheers, Chris -- http://m

What do you guys think about adding a method "to_json"

2011-09-11 Thread 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? Regards, Juan Pablo -- http://mail.python.org/mailman/listinfo/python-list