[Python-checkins] r51007 - python/trunk/Doc/lib/libre.tex

andrew.kuchling python-checkins at python.org
Mon Jul 31 18:22:05 CEST 2006


Author: andrew.kuchling
Date: Mon Jul 31 18:22:05 2006
New Revision: 51007

Modified:
   python/trunk/Doc/lib/libre.tex
Log:
[Bug #848556] Remove \d* from second alternative to avoid exponential case when repeating match

Modified: python/trunk/Doc/lib/libre.tex
==============================================================================
--- python/trunk/Doc/lib/libre.tex	(original)
+++ python/trunk/Doc/lib/libre.tex	Mon Jul 31 18:22:05 2006
@@ -897,7 +897,7 @@
   \lineii{\code{\%d}}
          {\regexp{[-+]?\e d+}}
   \lineii{\code{\%e}, \code{\%E}, \code{\%f}, \code{\%g}}
-         {\regexp{[-+]?(\e d+(\e.\e d*)?|\e d*\e.\e d+)([eE][-+]?\e d+)?}}
+         {\regexp{[-+]?(\e d+(\e.\e d*)?|\e.\e d+)([eE][-+]?\e d+)?}}
   \lineii{\code{\%i}}
          {\regexp{[-+]?(0[xX][\e dA-Fa-f]+|0[0-7]*|\e d+)}}
   \lineii{\code{\%o}}


More information about the Python-checkins mailing list