Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74833
| Date | 2014-07-19 13:03 -0700 |
|---|---|
| From | "C.D. Reimer" <chris@cdreimer.com> |
| Subject | Re: What's the proper style for a library string function? |
| References | <53CAAD27.9010207@cdreimer.com> <lqeg2d$u67$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12061.1405800244.18130.python-list@python.org> (permalink) |
On 7/19/2014 12:14 PM, Mark Lawrence wrote:
>
> Is this what you intended?
>
I'm in the process of generalizing a library module from my first Python
programming project to make it more accessible to other projects. The
code I wrote for that project doesn't make sense anymore. As I
generalize the library module, I'm also cleaning up the calling code
from that project and other scripts.
The corrected version of the string function should be:
def format_completed_time(start, end):
return "Time completed: " + str(end - start)
Chris Reimer
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: What's the proper style for a library string function? "C.D. Reimer" <chris@cdreimer.com> - 2014-07-19 13:03 -0700
csiph-web