Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: psss...I want to move from Perl to Python Date: Sun, 31 Jan 2016 11:18:51 +1300 Lines: 9 Message-ID: References: <56ab10f4$0$1606$c3e8da3$5496439d@news.astraweb.com> <8d8e0774-0d25-443c-a466-6ab671bcaf3d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net PGCBrmsdLGFnGUzzJikGzgMMQbBaZHA2AnrZ4yZgyEozQ2DHMU Cancel-Lock: sha1:wR9vFfDRpRtAiY8t0nrx5ND/MS0= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: <8d8e0774-0d25-443c-a466-6ab671bcaf3d@googlegroups.com> Xref: csiph.com comp.lang.python:102319 Rustom Mody wrote: > 1. One can use string-re's instead of compiled re's And I gather that string REs are compiled on first use and cached, so you don't lose much by using them most of the time. -- Greg