C
candide
The Python 2.7 official documentation here:
http://docs.python.org/library/re.html#re.compile
doesn't specify the type object returned by the re.compiled function.
According to the documentation, re.compile returns a "regular expression
object".
A regular expression object seems to be an instance of the class
RegexObject. The documentation mentions this class here :
http://docs.python.org/library/re.html#regular-expression-objects
but i don't see any existing class with this name :
Traceback (most recent call last):
Actually, a regular expression object doesn't seem to be a class object :
Traceback (most recent call last):
but has attributes :
['__copy__', '__deepcopy__', 'findall', 'finditer', 'match', 'scanner',
'search', 'split', 'sub', 'subn']
I have the same problem with the match object : the doc mentions a
re.MatchObject class but this class doesn't exist :
Traceback (most recent call last):
Any clarification is welcome.
http://docs.python.org/library/re.html#re.compile
doesn't specify the type object returned by the re.compiled function.
According to the documentation, re.compile returns a "regular expression
object".
A regular expression object seems to be an instance of the class
RegexObject. The documentation mentions this class here :
http://docs.python.org/library/re.html#regular-expression-objects
but i don't see any existing class with this name :
Traceback (most recent call last):
Actually, a regular expression object doesn't seem to be a class object :
Traceback (most recent call last):
but has attributes :
['__copy__', '__deepcopy__', 'findall', 'finditer', 'match', 'scanner',
'search', 'split', 'sub', 'subn']
I have the same problem with the match object : the doc mentions a
re.MatchObject class but this class doesn't exist :
Traceback (most recent call last):
Any clarification is welcome.