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 dwt
Recipients dwt, ezio.melotti
Date 2011-12-14.08:13:44
SpamBayes Score 0.00048673621
Marked as misclassified No
Message-id <1323850425.79.0.94934063883.issue13599@psf.upfronthosting.co.za>
In-reply-to
Content
When looking at a regex with dir() you don't get all available attributes - which is inconvenient as some very important ones (like .pattern) are not visible.

To demonstrate:

> import re
> re.compile('foo').pattern
'foo'
> dir(re.compile('foo'))

['__copy__',
 '__deepcopy__',
 'findall',
 'finditer',
 'match',
 'scanner',
 'search',
 'split',
 'sub',
 'subn']
History
Date User Action Args
2011-12-14 08:13:45dwtsetrecipients: + dwt, ezio.melotti
2011-12-14 08:13:45dwtsetmessageid: <1323850425.79.0.94934063883.issue13599@psf.upfronthosting.co.za>
2011-12-14 08:13:45dwtlinkissue13599 messages
2011-12-14 08:13:44dwtcreate