[Python-Dev] SRE: what to do with undocumented attributes?
Fredrik Lundh
Fredrik Lundh" <effbot@telia.com
Fri, 31 Mar 2000 01:05:15 +0200
Andrew wrote:
> >RegexObjects:
> > code -- a PCRE code object
> > pattern -- the source pattern
> > groupindex -- maps group names to group indices
>=20
> pattern and groupindex are documented in the Library Reference, and
> they're part of the public interface.
hmm. I could have sworn... guess I didn't look carefully
enough (or someone's used his time machine again :-).
oh well, more bloat...
btw, "pattern" doesn't make much sense in SRE -- who says
the pattern object was created by re.compile? guess I'll just
set it to None in other cases (e.g. sregex, sreverb, sgema...)
</F>