Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80921
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: What does this line of code mean? |
| Date | Sun, 16 Nov 2014 23:07:41 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 19 |
| Message-ID | <4041411.kZiLLSOh7v@PointedEars.de> (permalink) |
| References | <mailman.15905.1416174334.18130.python-list@python.org> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Trace | solani.org 1416175662 8993 eJwFwYEBwCAIA7CXhqXVncOw/H/CEkKh3ikqOZw2ce3ji5UO1vPIWlSxIz7Xngo07poE3vMDLGURUw== (16 Nov 2014 22:07:42 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 16 Nov 2014 22:07:42 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwNy7ERADEIA8GWHoOE2vGA6b+EJ7pkD05jZRAMDIbRc/uUm/rWPIWUSq9u5GB1ys9nK2jIq3nJbb3drb8fV/UVRw== |
| Cancel-Lock | sha1:ke+9RQtzH/tJHcenzZTA1LmqT50= |
| X-NNTP-Posting-Host | eJwFwYEBgDAIA7CXpAUq58Am/59gEkzLI89Ij41FawC4d6n9vYxQSXf2yNYGPA/GwK4i7fsBC1wQZw== |
| Xref | csiph.com comp.lang.python:80921 |
Show key headers only | View raw
Abdul Abdul wrote: > I just came across the following line of code: > > outputfile = os.path.splitext(infile)[0] + ".jpg" > > Can you kindly explain to me what those parts mean? RTFM: <https://docs.python.org/3/search.html?q=splitext&check_keywords=yes&area=default> An Python IDE like PyDev will also display the docstring of the method when you position the pointer cursor over the symbol. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What does this line of code mean? Abdul Abdul <abdul.sw84@gmail.com> - 2014-11-16 22:45 +0100 Re: What does this line of code mean? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-16 23:07 +0100 Re: What does this line of code mean? Rick Johnson <rantingrickjohnson@gmail.com> - 2014-11-19 19:42 -0800
csiph-web