R. David Murray <[email protected]> added the comment:

Well, it's a micro-optimization (it would be interesting to benchmark, but not 
worth it).  I find the original code much more readable than the regex, but it 
doesn't matter all that much.  (And as far as optimization goes, using 
translate might be even faster.)

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9723>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to