[Tutor] lists strings and files
Hugo González Monteverde
hugonz-lists at h-lab.net
Wed Nov 9 18:42:31 CET 2005
Have you tried pickling them?
If you want it to be flattened, so that result is:
[fields, fields, fields]
[[fields, fields, fields]]
you should use the extend method instead of the append method.
Michael Haft wrote:
> thanks for all the help with lists and strings, the list I have has
> nested sublists in it though. How do I remove these or is there a way
> to convert from lists to strings without removing them?
> The code looks something like:
> result = 
> data = [fields fields fields]
> which gives a list containing 12 sublists
> Appologies if the code isn't quite right I'm stuck on a library computer
> in a strange German university and can't use my memory stick to check the
> exact code.
> Tutor maillist - Tutor at python.org
More information about the Tutor