New submission from Michael Foord <mich...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue12099> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com