clp2 at rebertia.com
Fri Sep 2 13:26:15 EDT 2011
On Fri, Sep 2, 2011 at 8:34 AM, Vineet Deodhar <d_vineet at yahoo.com> wrote:
> Hi !
> Within a web framework, I want want to pass a python sequence (list or
> e.g., I have this list:
> L = ['spam', 'ham', 'eggs', 12, (13.63)]
include a specific API for parsing and generating it
Python likewise has a JSON module in the std lib:
>>> import array
>>> y = array.array(i, L)
> But the problem with this method is, it will give an array of basic values
The word "array" gets tossed around a lot by programmers. The `array`
module is not at all what you want in this case.
More information about the Python-list