[Python-checkins] r72132 - python/trunk/Doc/howto/regex.rst

georg.brandl python-checkins at python.org
Thu Apr 30 00:44:08 CEST 2009


Author: georg.brandl
Date: Thu Apr 30 00:44:07 2009
New Revision: 72132

Log:
#5878: fix repr of re object.

Modified:
   python/trunk/Doc/howto/regex.rst

Modified: python/trunk/Doc/howto/regex.rst
==============================================================================
--- python/trunk/Doc/howto/regex.rst	(original)
+++ python/trunk/Doc/howto/regex.rst	Thu Apr 30 00:44:07 2009
@@ -264,7 +264,7 @@
    >>> import re
    >>> p = re.compile('ab*')
    >>> print p
-   <re.RegexObject instance at 80b4150>
+   <_sre.SRE_Pattern object at 80b4150>
 
 :func:`re.compile` also accepts an optional *flags* argument, used to enable
 various special features and syntax variations.  We'll go over the available


More information about the Python-checkins mailing list