[issue12099] re pattern objects have no __class__

Michael Foord report at bugs.python.org
Wed May 18 01:07:07 CEST 2011


New submission from Michael Foord <michael at voidspace.org.uk>:

>>> import re
>>> re.compile('foo')
<_sre.SRE_Pattern object at 0x1043230>
>>> p = re.compile('foo')
>>> p.__class__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: __class__

Already fixed in 3.2.

----------
messages: 136193
nosy: michael.foord
priority: normal
severity: normal
stage: test needed
status: open
title: re pattern objects have no __class__
type: behavior
versions: Python 2.7

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


More information about the Python-bugs-list mailing list