Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'syntax': 0.04; 'expressions': 0.07; 'pypi': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'so?': 0.09; 'python': 0.11; 'jan': 0.12; 'assume': 0.14; 'language.': 0.14; 'comfortable.': 0.16; 'loop.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'module': 0.19; '>>>': 0.22; 'comfortable': 0.22; 'saying': 0.22; 'header:User-Agent:1': 0.23; 'library,': 0.24; 'mon,': 0.24; "i've": 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'originally': 0.30; '>>>>': 0.31; 'themselves': 0.32; 'regular': 0.32; 'text': 0.33; "i'd": 0.34; 'one,': 0.35; 'but': 0.35; 'really': 0.36; 'module.': 0.36; 'scheduled': 0.36; 'doing': 0.36; 'example,': 0.37; 'feedback': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'release': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'negative': 0.60; "you're": 0.61; 'our': 0.64; 'become': 0.64; 'more': 0.64; '20,': 0.68; 'home': 0.69; 'targeted': 0.69; 'to,': 0.72; '3.4': 0.84; 'influences': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: regex multiple patterns in order Date: Mon, 20 Jan 2014 17:33:46 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-12-214.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390239306 news.xs4all.nl 2839 [2001:888:2000:d::a6]:44200 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64369 On 20/01/2014 17:09, Neil Cerutti wrote: > On 2014-01-20, Devin Jeanpierre wrote: >> On Mon, Jan 20, 2014 at 8:16 AM, Mark Lawrence >> wrote: >>> On 20/01/2014 16:04, Neil Cerutti wrote: >>>> I use regular expressions regularly, for example, when >>>> editing text with gvim. But when I want to use them in Python >>>> I have to contend with the re module. I've never become >>>> comfortable with it. >>> >>> You don't have to, there's always the "new" regex module >>> that's been on pypi for years. Or are you saying that you'd >>> like to use regex but other influences that are outside of >>> your sphere of control prevent you from doing so? >> >> I don't see any way in which someone uncomfortable with the re >> module would magically find themselves perfectly at home with >> the regex module. The regex module is the re module with some >> extra features (and complexity), is it not? > > It's a negative feedback loop. I'd have to use it more often than > I do to get comfortable. There's no way a library, even a really > good one, can compete with built-in syntax support. The BDFL must > have wanted it to be this way. > Regex was originally scheduled to go into 3.3 and then 3.4 but not made it. I assume that it will again be targeted in the 3.5 release schedule. Three strikes and you're out is a BDFL plan? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence