This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ecasbas
Recipients ecasbas, georg.brandl
Date 2009-04-29.13:39:34
SpamBayes Score 0.001667027
Marked as misclassified No
Message-id <1241012376.36.0.626535664464.issue5878@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-04-29 13:39:36ecasbassetrecipients: + ecasbas, georg.brandl
2009-04-29 13:39:36ecasbassetmessageid: <1241012376.36.0.626535664464.issue5878@psf.upfronthosting.co.za>
2009-04-29 13:39:35ecasbaslinkissue5878 messages
2009-04-29 13:39:34ecasbascreate