[New-bugs-announce] [issue3247] dir of an "_sre.SRE_Match" object not working

vizcayno report at bugs.python.org
Tue Jul 1 02:10:51 CEST 2008


New submission from vizcayno <vizcaynot at gmail.com>:

For Windows XP SP3:

v = 'add 1 to 4.56'
import re
r=re.search("([0-9]+)\D+(\d+\.\d+)","add 1 to 4.56")
r
<_sre.SRE_Match object at 0x00BED920>
r.groups()
('1', '4.56')
dir(r)
[]

in pyhton 2.5 it shows:
['__copy__', '__deepcopy__', 'end', 'expand', 'group', 'groupdict', 'gro
ups', 'span', 'start']

----------
components: Regular Expressions
messages: 69031
nosy: vizcayno
severity: normal
status: open
title: dir of an "_sre.SRE_Match" object not working
type: behavior
versions: Python 3.0

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


More information about the New-bugs-announce mailing list