One Problem -- how to implement in three programming paradigms in Python

Bengt Richter bokr at oz.net
Tue Jun 17 18:36:21 EDT 2003


On Tue, 17 Jun 2003 19:42:02 +0200, "Ludger.Humbert" <Ludger.Humbert at cs.uni-dortmund.de> wrote:

>Hi Bengt Richter,
>your post makes my day.
>
Glad to help. It was a fun problem ;-)

OTOH, what I posted is not exactly final-draft textbook quality.
There's some leftover cruft that doesn't need to be there, and
some kludgy parameter passing, etc. That's the problem with posting
the first thing that seems to work, and then noticing some warts
(or worse, not noticing a real bug) ;-/

I don't know what you are using these things for, but they
could benefit from some polishing and some unit tests ;-)

That said, I think they illustrate how easy Python makes it to
represent a problem and translate a solution approach to code.

Regards,
Bengt Richter




More information about the Python-list mailing list