On Mon, Jun 6, 2011 at 6:51 PM, Octavian Rasnita <orasn...@gmail.com> wrote:
> It is not so hard to decide whether using RE is a good thing or not.
>
> When the speed is important and every millisecond counts, RE should be used
> only when there is no other faster way, because usually RE is less faster
> than using other core Perl/Python functions that can do matching and
> replacing.
>
> When the speed is not such a big issue, RE should be used only if it is
> easier to understand and maintain than using the core functions. And of
> course, RE should be used when the core functions cannot do what RE can do.

for X in features:
  "When speed is important and every millisecond counts, X should be
used only when there is no other faster way."
  "When speed is not such a big issue, X should be used only if it is
easier to understand and maintain than other ways."

I think that's fairly obvious. :)

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

Reply via email to