In <[email protected]>
[email protected] writes:
> print(file)
> the output is: <......name="file.doc"...mode=......encoding.......... >
> How can i get the second member of 'file'?
If you're using the interpreter, you can type this command:
>>> help(file)
And it will display documentation for using objects of that type.
You can also use this command:
>>> dir(file)
And it will display all the members and methods that the object provides.
--
John Gordon A is for Amy, who fell down the stairs
[email protected] B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list