Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Whittle it on down Date: Thu, 05 May 2016 14:54:56 -0400 Lines: 6 Message-ID: References: <572ae25f$0$2821$c3e8da3$76491128@news.astraweb.com> <1462430766.25079.598726825.1B90C7A1@webmail.messagingengine.com> <572af811$0$1608$c3e8da3$5496439d@news.astraweb.com> <572b8d6f$0$1602$c3e8da3$5496439d@news.astraweb.com> <1462474496.3044412.599343033.5A3676DD@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de t9zCUKMbWAvd2YOYdIXEfA7LUTy0YrcQSZUUnqAlr1bw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'api': 0.09; 'received:internal': 0.09; 'thu,': 0.15; 'anchors': 0.16; 'batteries': 0.16; 'did,': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'turns': 0.27; 'implicitly': 0.29; 'post': 0.31; 'included': 0.32; 'previous': 0.34; 'could': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'someone': 0.38; 'easily': 0.39; 'to:addr:python.org': 0.40; 'easy': 0.60; 'header :Message-Id:1': 0.61; 'subject:down': 0.84; 'imagine': 0.96 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Wby9y7RM0WmRNIOQWyfKZjpi1Ik=; b=q4Eu9o M8Yckga7x4/Xf048zK5mljZM33qQa/xHXcYku1oIE97dEoDXQGmHSSrQhsonaz4W Zv4USv/JAVNe54bmxrPyp/wjZQpo4rONpMK8lJZ4j/JvdKImBCXlKzOfuuvarM4w kct1GcG/ruX8Gw4j7sbaAimzPwnpW3PZixt6w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Wby9y7RM0WmRNIO QWyfKZjpi1Ik=; b=L85bVsi/YjLr+G5ffllctv50fn43lyXiz+SiqwlhcI/7h8K fNe91zNGGPHTNUISJ5h6xl5Gl+XsdRcPgy2HIZYTeOHffl5ancr9iiAKgYR6N9hB FA27huSOkGitkO+IDS5HC8Xu8MK15OAhVRKCiqZLdFl18mxZtaI4dgTn/TwQ= X-Sasl-Enc: LGNPG31v+Ha4rR/ZZB01vfrBCficF+Ujj5u1BqzBnVm4 1462474496 X-Mailer: MessagingEngine.com Webmail Interface - ajax-140377c4 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1462474496.3044412.599343033.5A3676DD@webmail.messagingengine.com> X-Mailman-Original-References: <572ae25f$0$2821$c3e8da3$76491128@news.astraweb.com> <1462430766.25079.598726825.1B90C7A1@webmail.messagingengine.com> <572af811$0$1608$c3e8da3$5496439d@news.astraweb.com> <572b8d6f$0$1602$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:108191 On Thu, May 5, 2016, at 14:27, Jussi Piitulainen wrote: > Random832's pattern is fine. You need to use re.fullmatch with it. Heh, in my previous post I said "and one could easily imagine an API that implicitly anchors at the end". So easy to imagine it turns out that someone already did, as it turns out. Batteries included indeed.