Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44903

Re: Get filename using filefialog.askfilename

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 <gordon@panix.com>
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 <kmbom6$itp$1@reader1.panix.com> (permalink)
References <ab1feb45-0397-4411-bab1-898c95f57b05@googlegroups.com>
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

Show key headers only | View raw


In <ab1feb45-0397-4411-bab1-898c95f57b05@googlegroups.com> 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"

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Get filename using filefialog.askfilename cheirasacan@gmail.com - 2013-05-07 13:27 -0700
  Re: Get filename using filefialog.askfilename John Gordon <gordon@panix.com> - 2013-05-07 20:37 +0000
  Re: Get filename using filefialog.askfilename Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-07 17:53 -0400
    Re: Get filename using filefialog.askfilename cheirasacan@gmail.com - 2013-05-08 13:14 -0700
      Re: Get filename using filefialog.askfilename Dave Angel <davea@davea.name> - 2013-05-08 18:52 -0400

csiph-web