From: Peng Yu on
I know the library reference webpage for re.MatchObject is at
http://docs.python.org/library/re.html#re.MatchObject

But I don't find such a help page in python help(). Does anybody know
how to get it in help()?

>>> help(re.MatchObject)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'MatchObject'

--
Regards,
Peng
From: John Machin on
On Jul 28, 1:26 pm, Peng Yu <pengyu...(a)gmail.com> wrote:
> I know the library reference webpage for re.MatchObject is athttp://docs.python.org/library/re.html#re.MatchObject
>
> But I don't find such a help page in python help(). Does anybody know
> how to get it in help()?

Yes, but it doesn't tell you very much:

| >>> import re
| >>> help(re.match('x', 'x'))
| Help on SRE_Match object:
|
| class SRE_Match(__builtin__.object)
|
| >>>