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


Groups > comp.lang.python > #80921

Re: What does this line of code mean?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.python
Subject Re: What does this line of code mean?
Date 2014-11-16 23:07 +0100
Organization PointedEars Software (PES)
Message-ID <4041411.kZiLLSOh7v@PointedEars.de> (permalink)
References <mailman.15905.1416174334.18130.python-list@python.org>

Show all headers | 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


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