Re: What does this line of code mean?

2014-11-19 Thread Rick Johnson
On Sunday, November 16, 2014 3:45:58 PM UTC-6, 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? What that line of code means is: The author is far too dependent on

What does this line of code mean?

2014-11-16 Thread Abdul Abdul
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? Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: What does this line of code mean?

2014-11-16 Thread Tim Chase
On 2014-11-16 22:45, 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? Have you tried them? https://docs.python.org/2/library/os.path.html#os.path.splitext This takes a

Re: What does this line of code mean?

2014-11-16 Thread Ian Kelly
On Sun, Nov 16, 2014 at 2:45 PM, Abdul Abdul abdul.s...@gmail.com 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? import os.path help(os.path.splitext) Help on function splitext in

Re: What does this line of code mean?

2014-11-16 Thread Peter Otten
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? You can try it yourself in the interactive interpreter: import os.path help(os.path.splitext) Help on function splitext

Re: What does this line of code mean?

2014-11-16 Thread Thomas 'PointedEars' Lahn
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=splitextcheck_keywords=yesarea=default An Python IDE like PyDev will also