On 29/09/2012 04:30, Steven D'Aprano wrote:
On Fri, 28 Sep 2012 21:25:35 -0600, Ian Kelly wrote:Mine is simpler and faster. r = re.compile("")The OP doesn't say that you have to compile it, so just: '' wins.
My understanding is that Python 3.3 has regressed the performance of ''. Surely the Python devs can speed the performance back up and, just for us, use less memory at the same time?
-- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list