Message149428
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'] |
|
Date |
User |
Action |
Args |
2011-12-14 08:13:45 | dwt | set | recipients:
+ dwt, ezio.melotti |
2011-12-14 08:13:45 | dwt | set | messageid: <1323850425.79.0.94934063883.issue13599@psf.upfronthosting.co.za> |
2011-12-14 08:13:45 | dwt | link | issue13599 messages |
2011-12-14 08:13:44 | dwt | create | |
|