Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fdn.fr!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'string': 0.09; 'anymore.': 0.09; 'lawrence': 0.09; 'subject:string': 0.09; 'python': 0.11; 'def': 0.12; 'wrote': 0.14; 'be:': 0.16; 'scripts.': 0.16; 'subject:library': 0.16; 'wrote:': 0.18; 'library': 0.18; 'module': 0.19; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'from:addr:chris': 0.24; 'module,': 0.24; 'received:comcast.net': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; "doesn't": 0.30; "i'm": 0.30; 'code': 0.31; 'projects.': 0.33; 'sense': 0.34; 'subject:the': 0.34; 'version': 0.36; 'accessible': 0.36; 'subject:?': 0.36; 'should': 0.36; 'project': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'first': 0.61; 'more': 0.64; 'received:199': 0.74 Date: Sat, 19 Jul 2014 13:03:16 -0700 From: "C.D. Reimer" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: What's the proper style for a library string function? References: <53CAAD27.9010207@cdreimer.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405800244 news.xs4all.nl 2931 [2001:888:2000:d::a6]:46462 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74833 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