classification
Title: re pattern objects have no __class__
Type: behavior Stage: committed/rejected
Components: Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: michael.foord, python-dev
Priority: normal Keywords:

Created on 2011-05-17 23:07 by michael.foord, last changed 2011-05-17 23:30 by python-dev. This issue is now closed.

Messages (2)
msg136193 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2011-05-17 23:07
>>> 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.
msg136196 - (view) Author: Roundup Robot (python-dev) Date: 2011-05-17 23:30
New changeset c9df95b57af3 by Benjamin Peterson in branch '2.7':
stop using the old brain-dead interface for providing attributes/methods
http://hg.python.org/cpython/rev/c9df95b57af3
History
Date User Action Args
2011-05-17 23:30:19python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg136196

resolution: fixed
stage: test needed -> committed/rejected
2011-05-17 23:07:07michael.foordcreate