list to string

Graham Nicholls graham at rockcons.co.uk
Fri Sep 12 00:07:38 CEST 2003


Hi.  Sorry if this is really dim, but I'm trying to do something like:

main (args):
        fhand=open(args[1:],"r+")

and get an error that open is expecting a string not a list.

I _have_ looked at the docs online, and in the books, but to no avail, so
thanks for looking!

Graham 
-- 
#include <wit>
graham at rockcons.co.uk




More information about the Python-list mailing list