Finding methods, was Re: DSL design (was DSLs in perl and python)
Peter Otten
__peter__ at web.de
Tue Mar 29 09:51:40 EDT 2016
Rustom Mody wrote:
> [How BTW did you folks go about unearth that groupindex?? Dont see it in
> [docs]
While it's there
https://docs.python.org/dev/library/re.html#re.regex.groupindex
my personal search algorithm for this category of questions is mostly "I saw
something like that before", then dir(some_obj) to find the candidates, then
try the candidates in order of likelihood. If that fails use the source.
While you learn things you weren't looking for the disadvantage of that
approach is that you sometimes miss the "obvious, first hit given by the
search engine" answer.
More information about the Python-list
mailing list