Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74833 > unrolled thread
| Started by | "C.D. Reimer" <chris@cdreimer.com> |
|---|---|
| First post | 2014-07-19 13:03 -0700 |
| Last post | 2014-07-19 13:03 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: What's the proper style for a library string function? "C.D. Reimer" <chris@cdreimer.com> - 2014-07-19 13:03 -0700
| From | "C.D. Reimer" <chris@cdreimer.com> |
|---|---|
| Date | 2014-07-19 13:03 -0700 |
| Subject | Re: What's the proper style for a library string function? |
| Message-ID | <mailman.12061.1405800244.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web