signum() not in math?

Paul Winkler slinkp23 at yahoo.com
Mon Oct 15 17:32:45 EDT 2001


On 15 Oct 2001 00:57:58 GMT, Andy Todd <andy47 at halfcooked.com> wrote:
>slinkp23 at yahoo.com (Paul Winkler) wrote in
>Why not have a look at the work Mark Pilgrim has done in Chapter 6 of 
>diveintopython (http://diveintopython.org/) This chapter on unit testing 
>includes a fully functioning roman to decimal and decimal to roman 
>converters, and they come with extensive unit tests.
>
>You could either use it as a basis for your function or get his permission 
>to post it to the cookbook.

Thanks for the tip; I got a comment to much the same effect at ASPN.
I've now looked at "Dive Into Python" - it's quite good!
I've updated the recipe with some ideas from Mark's approach.

--PW



More information about the Python-list mailing list