In <ab1feb45-0397-4411-bab1-898c95f57...@googlegroups.com> 
cheirasa...@gmail.com 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
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to