jquery - python list to newline separated value -



im trying data in pylon use in jquery autocomplete, librarary i'm using autocomplete requires format

abc pqr xyz 

and in python have data in format

[["abc"], ["pqr"],["xyz"] 

how convert list above one.

edit:
trying use these autocompete , i'm using pylons, in query server return list in format

    [["abc"], ["pqr"],["xyz"] 

http://jquery.bassistance.de/autocomplete/demo/ library except remote call in

abc  pqr xyz 

i tried use

"\n".join(item[0] item in my_list) 

but returns data in firebug this.

'asd\ndad\nweq' 

i want in

abc pqr xyz 

any appreciated i'm php developer first time i'm trying code in python.

thnaks

"\n".join(item[0] item in my_list) 

however, what's got json...?


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -