What's the proper style for a library string function?
breamoreboy at yahoo.co.uk
Sat Jul 19 21:14:15 CEST 2014
On 19/07/2014 18:38, C.D. Reimer wrote:
> I typically write a Python 2.7 string function in my library like this:
> def getCompletedTime(start, end): return "Time completed:", str(end
> - start)
Further to my earlier post are you aware of the behaviour of your
>>> def getCompletedTime(start, end): return "Time completed:", str(end
>>> t = getCompletedTime(0, -1)
Is this what you intended?
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
This email is free from viruses and malware because avast! Antivirus protection is active.
More information about the Python-list