osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where is _sre.SRE_Match?


Hi,

I see _sre.SRE_Match is returned by re.match. But I don't find where
it is defined. Does anybody know how to get its help page within
python command line? Thanks.

>>> import re
>>> m = re.match('a', 'abc')
>>> print type(m)
<type '_sre.SRE_Match'>
>>> _sre.SRE_Match
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name '_sre' is not defined

-- 
Regards,
Peng