[New-bugs-announce] [issue5878] Regular Expression instances

Emilio report at bugs.python.org
Wed Apr 29 15:39:36 CEST 2009


New submission from Emilio <ecasbasj at yahoo.es>:

Following the example from
http://docs.python.org/3.0/howto/regex.html

If I execute the following code on the python shell (3.1a1):

>>> import re
>>> p = re.compile('ab*')
>>> p

I get the msg:
<_sre.SRE_Pattern object at 0x013A3440>

instead of the msg from the example:
<re.RegexObject instance at 80b4150>

Why I get an SRE_Patterns object instead of a RegexObject instance?

Confirmed with another users
http://www.mail-archive.com/tutor@python.org/msg35017.html

Thanks

----------
assignee: georg.brandl
components: Documentation
messages: 86803
nosy: ecasbas, georg.brandl
severity: normal
status: open
title: Regular Expression instances
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5878>
_______________________________________


More information about the New-bugs-announce mailing list