Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Real Users are afraid they'll break the machine -- but they're never afraid to break your face.


devel / comp.lang.python / Re: why this code giving recursion error????

SubjectAuthor
o Re: why this code giving recursion error????נתי שטרן

1
Re: why this code giving recursion error????

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: nsh531@gmail.com (נתי שטרן)
Newsgroups: comp.lang.python
Subject: Re: why this code giving recursion error????
Date: Sun, 26 Jun 2022 14:00:02 +0300
Lines: 54
Message-ID: <mailman.720.1656241218.20749.python-list@python.org>
References: <CAC8x_z3-WSQ6tT6hHk9LQQ4DngE38FEyX57PRNFdit77tZOZxQ@mail.gmail.com>
<06db728d-446d-0058-462f-0f2914102953@DancesWithMice.info>
<CAC8x_z2NHvYKNwsif_0jT_e3XS9Z8rAKJ3aOyZx1+2aGvc+FMA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de LMM+ZkkJpu9HSNQOK+Go+A36nTu1fgJM4EQ1VX3v6Ddw==
Return-Path: <nsh531@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=PrwebsyL;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.009
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'def': 0.04; '2022': 0.05;
'subject:error': 0.07; '=dn': 0.09; 'cc:addr:python-list': 0.09;
'else:': 0.09; 'flags': 0.09; '&gt;': 0.14; 'cc:no real
name:2**0': 0.14; 'url:mailman': 0.15; 'error?': 0.16; 'handful':
0.16; 'items,': 0.16; 'predictable': 0.16; 'recursion': 0.16;
'subject:code': 0.16; '\xc2\xa0for': 0.16; 'wrote:': 0.16;
'cc:addr:python.org': 0.20; 'code': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'pattern': 0.26; 'code,': 0.31; 'url-ip:188/8': 0.31; 'question':
0.32; 'received:209.85.214': 0.32; 'message-id:@mail.gmail.com':
0.32; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'built': 0.36; 'received:209.85':
0.37; 'received:209': 0.39; 'list': 0.39; 'skip:\xc2 10': 0.62;
'format': 0.62; 'internal': 0.63; 'from:charset:utf-8': 0.64;
'thus': 0.64; '&amp;': 0.65; 'subject:this': 0.67; 'url-ip:lookup
error': 0.70; 'skip:\xe2 10': 0.71; '8bit%:100': 0.76; 'skip:&
50': 0.84; 'url-ip:142.251.36.1/32': 0.84; 'url:ci3': 0.84;
'url:ml': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=Mxt0IohxtO32ds4VKp5GbH9MNLuBOaLCtNCwmnobq1E=;
b=PrwebsyLh6eji7PNlhEEyjU5AyzYKpgDvesUiyzbtX4H/Z0NbeFKMBOj3bUcw+Hd2l
jkaGo01K33z4CS4rKBGzKx2QnEaWwCxE29UkgglfT94fP8inSsSrzlobdVTCPzfcKSDB
sFwsbCmfhXTFV/xXa0SLmBe+GOTEjbmVdf3gdkEAAh/mesP9yhOycB2UaNz5sHi+eg7R
DMVV9noZxYZ1hu+Mr9dP/l2MVFf3ZE1ujneT76C28x1TVcijkCHBpJ6E01sjBIdwApMA
gDJewuBvqBNEj4jzxLJDnSSxK5V4yBnyDD15wv03ExPnvdR17fjJkJSy6UH5RTO+Jmng
W4aA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=Mxt0IohxtO32ds4VKp5GbH9MNLuBOaLCtNCwmnobq1E=;
b=QOoTp+NRkhkdQjrTmlh0iED/TCfhteWwxXVKqJoOfEns0KRtbLjBPz1SrHJlLxfpvl
ioXxmy5wxRGhT07r4fj2nEOS3RVCObWL7Etg6deVCnXtdRpmeuW+jj5MgmkCUEXxgcfa
w4Elvsy1ecKAYGY5VlKR5qu4/Q1UWf+JRjaT3Dr6rWUQAa0NVT6oT9SCG1RdM3xt38n8
d3FI7QX6xx8trabpZjx59MGcO6Huh3DvsF1WVEPgGtQXjp288ps+Wam41vUAPphtJLgQ
lJToxvQQcVcrKux031Zh8+X44axGLvgF2H084wPBWZq0LqsnoT4pu2DqZ8uZE5qyaIEG
FKxQ==
X-Gm-Message-State: AJIora+TKBr73WIr2oKY2DKNk1bHUWo+X1o1n45ZsBIM5tScxzGe/qdw
pyx4YVDLs0R5tMp8wumXWxrEcERBoBSCy8a0p0UqWG4K
X-Google-Smtp-Source: AGRyM1tIvHN8GaRaRYNDF+5LtzHD/9VKwJiLU4eJg11xXHB63kc6MmqbLheHnWWatf2mJOIk2ZRB3TW/kVaQi7kuRus=
X-Received: by 2002:a17:90b:3d91:b0:1ec:d594:31f5 with SMTP id
pq17-20020a17090b3d9100b001ecd59431f5mr9423937pjb.114.1656241214448; Sun, 26
Jun 2022 04:00:14 -0700 (PDT)
In-Reply-To: <06db728d-446d-0058-462f-0f2914102953@DancesWithMice.info>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <CAC8x_z2NHvYKNwsif_0jT_e3XS9Z8rAKJ3aOyZx1+2aGvc+FMA@mail.gmail.com>
X-Mailman-Original-References: <CAC8x_z3-WSQ6tT6hHk9LQQ4DngE38FEyX57PRNFdit77tZOZxQ@mail.gmail.com>
<06db728d-446d-0058-462f-0f2914102953@DancesWithMice.info>
 by: נתי שטרן - Sun, 26 Jun 2022 11:00 UTC

I FIXED THE CODE

‫בתאריך יום א׳, 26 ביוני 2022 ב-13:57 מאת ‪dn‬‏ <‪
PythonList@danceswithmice.info‬‏>:‬

> On 26/06/2022 22.48, נתי שטרן wrote:
> > def compile(p, flags=0):
> > # internal: convert pattern list to internal format
> >
> > if (isinstance(p,str)):
> > pattern = p
> > p = sre_parse.parse(p, flags)
> > else:
> > pattern = None
> >
> > code = _code(p, flags)
> >
> > if flags & SRE_FLAG_DEBUG:
> > print()
> > dis(code)
> >
> > # map in either direction
> > groupindex = p.state.groupdict
> > indexgroup = [None] * p.state.groups
> > for k, i in groupindex.items():
> > indexgroup[i] = k
> >
> > return sre_compile.compile(
> > pattern, flags | p.state.flags, code,
> > p.state.groups-1,
> > groupindex, tuple(indexgroup)
> > )
>
>
> Why would any code give a recursion error?
>
> With recursion problems, the first question to ask is: how does this
> thing stop?
>
> Have you built some test-data with only a handful of items, and thus a
> predictable result. Does that result occur? If not, where are the
> differences occurring?
> --
> Regards,
> =dn
> --
> https://mail.python.org/mailman/listinfo/python-list
>

--
<https://netanel.ml>


devel / comp.lang.python / Re: why this code giving recursion error????

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor