summaryrefslogtreecommitdiff
path: root/Modules/sre.h
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-02 22:25:39 +0000
committerFredrik Lundh <fredrik@pythonware.com>2000-07-02 22:25:39 +0000
commitc2301730b8e07ece0b7c4ff6b6b06a4895d370c7 (patch)
treefa5dd23128e9b5acc45dfed3958c341bdb90be73 /Modules/sre.h
parentc9c02c4cf3d3e508986d1e7a6840f3ef92f077a6 (diff)
downloadcpython-git-c2301730b8e07ece0b7c4ff6b6b06a4895d370c7.tar.gz
- experimental: added two new attributes to the match object:
"lastgroup" is the name of the last matched capturing group, "lastindex" is the index of the same group. if no group was matched, both attributes are set to None. the (?P#) feature will be removed in the next relase.
Diffstat (limited to 'Modules/sre.h')
-rw-r--r--Modules/sre.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/sre.h b/Modules/sre.h
index 7e7d8356e5..f66d608bf6 100644
--- a/Modules/sre.h
+++ b/Modules/sre.h
@@ -21,6 +21,7 @@ typedef struct {
PyObject* code; /* link to the code string object */
int groups;
PyObject* groupindex;
+ PyObject* indexgroup;
/* compatibility */
PyObject* pattern; /* pattern source (or None) */
int flags; /* flags used when compiling pattern source */