Re: convert python List to javascript array

2011-09-02 Thread Chris Rebert
On Fri, Sep 2, 2011 at 8:34 AM, Vineet Deodhar wrote: > Hi ! > Within a web framework, I want want to pass a python sequence (list or > tuple) to client-side javascript function as an array (javascript > compatible) > e.g., I have this list: > L = ['spam', 'ham', 'eggs', 12, (13.63)] > What is the

Re: convert python List to javascript array

2011-09-02 Thread Benjamin Kaplan
On Fri, Sep 2, 2011 at 11:34 AM, Vineet Deodhar wrote: > Hi ! > Within a web framework, I want want to pass a python sequence (list or > tuple) to client-side javascript function as an array (javascript > compatible) > e.g., I have this list: > L = ['spam', 'ham', 'eggs', 12, (13.63)] > What is th

convert python List to javascript array

2011-09-02 Thread Vineet Deodhar
Hi ! Within a web framework, I want want to pass a python sequence (list or tuple) to client-side javascript function as an array (javascript compatible) e.g., I have this list: L = ['spam', 'ham', 'eggs', 12, (13.63)] What is the correct way to convert L to javascript array format? 1) jsonify t