Newsgroups: comp.lang.python
From: Steve Howell <showel...@yahoo.com>
Date: Sun, 27 May 2007 11:08:38 -0700 (PDT)
Local: Mon, May 28 2007 4:08 am
Subject: Re: ten small Python programs
--- Steven Bethard <steven.beth...@gmail.com> wrote: > I think I would rewrite the current unit-testing I approve this change, although in a sense, it's > example to use the > standard library unittest module:: > # Let's write reusable code, and unit test it. > I believe I've still kept it to 13 lines. harder for a Python newbie, because it introduces inheritance a little earlier than I would have liked. FWIW I'm in the minority (I think) of people that I'll only defend my position by posting this link, http://www.elkner.net/jeff/testFirst/index.html > P.S. The "right" way to add money is using the Agreed. Maybe somebody else will come up with > decimal module, but I > couldn't think of a better example. something more creative, but I'm happy enough with our current version. ___________________________________________________________________________ _________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||