Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!transit3.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Get filename using filefialog.askfilename Date: Tue, 7 May 2013 20:37:26 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 24 Message-ID: References: NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1367959046 19385 166.84.1.3 (7 May 2013 20:37:26 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 7 May 2013 20:37:26 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:44903 In cheirasacan@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 gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"