Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All great ideas are controversial, or have been at one time.


devel / comp.lang.python / Re: Possible re bug

SubjectAuthor
* Re: Possible re bugStefan Ram
`- Re: Possible re bugBarry Scott

1
Re: Possible re bug

<re-20221228195100@ram.dialup.fu-berlin.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25309&group=comp.lang.python#25309

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Possible re bug
Date: 28 Dec 2022 19:09:35 GMT
Organization: Stefan Ram
Lines: 9
Expires: 1 Dec 2023 11:59:58 GMT
Message-ID: <re-20221228195100@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de LQxotpvQh57MUoH5b1WakAGEH1XbA8G7yp6ms1lLy7S9qf
X-Copyright: (C) Copyright 2022 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Wed, 28 Dec 2022 19:09 UTC

Alexander Richert writes:
|print(re.findall(".*","pattern"))
|yields ['pattern',''] which is not what I was expecting.

The asterisk is "greedy", so I agree that it should consume
/everything/ including all the empty strings at the end.
To work around this, one can use '^.*' (no smiley intended).

Re: Possible re bug

<mailman.1324.1672319863.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25317&group=comp.lang.python#25317

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: barry@barrys-emacs.org (Barry Scott)
Newsgroups: comp.lang.python
Subject: Re: Possible re bug
Date: Thu, 29 Dec 2022 13:17:34 +0000
Lines: 16
Message-ID: <mailman.1324.1672319863.20444.python-list@python.org>
References: <re-20221228195100@ram.dialup.fu-berlin.de>
<07801d28-76c1-a8dc-1c5c-c74d5fff2a84@barrys-emacs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 9dRNfM3GUap19W3lAuDKGgtAFXyId1leOQlyZx4GBBig==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.008
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'ram': 0.07;
'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:Possible': 0.09; 'subject:bug': 0.09; 'writes:': 0.09;
'barry': 0.16; 'consume': 0.16; 'from:addr:barrys-emacs.org':
0.16; 'from:name:barry scott': 0.16; 'message-id:@barrys-
emacs.org': 0.16; 'to:addr:ram': 0.16; 'to:addr:zedat.fu-
berlin.de': 0.16; 'to:name:stefan ram': 0.16; 'wrote:': 0.16;
'to:addr:python-list': 0.20; 'stefan': 0.26; 'replying': 0.28;
'header:User-Agent:1': 0.30; 'empty': 0.32; 'end.': 0.32;
'replies': 0.32; 'header:In-Reply-To:1': 0.34; 'fix': 0.36;
'this,': 0.39; 'use': 0.39; 'to.': 0.39; 'should': 0.40;
'including': 0.60; 'stay': 0.61; 'email': 0.63; 'your': 0.64;
'received:217': 0.67; 'client': 0.82; 'expecting.': 0.84;
'strings': 0.84; 'alexander': 0.95
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
Content-Language: en-US
In-Reply-To: <re-20221228195100@ram.dialup.fu-berlin.de>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <07801d28-76c1-a8dc-1c5c-c74d5fff2a84@barrys-emacs.org>
X-Mailman-Original-References: <re-20221228195100@ram.dialup.fu-berlin.de>
 by: Barry Scott - Thu, 29 Dec 2022 13:17 UTC

Please please fix you email client so that your replies stay with the
emails you are replying to.

Barry

On 28/12/2022 19:09, Stefan Ram wrote:
> Alexander Richert writes:
> |print(re.findall(".*","pattern"))
> |yields ['pattern',''] which is not what I was expecting.
>
> The asterisk is "greedy", so I agree that it should consume
> /everything/ including all the empty strings at the end.
> To work around this, one can use '^.*' (no smiley intended).
>
>


devel / comp.lang.python / Re: Possible re bug

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor