Python and Regular Expressions

Patrick Maupin pmaupin at gmail.com
Sun Apr 11 02:29:04 EDT 2010


On Apr 10, 1:05 pm, Stefan Behnel <stefan... at behnel.de> wrote:

> Running a Python program in CPython eventually boils down to a sequence of
> commands being executed by the CPU. That doesn't mean you should write
> those commands manually, even if you can. It's perfectly ok to write the
> program in Python instead.

Absolutely.  But (as I seem to have posted many times recently) if
somebody asks how to do "x" it may be useful to point out that it
sounds like he really wants "y" and there are already several canned
solutions that do "y", but if he really wants "x", here is how he
should do it, or here is why he will have problems if he attempts to
do it (hint: whether Jamie Zawinski decides to kill a puppy or not is
not really a problem for somebody just asking a programming question
-- that's really up to Jamie).

Regards,
Pat



More information about the Python-list mailing list