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 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> References: Reply-To: Thomas 'PointedEars' Lahn 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 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: 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.