Where is _sre.SRE_Match?

Peng Yu pengyu.ut at gmail.com
Wed Feb 7 12:15:21 EST 2018


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



More information about the Python-list mailing list