Arrays in python

Marcus talos at algonet.se
Sat Sep 2 14:27:09 EDT 2000


Hello, I am but a beginner in the language and I have a small question.
Python seem to have a strange syntax concerning arrays (atleast for a C
programmer).
What i wanna do is simply something like:

array[0] = open("/home/talos/somefile");

and then be able to use it like so:

line = array[0].readline;
print line,;

How is this done in python?
-- 

			/*
			   talos / AINT
			   www:   http://www.algonet.se/~talos
			   email: talos at algonet.se
			*/



More information about the Python-list mailing list