Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Veek M Newsgroups: comp.lang.python Subject: Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle. Followup-To: comp.lang.python Date: Sun, 09 Nov 2014 15:15:08 +0630 Organization: Home Lines: 6 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Sun, 9 Nov 2014 09:44:57 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="f68a2336b1bb3a5b9be9c6035d2d5633"; logging-data="30261"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19twCG9U2Luk57BSOEyn+mZ" User-Agent: KNode/4.4.11 Cancel-Lock: sha1:EbfUFn3jM4BRgrfdZlP9ZQqdQlY= Xref: csiph.com comp.lang.python:80412 Ned Batchelder wrote: > On 11/7/14 9:52 AM, Veek M wrote: > and you want to end up on the "def" token, not the "def" in yep, bumped into this :) thanks!