Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44903
| From | John Gordon <gordon@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Get filename using filefialog.askfilename |
| Date | 2013-05-07 20:37 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <kmbom6$itp$1@reader1.panix.com> (permalink) |
| References | <ab1feb45-0397-4411-bab1-898c95f57b05@googlegroups.com> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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