]> granicus.if.org Git - python/commitdiff
#5878: fix repr of re object.
authorGeorg Brandl <georg@python.org>
Wed, 29 Apr 2009 22:44:07 +0000 (22:44 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 29 Apr 2009 22:44:07 +0000 (22:44 +0000)
Doc/howto/regex.rst

index 81d5abaf58a813321f23066580d68d95ed51944e..71ff56d3f4119abfc3007f110fa45d232c9de711 100644 (file)
@@ -264,7 +264,7 @@ performing string substitutions. ::
    >>> 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