Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: TheSaint Newsgroups: comp.lang.python Subject: Re: Composing regex from a list Followup-To: comp.lang.python Date: Fri, 17 Jun 2011 19:45:16 +0800 Organization: Aioe.org NNTP Server Lines: 12 Message-ID: References: <4dfa007f$0$30002$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: ecFDtfka4Xyf0mNcnbhS3Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.4.11 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7817 Steven D'Aprano wrote: > def compile_alternatives(*args): Thank you all, for these good points. For my eyes seem that explicit or implicit it will take some looping to concatenate the list elements into a string. I will see pypy later. -- goto /dev/null