On 04/09/2010 06:18 AM, Stefan Behnel wrote:
Tim Chase, 08.04.2010 16:23:
Lie Ryan wrote:
OP: Got problem with string
+- A: Suggested a regex-based solution
+- B: Quoted "Some people ... regex ... two problems."

or

OP: Writes some regex, found problem
+- A: Quoted "Some people ... regex ... two problems."
+- B: Supplied regex-based solution, clean one
+- A: Suggested PyParsing (or similar)

There are some problem-classes for which regexps are the *right*
solution, and I don't see as much of your example dialog in those cases.

Obviously. People rarely complain about problems that are easy to solve
with the solution at hand.

Well, you still see the "Got a problem with a string" and the "having a problem with this regex" questions, but you don't see the remainder of the "now you have two problems" dialog. Granted, some folks give that as a knee-jerk reaction so we just learn to ignore their input because sometimes a regexp is exactly the right solution ;-)

-tkc


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to