Path: csiph.com!au2pb.net!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Peter Otten <__peter__@web.de> Newsgroups: comp.lang.python Subject: Finding methods, was Re: DSL design (was DSLs in perl and python) Date: Tue, 29 Mar 2016 15:51:40 +0200 Organization: None Lines: 17 Message-ID: References: <7f139f92-3957-40e5-be75-ad19b9401617@googlegroups.com> <21d252f4-c6a8-4241-88e4-c5f492ebb835@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de 9nflLwX6MqVZfQLrNqttmQiEronpyaySbFprBaN8hjOQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'source.': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:design': 0.09; 'subject:python': 0.14; 'folks': 0.15; 'btw': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'url:html#re': 0.16; 'wrote:': 0.16; 'algorithm': 0.20; 'candidates': 0.21; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'mostly': 0.27; 'url:python': 0.33; 'url:dev': 0.35; 'something': 0.35; 'sometimes': 0.35; 'there': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'questions': 0.40; 'personal': 0.63; 'dont': 0.64; 'answer.': 0.72; 'miss': 0.77; 'saw': 0.77 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57bd9d1d.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105986 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.