[Tutor] Re: Convert doesn't work... I'm stumped

2005-03-16 Thread Javier Ruere
Jacob S. wrote: I've tried doc string testing with doctest, but I find I can do better just using the interactive interpreter. Do better? With doctest you protect yourself from future bugs. How can you do better just using the interpreter? Mr. Johnson has already pointed out how to make doctes

Re: [Tutor] Re: Convert doesn't work... I'm stumped

2005-03-16 Thread Kent Johnson
Jacob S. wrote: Ahh... I found that out today. A little more rest, I guess. As for unit testing, I've seen it used, but I've never implemented it. I've tried doc string testing with doctest, but I find I can do better just using the interactive interpreter. I think one way to use doctest is to cop

Re: [Tutor] Re: Convert doesn't work... I'm stumped

2005-03-16 Thread Jacob S.
Ahh... I found that out today. A little more rest, I guess. As for unit testing, I've seen it used, but I've never implemented it. I've tried doc string testing with doctest, but I find I can do better just using the interactive interpreter. (I don't know why. Impatience I guess. Maybe I just want

[Tutor] Re: Convert doesn't work... I'm stumped

2005-03-15 Thread Javier Ruere
Jacob S. wrote: Okay, not a very descriptive subject, but here goes... This is the code ### from decimal import Decimal as D Oh come on! """Everything is first converted to meters, and then converted to the unit you want to extend usage. dic[unit] = (unitto