Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

UFOs are for real: the Air Force doesn't exist.


devel / comp.lang.python / Re: evaluation question

SubjectAuthor
* evaluation questionMuttley
+* Re: evaluation questionBen Bacarisse
|+- Re: evaluation questionMuttley
|`* Usenet vs. Mailing-list (was: evaluation question)Peter J. Holzer
| +* Re: Usenet vs. Mailing-list (was: evaluation question)Jon Ribbens
| |`* Re: Usenet vs. Mailing-listChris Green
| | +* Re: Usenet vs. Mailing-listChris Green
| | |`- Re: Usenet vs. Mailing-listChris Angelico
| | +* Re: Usenet vs. Mailing-listDennis Lee Bieber
| | |+- Re: Usenet vs. Mailing-listGrant Edwards
| | |+- Re: Usenet vs. Mailing-listAnssi Saari
| | |`- Re: Usenet vs. Mailing-listGrant Edwards
| | `- Re: Usenet vs. Mailing-listGrant Edwards
| +* Re: Usenet vs. Mailing-list (was: evaluation question)Dennis Lee Bieber
| |+- Re: Usenet vs. Mailing-list (was: evaluation question)Alan Gauld
| |`- Re: Usenet vs. Mailing-list (was: evaluation question)Grant Edwards
| `* Re: Usenet vs. Mailing-listBen Bacarisse
|  `* Re: Usenet vs. Mailing-listJon Ribbens
|   +* Re: Usenet vs. Mailing-listBen Bacarisse
|   |`* Re: Usenet vs. Mailing-listIgor Berger
|   | `- Re: Usenet vs. Mailing-listBen Bacarisse
|   `* Re: Usenet vs. Mailing-listPeter J. Holzer
|    `- Re: Usenet vs. Mailing-listJon Ribbens
+- Re: evaluation questionChris Angelico
+* Re: evaluation questiondn
|`* Re: evaluation questionMuttley
| `- Re: evaluation questionMark Bourne
`* Re: evaluation questionLouis Krupp
 `* Re: evaluation questionelvis-85792
  `* Re: evaluation questionThomas Passin
   `* Re: evaluation questionMuttley
    +- Re: evaluation questionRob Cliffe
    +* Re: evaluation questionGreg Ewing
    |+* Re: evaluation questionMuttley
    ||+* Re: evaluation questionThomas Passin
    |||`* Re: evaluation questionStefan Ram
    ||| +- Re: evaluation questionGreg Ewing
    ||| +- Re: evaluation questionChris Angelico
    ||| +* Re: evaluation questionThomas Passin
    ||| |`- Re: evaluation questionStefan Ram
    ||| `- Re: evaluation questionGrant Edwards
    ||+- RE: evaluation question<avi.e.gross
    ||+- Re: evaluation questionWeatherby,Gerard
    ||`* Re: evaluation questionGreg Ewing
    || +* Re: evaluation questiondn
    || |+- Re: evaluation questionGreg Ewing
    || |`* Re: evaluation questionMuttley
    || | +* Re: evaluation questionPeter J. Holzer
    || | |`* Re: evaluation questionMuttley
    || | | +* Re: evaluation questionrbowman
    || | | |`* Re: evaluation questionMuttley
    || | | | +- Re: evaluation questionGreg Ewing
    || | | | `- Re: evaluation questionrbowman
    || | | `- Re: evaluation questionMark Bourne
    || | +- Re: evaluation questionGrant Edwards
    || | +* Re: evaluation questionChris Angelico
    || | |`- Re: evaluation questionMuttley
    || | +* Re: evaluation questionChris Angelico
    || | |`- Re: evaluation questionMuttley
    || | `- Re: evaluation questionRob Cliffe
    || +* Re: evaluation questionMuttley
    || |+* Re: evaluation questionGrant Edwards
    || ||`- Re: evaluation questionMuttley
    || |+- Re: evaluation questionChris Angelico
    || |+- Re: evaluation questionRichard Damon
    || |`- Re: evaluation questionRichard Damon
    || +- Re: evaluation questionChris Angelico
    || `- Re: evaluation questionRob Cliffe
    |+* Re: evaluation questionMark Bourne
    ||`* Re: evaluation questionMuttley
    || `* Re: evaluation questionrbowman
    ||  `* Re: evaluation questionStefan Ram
    ||   `- Re: evaluation questionrbowman
    |`- RE: evaluation questionRobbie mezazem
    +- Re: evaluation questionPython
    +- Re: evaluation questionChris Angelico
    +- Re: evaluation questionPython
    +* Re: evaluation questionThomas Passin
    |`- Re: evaluation questionStefan Ram
    +- Re: evaluation questionChris Angelico
    +- RE: evaluation question<avi.e.gross
    +- Re: evaluation questionPython
    +- Re: evaluation questionWeatherby,Gerard
    `- RE: evaluation question<avi.e.gross

Pages:1234
evaluation question

<tr0uki$1p2c5$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.python
Subject: evaluation question
Date: Fri, 27 Jan 2023 16:37:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <tr0uki$1p2c5$1@dont-email.me>
Injection-Date: Fri, 27 Jan 2023 16:37:38 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="62c2dcd76c9be5d29b754c1b855d0eac";
logging-data="1870213"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Nj6bBbtf1ED1FT5ibBa+q"
Cancel-Lock: sha1:fDaAam/DCyRkaI3nBNEzWIQvr6M=
 by: Mutt...@dastardlyhq.com - Fri, 27 Jan 2023 16:37 UTC

Hi

This is probably a dumb newbie question but I've just started to learn
python3 and eval() isn't behaving as I'd expect in that it works for
some things and not others. eg:

>>> eval("1+1")
2 >>> eval("print(123)")
123
>>> eval("for i in range(1,10): i")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
for i in range(1,10): i
^
SyntaxError: invalid syntax

Why did the 3rd one fail? Does it not handle complex expressions?

Thanks for any help

Re: evaluation question

<87v8krvgcl.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Fri, 27 Jan 2023 21:04:58 +0000
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <87v8krvgcl.fsf@bsb.me.uk>
References: <tr0uki$1p2c5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="60014a0063bb2d5830bbe2489c026e03";
logging-data="1945832"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zm+yQuJJ6VLmWLgbBF07Y/PkPWK/UHro="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:UX7ncfYgW2FYFxXFtpkQA7kPpyw=
sha1:k2OwnKzNxpysRW1o/HUyNSBplx4=
X-BSB-Auth: 1.eb299f48c2d600a2e34f.20230127210458GMT.87v8krvgcl.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 27 Jan 2023 21:04 UTC

Muttley@dastardlyhq.com writes:

> Hi

It looks like you posted this question via Usenet. comp.lang.python is
essentially dead as a Usenet group. It exists, and gets NNTP versions
of mail sent to the mailing list, but nothing posted to the group via
NNTP get send on the mailing list. I prefer Usenet and dislike mailing
lists but that just means I can't really contribute to this "group"

The "python-list" an an excellent resource (if you like the email
interface) and you can subscribe here:

https://mail.python.org/mailman/listinfo/python-list>,

> This is probably a dumb newbie question but I've just started to learn
> python3 and eval() isn't behaving as I'd expect in that it works for
> some things and not others. eg:
>
>>>> eval("1+1")
> 2
>>>> eval("print(123)")
> 123
>>>> eval("for i in range(1,10): i")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "<string>", line 1
> for i in range(1,10): i
> ^
> SyntaxError: invalid syntax
>
> Why did the 3rd one fail? Does it not handle complex expressions?

It handles only expressions, and "for i in range(1,10): i" is not an
expression. You can use

>>> exec("for i in range(1,10): i")

or, to confirm that something is happening:

>>> exec("for i in range(1,10): print(i)")
1 2
3 4
5 6
7 8
9

See: https://docs.python.org/3/library/functions.html?highlight=eval#eval
and the immediately following entry.

--
Ben.

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Sat, 28 Jan 2023 11:46:59 +1100
Lines: 28
Message-ID: <mailman.1680.1674866831.20444.python-list@python.org>
References: <tr0uki$1p2c5$1@dont-email.me>
<CAPTjJmrqM_3aKv-kS-OyCcVRZnUi=LGCVTFW0uO4BzVAJ85oOg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de rHb3n7tGwatBu6UNnapxJQv+sfHItOvYTe9tdVmcmnQA==
Return-Path: <rosuav@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=i6Tn7gfe;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04;
'traceback': 0.04; '(most': 0.05; 'last):': 0.05; '2023': 0.07;
'newbie': 0.09; 'syntax': 0.15; 'chrisa': 0.16; 'eg:': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'instead.': 0.16; 'python3': 0.16; 'received:209.85.218': 0.16;
'syntaxerror:': 0.16; 'wrote:': 0.16; 'subject:question': 0.17;
'probably': 0.17; 'to:addr:python-list': 0.20; "i've": 0.22;
'sat,': 0.22; "i'd": 0.24; "isn't": 0.27; 'function': 0.27; '>>>':
0.28; 'expect': 0.28; 'flow': 0.31; 'question': 0.32; '"",': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'header:In-Reply-
To:1': 0.34; 'received:google.com': 0.34; 'complex': 0.35;
'invalid': 0.35; 'from:addr:gmail.com': 0.35; 'received:209.85':
0.37; 'file': 0.38; 'received:209': 0.39; 'handle': 0.39; 'learn':
0.40; 'want': 0.40; 'including': 0.60; "there's": 0.61; 'between':
0.63; 'skip:* 10': 0.71; '3rd': 0.81; 'stuff,': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=hfhJYrGCr33xlhZyjlUpKLwhZWqkteJT+o7+xCJlkJ0=;
b=i6Tn7gfeu7L9Yax5wcuJj4XAzGIzvdgfQbfBKzSh8w3YdKVu3o3D35tOMlNntsbIfS
lAcXm29sYHxcuA97TXLC9vJQHVBoXE207DVtMpUnC26Dx6IEB27jD4YLsvQq+dJd8Zjy
tjo2k2d+9qpzlr2wmvsEfbcqK96SvZbnvRavmHntL7z6NVqrW0LNiHAG48buPY748gaP
nw3BW+n+ubSKimCKiox5KR2qrTpsLnkTT9cR/NVv4Gzmeu7omoCu/RIo7tgX96nV/mse
GNjmsMyW35OsR9guQtc1XK9/ZySHL5R67LqPiRXlOM1VTQTmdhst8yr9mM/LuUB8Gdb1
vYsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=hfhJYrGCr33xlhZyjlUpKLwhZWqkteJT+o7+xCJlkJ0=;
b=cMoBc1vWu81zZtSf+J03CG/EvfD9soEKhLadb4V+sm3ImvAjMvghwWTt5qnbyAVmHq
J9K+bd/t8wf1SoI/buTK8z1jRKDdMYZJRLM13MH2+soGa41OWpEtpbPYHsrF/vS0d5Id
1km1+0rZjhE4UifpCdZsR1qANwtDKpMlMu4shxqTYiEr8tMoPCp8ZFIbkxZJxFPclA1F
6cKMrRzLyCodMrlG3704iPWneXxOCGmF1G499AadnOSOX++lPF20JCN7NuadV24vuR9B
Ox091srjMBoT/fhlgGNHLCvpV9rRVU7Q+FUVjzjrYaaE96vUGEqtCa9eNNIp+29j9DJR
DcdA==
X-Gm-Message-State: AFqh2krrzLT/OLjGF+NtkO6t1agulXzza/01lcEgEU6DvENAm6zhc01G
EnhrzC1r4gpbkHmjvgBtm+bSR4LhccpTgjqhyf9gfRDw
X-Google-Smtp-Source: AMrXdXtjht/p95osod93Sjk/FawS293dbdjk3VcGjM0kBeyokV/tZe5J4jHKpOYZDyI32NHN0oOpUMpWZpR1EsrU/0o=
X-Received: by 2002:a17:906:c283:b0:835:57c9:6432 with SMTP id
r3-20020a170906c28300b0083557c96432mr5983207ejz.254.1674866830210; Fri, 27
Jan 2023 16:47:10 -0800 (PST)
In-Reply-To: <tr0uki$1p2c5$1@dont-email.me>
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: <CAPTjJmrqM_3aKv-kS-OyCcVRZnUi=LGCVTFW0uO4BzVAJ85oOg@mail.gmail.com>
X-Mailman-Original-References: <tr0uki$1p2c5$1@dont-email.me>
 by: Chris Angelico - Sat, 28 Jan 2023 00:46 UTC

On Sat, 28 Jan 2023 at 11:45, <Muttley@dastardlyhq.com> wrote:
>
> Hi
>
> This is probably a dumb newbie question but I've just started to learn
> python3 and eval() isn't behaving as I'd expect in that it works for
> some things and not others. eg:
>
> >>> eval("1+1")
> 2
> >>> eval("print(123)")
> 123
> >>> eval("for i in range(1,10): i")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "<string>", line 1
> for i in range(1,10): i
> ^
> SyntaxError: invalid syntax
>
> Why did the 3rd one fail? Does it not handle complex expressions?
>

There's a difference between *expressions* (which have values) and
*statements* (which do stuff, including control flow like loops). You
may want the exec function instead.

ChrisA

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonL...@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Sat, 28 Jan 2023 14:22:01 +1300
Organization: DWM
Lines: 54
Message-ID: <mailman.1682.1674869428.20444.python-list@python.org>
References: <tr0uki$1p2c5$1@dont-email.me>
<e4b59e59-1990-fd1b-d045-98b417bd4112@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de fTX5P40mEceiNigfoLxM3QhlK+jvJM1RNa3h4LUWT6dw==
Return-Path: <PythonList@DancesWithMice.info>
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=danceswithmice.info header.i=@danceswithmice.info
header.b=ZZTZ+bvH; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'traceback': 0.04; '(most':
0.05; 'last):': 0.05; '=dn': 0.09;
'from:addr:danceswithmice.info': 0.09; 'from:addr:pythonlist':
0.09; 'hat': 0.09; 'linux': 0.09; 'newbie': 0.09;
'received:192.168.1.64': 0.09; 'syntax': 0.15; '>>>>': 0.16;
'eg:': 0.16; 'message-id:@DancesWithMice.info': 0.16; 'print(':
0.16; 'python3': 0.16; 'received:51.254': 0.16;
'received:51.254.211': 0.16; 'received:51.254.211.219': 0.16;
'received:cloud': 0.16; 'received:rangi.cloud': 0.16;
'syntaxerror:': 0.16; 'wrote:': 0.16; 'python': 0.16;
'subject:question': 0.17; 'probably': 0.17; 'to:addr:python-list':
0.20; "i've": 0.22; "i'd": 0.24; 'seems': 0.26; "isn't": 0.27;
'>>>': 0.28; 'expect': 0.28; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'question': 0.32; '"",': 0.32;
'received:192.168.1': 0.32; 'but': 0.32; 'header:In-Reply-To:1':
0.34; 'complex': 0.35; 'invalid': 0.35; 'work,': 0.36;
'received:192.168': 0.37; 'file': 0.38; 'handle': 0.39; 'learn':
0.40; 'received:51': 0.64; 'listed': 0.67; 'within': 0.69; '....':
0.76; '3rd': 0.81; 'dangerous': 0.81; 'powerful,': 0.84; 'thus,':
0.84
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 2EEBD744D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1674868931;
bh=wOOmO0N3P3+j5NgZK18wE4WlZ7I/xQVeOmhcsHI28ng=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=ZZTZ+bvHgxpFvPxi+K5X2U+gLzmXqCRrHvtZFzPO2lR1yyY3puePCGGhVXJJ16FmI
et/8HkFe52MdhVb7kVa15K8d41BzYdj1ICxxwfTY/RQCepyFJ4pbcF3QVo7SthWWSW
DX7yN6A+DYtBgBr1FlVOYSa4R/RATQcWSXHl/tNxtwnLgwEcu9BgzdJfpZ5KuoKuvy
YbELkbPA953+ljERY/OnKIA1EggxYiFCpjZADjna4/V8Xm3Q9rhNJw3uoR3TWVhGbC
BZvBy7GfNi8BjSHs6odJHoGvsMWhwAri04CBeFRc0ciDGMV8I+bRr+8JULCoqYU2iw
Qc8tqt5HImXpw==
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-GB
In-Reply-To: <tr0uki$1p2c5$1@dont-email.me>
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: <e4b59e59-1990-fd1b-d045-98b417bd4112@DancesWithMice.info>
X-Mailman-Original-References: <tr0uki$1p2c5$1@dont-email.me>
 by: dn - Sat, 28 Jan 2023 01:22 UTC

On 28/01/2023 05.37, Muttley@dastardlyhq.com wrote:
> This is probably a dumb newbie question but I've just started to learn
> python3 and eval() isn't behaving as I'd expect in that it works for
> some things and not others. eg:
>
>>>> eval("1+1")
> 2
>>>> eval("print(123)")
> 123
>>>> eval("for i in range(1,10): i")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "<string>", line 1
> for i in range(1,10): i
> ^
> SyntaxError: invalid syntax
>
> Why did the 3rd one fail? Does it not handle complex expressions?

eval() is very powerful, and therefore rather dangerous in the risks it
presents.

Thus, seems a strange/advanced question for a "newbie" to be asking. YMMV!

Do you know about the Python REPL?

If you open python within a terminal, each of the three
expressions/compound-statements listed will work, as desired, without
eval().

dn $ ... python
Python 3.11.1 (main, Jan 6 2023, 00:00:00) [GCC 12.2.1 20221121 (Red
Hat 12.2.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+1
2 >>> print( 123 )
123
>>> for i in range( 1, 10 ): i
....
1 2
3 4
5 6
7 8
9 >>> exit()

--
Regards,
=dn

Re: evaluation question

<tr2scq$2654r$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Sat, 28 Jan 2023 10:11:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <tr2scq$2654r$1@dont-email.me>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
Injection-Date: Sat, 28 Jan 2023 10:11:38 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="264b6b36cfda8e8473c9727b3e56a715";
logging-data="2299035"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+90BQkEY8PXdBdRUZwLUO"
Cancel-Lock: sha1:2Kb/KnYVdSNFDzsK9Oo/6qwEtbI=
 by: Mutt...@dastardlyhq.com - Sat, 28 Jan 2023 10:11 UTC

On Fri, 27 Jan 2023 21:04:58 +0000
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
>Muttley@dastardlyhq.com writes:
>
>> Hi
>
>It looks like you posted this question via Usenet. comp.lang.python is
>essentially dead as a Usenet group. It exists, and gets NNTP versions
>of mail sent to the mailing list, but nothing posted to the group via
>NNTP get send on the mailing list. I prefer Usenet and dislike mailing
>lists but that just means I can't really contribute to this "group"
>
>The "python-list" an an excellent resource (if you like the email
>interface) and you can subscribe here:
>
>https://mail.python.org/mailman/listinfo/python-list>,
>
>> This is probably a dumb newbie question but I've just started to learn
>> python3 and eval() isn't behaving as I'd expect in that it works for
>> some things and not others. eg:
>>
>>>>> eval("1+1")
>> 2
>>>>> eval("print(123)")
>> 123
>>>>> eval("for i in range(1,10): i")
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "<string>", line 1
>> for i in range(1,10): i
>> ^
>> SyntaxError: invalid syntax
>>
>> Why did the 3rd one fail? Does it not handle complex expressions?
>
>It handles only expressions, and "for i in range(1,10): i" is not an
>expression. You can use
>
>>>> exec("for i in range(1,10): i")

Ok, thanks.

Re: evaluation question

<tr2sfc$265e5$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Sat, 28 Jan 2023 10:13:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <tr2sfc$265e5$1@dont-email.me>
References: <tr0uki$1p2c5$1@dont-email.me>
<e4b59e59-1990-fd1b-d045-98b417bd4112@DancesWithMice.info>
<mailman.1682.1674869428.20444.python-list@python.org>
Injection-Date: Sat, 28 Jan 2023 10:13:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="264b6b36cfda8e8473c9727b3e56a715";
logging-data="2299333"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1813DLtYIthuAYlySDZMW+B"
Cancel-Lock: sha1:TC9S3mHnc073x223EkJk1alnp/8=
 by: Mutt...@dastardlyhq.com - Sat, 28 Jan 2023 10:13 UTC

On Sat, 28 Jan 2023 14:22:01 +1300
dn <PythonList@DancesWithMice.info> wrote:
>On 28/01/2023 05.37, Muttley@dastardlyhq.com wrote:
>> This is probably a dumb newbie question but I've just started to learn
>> python3 and eval() isn't behaving as I'd expect in that it works for
>> some things and not others. eg:
>>
>>>>> eval("1+1")
>> 2
>>>>> eval("print(123)")
>> 123
>>>>> eval("for i in range(1,10): i")
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "<string>", line 1
>> for i in range(1,10): i
>> ^
>> SyntaxError: invalid syntax
>>
>> Why did the 3rd one fail? Does it not handle complex expressions?
>
>eval() is very powerful, and therefore rather dangerous in the risks it
>presents.
>
>Thus, seems a strange/advanced question for a "newbie" to be asking. YMMV!

Well ok, new-ish :)

>Do you know about the Python REPL?

Haven't learnt the acronyms yet.

>If you open python within a terminal, each of the three
>expressions/compound-statements listed will work, as desired, without
>eval().

Umm, yeah, thats kind of obvious isn't it?

Re: evaluation question

<Ko8BL.57228$jiuc.57141@fx44.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx44.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
From: lkr...@invalid.pssw.com.invalid (Louis Krupp)
Subject: Re: evaluation question
Newsgroups: comp.lang.python
References: <tr0uki$1p2c5$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <tr0uki$1p2c5$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 35
Message-ID: <Ko8BL.57228$jiuc.57141@fx44.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sat, 28 Jan 2023 12:18:50 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Sat, 28 Jan 2023 05:18:50 -0700
X-Received-Bytes: 1585
 by: Louis Krupp - Sat, 28 Jan 2023 12:18 UTC

On 1/27/2023 9:37 AM, Muttley@dastardlyhq.com wrote:
> Hi
>
> This is probably a dumb newbie question but I've just started to learn
> python3 and eval() isn't behaving as I'd expect in that it works for
> some things and not others. eg:
>
>>>> eval("1+1")
> 2
>>>> eval("print(123)")
> 123
>>>> eval("for i in range(1,10): i")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "<string>", line 1
> for i in range(1,10): i
> ^
> SyntaxError: invalid syntax
>
> Why did the 3rd one fail? Does it not handle complex expressions?
>
> Thanks for any help
>
>
>

This might -- or might not -- be useful:

eval( "print( [i for i in range(1, 10)] )" )

It prints a list, but you probably knew that:

[1, 2, 3, 4, 5, 6, 7, 8, 9]

Louis

Usenet vs. Mailing-list (was: evaluation question)

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!hirsch.in-berlin.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-pyt...@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Usenet vs. Mailing-list (was: evaluation question)
Date: Sat, 28 Jan 2023 15:30:59 +0100
Lines: 51
Message-ID: <mailman.1690.1674916261.20444.python-list@python.org>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="jtwblkk3u3cqeqhc"
X-Trace: news.uni-berlin.de 0ncdOMBPwxxWepuW2UC1KwLHciOUnv32Vfx7pZAqKbeg==
Return-Path: <hjp-python@hjp.at>
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.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'content-
type:multipart/signed': 0.05; 'despite': 0.05; 'wrong.': 0.07;
'content-type:application/pgp-signature': 0.09; 'filename:fname
piece:asc': 0.09; 'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'writes:': 0.09;
'subject:list': 0.11; '"creative': 0.16; '__/': 0.16;
'challenge!"': 0.16; 'from:addr:hjp-python': 0.16;
'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16;
'hjp@hjp.at': 0.16; 'holzer': 0.16; 'nntp': 0.16; 'reality.':
0.16; 'stross,': 0.16; 'subject:Mailing': 0.16; 'url-
ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24': 0.16; 'url-
ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16; 'wrote:':
0.16; 'subject:question': 0.17; 'to:addr:python-list': 0.20;
'list,': 0.24; 'stefan': 0.26; 'group.': 0.28; 'sense': 0.28;
'question': 0.32; 'but': 0.32; 'mailing': 0.33; 'header:In-Reply-
To:1': 0.34; 'received:212': 0.62; 'send': 0.63; 'your': 0.64;
'his': 0.65; 'received:userid': 0.66; 'outside': 0.67; 'url-
ip:212/8': 0.69; 'subject:. ': 0.73; 'dead': 0.81; 'received:at':
0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <87v8krvgcl.fsf@bsb.me.uk>
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: <20230128143059.cbigz4ad4uklqtbk@hjp.at>
X-Mailman-Original-References: <tr0uki$1p2c5$1@dont-email.me>
<87v8krvgcl.fsf@bsb.me.uk>
 by: Peter J. Holzer - Sat, 28 Jan 2023 14:30 UTC
Attachments: signature.asc (application/pgp-signature)

On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
> Muttley@dastardlyhq.com writes:
>
> > Hi
>
> It looks like you posted this question via Usenet. comp.lang.python is
> essentially dead as a Usenet group. It exists, and gets NNTP versions
> of mail sent to the mailing list, but nothing posted to the group via
> NNTP get send on the mailing list.

This is wrong. I did get Muttley's any your postings via the
mailing-list.

(I also get Stefan Ram's postings despite his "no distribution outside
of Usenet" header).

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
Re: evaluation question

<tr3c2v$28q6i$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nntp.mbo...@spamgourmet.com (Mark Bourne)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Sat, 28 Jan 2023 14:39:27 +0000
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <tr3c2v$28q6i$1@dont-email.me>
References: <tr0uki$1p2c5$1@dont-email.me>
<e4b59e59-1990-fd1b-d045-98b417bd4112@DancesWithMice.info>
<mailman.1682.1674869428.20444.python-list@python.org>
<tr2sfc$265e5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 28 Jan 2023 14:39:27 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5fa544db2592e85b9f019d626a3037b8";
logging-data="2386130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HeLhDNy4taEaqWpfE6195"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
SeaMonkey/2.53.14
Cancel-Lock: sha1:rKpmkOfccvjHH8WLZQueNR1q7kU=
In-Reply-To: <tr2sfc$265e5$1@dont-email.me>
 by: Mark Bourne - Sat, 28 Jan 2023 14:39 UTC

Muttley@dastardlyhq.com wrote:
> On Sat, 28 Jan 2023 14:22:01 +1300
> dn <PythonList@DancesWithMice.info> wrote:
>> Do you know about the Python REPL?
>
> Haven't learnt the acronyms yet.

REPL stands for "Read Evaluate Print Loop". It basically refers to the
interactive interpreter, which reads input you type, evaluates it,
prints the result, and loops (repeatedly does that).

An interesting point from your examples is that the output from the
first two comes from different steps in that loop.

>>> eval("1+1")
2

Here, the E (evaluation) step runs eval("1+1"), which returns 2. The P
(print) step then prints that result. If this was in a script, you
wouldn't see any output, and the statement is pretty much useless -
you'd need to assign the result to a variable or explicitly print it.

>>> eval("print(123)")
123

Here, the E step runs eval("print(123)"), which prints 123 and returns
None. The P step doesn't print anything if the result is None. You'd
still see that output if this was in a script.

Using eval in those examples is pretty pointless, since:
>>> 1+1
>>> print(123)
would produce the same results - but of course they were just simple
examples.

--
Mark.

Re: Usenet vs. Mailing-list (was: evaluation question)

<slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jon+use...@unequivocal.eu (Jon Ribbens)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list (was: evaluation question)
Date: Sat, 28 Jan 2023 18:10:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
Injection-Date: Sat, 28 Jan 2023 18:10:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="3d39edd1c3e076ed2ad3334fb9e3bf45";
logging-data="2454365"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181HCB1FNfeLb9nbtWE8qzwWRFL6uMyvik="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Vre3zhbQ3vr9JGt0oFcN38QGpAY=
 by: Jon Ribbens - Sat, 28 Jan 2023 18:10 UTC

On 2023-01-28, Peter J. Holzer <hjp-python@hjp.at> wrote:
> On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
>> It looks like you posted this question via Usenet. comp.lang.python is
>> essentially dead as a Usenet group. It exists, and gets NNTP versions
>> of mail sent to the mailing list, but nothing posted to the group via
>> NNTP get send on the mailing list.
>
> This is wrong. I did get Muttley's any your postings via the
> mailing-list.

Yes, it's certainly false. I only ever post via the newsgroup,
and I can see my postings reach the list because they appear
in the list archive on the web.

https://mail.python.org/pipermail/python-list/

Re: Usenet vs. Mailing-list

<gtbgaj-s59t.ln1@esprimo.zbmc.eu>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sat, 28 Jan 2023 20:07:44 +0000
Lines: 21
Message-ID: <gtbgaj-s59t.ln1@esprimo.zbmc.eu>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk> <20230128143059.cbigz4ad4uklqtbk@hjp.at> <mailman.1690.1674916261.20444.python-list@python.org> <slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net PK95Thg5TcIhYZ9ILO/Qnwjcpj/XjT1vKCwbgdr4ORbY6LMZc=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:wovUdoTl2yRW+GW5g0jKsmh9gdQ=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-58-generic (x86_64))
 by: Chris Green - Sat, 28 Jan 2023 20:07 UTC

Jon Ribbens <jon+usenet@unequivocal.eu> wrote:
> On 2023-01-28, Peter J. Holzer <hjp-python@hjp.at> wrote:
> > On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
> >> It looks like you posted this question via Usenet. comp.lang.python is
> >> essentially dead as a Usenet group. It exists, and gets NNTP versions
> >> of mail sent to the mailing list, but nothing posted to the group via
> >> NNTP get send on the mailing list.
> >
> > This is wrong. I did get Muttley's any your postings via the
> > mailing-list.
>
> Yes, it's certainly false. I only ever post via the newsgroup,
> and I can see my postings reach the list because they appear
> in the list archive on the web.
>
As far as I am aware the mirroring of the Python mailing list on
comp.lan.python works perfectly. I love gmane! :-)

--
Chris Green
·

Re: Usenet vs. Mailing-list

<uvcgaj-ohbt.ln1@esprimo.zbmc.eu>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sat, 28 Jan 2023 20:26:06 +0000
Lines: 24
Message-ID: <uvcgaj-ohbt.ln1@esprimo.zbmc.eu>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk> <20230128143059.cbigz4ad4uklqtbk@hjp.at> <mailman.1690.1674916261.20444.python-list@python.org> <slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu> <gtbgaj-s59t.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net PzKuZVMdwfdB0q1cwL6kYAyhW+ZNqP1LWHxrmowj/lLy7WBuA=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:SUV64VeFxOAtX8850t3neXFG+uA=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-58-generic (x86_64))
 by: Chris Green - Sat, 28 Jan 2023 20:26 UTC

Chris Green <cl@isbd.net> wrote:
> Jon Ribbens <jon+usenet@unequivocal.eu> wrote:
> > On 2023-01-28, Peter J. Holzer <hjp-python@hjp.at> wrote:
> > > On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
> > >> It looks like you posted this question via Usenet. comp.lang.python is
> > >> essentially dead as a Usenet group. It exists, and gets NNTP versions
> > >> of mail sent to the mailing list, but nothing posted to the group via
> > >> NNTP get send on the mailing list.
> > >
> > > This is wrong. I did get Muttley's any your postings via the
> > > mailing-list.
> >
> > Yes, it's certainly false. I only ever post via the newsgroup,
> > and I can see my postings reach the list because they appear
> > in the list archive on the web.
> >
> As far as I am aware the mirroring of the Python mailing list on
> comp.lan.python works perfectly. I love gmane! :-)
>
That is, of course, comp.lang.python. Too much wine! :-)

--
Chris Green
·

Re: Usenet vs. Mailing-list (was: evaluation question)

<255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 28 Jan 2023 21:36:26 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list (was: evaluation question)
Date: Sat, 28 Jan 2023 16:36:26 -0500
Organization: IISS Elusive Unicorn
Message-ID: <255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk> <20230128143059.cbigz4ad4uklqtbk@hjp.at> <mailman.1690.1674916261.20444.python-list@python.org>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 29
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-WsGFpBq+7KYQlb6SvommDoV8KYjNJH6HipX+lLLaBZl1bKAExJKIBF2Co4jbemU9Mv5efwvdA7aTQkH!/HXPLcjtJthb5K8ihMKjOHh1WowFkjiN6bsDSmoN8pAyY7LxVurp7YFfXHz3a+s55P0KFCEC
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Sat, 28 Jan 2023 21:36 UTC

On Sat, 28 Jan 2023 15:30:59 +0100, "Peter J. Holzer" <hjp-python@hjp.at>
declaimed the following:

>On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
>> Muttley@dastardlyhq.com writes:
>>
>> > Hi
>>
>> It looks like you posted this question via Usenet. comp.lang.python is
>> essentially dead as a Usenet group. It exists, and gets NNTP versions
>> of mail sent to the mailing list, but nothing posted to the group via
>> NNTP get send on the mailing list.
>
>This is wrong. I did get Muttley's any your postings via the
>mailing-list.
>

I had been tempted to ask when the list<>newsgroup link had changed,
since it hadn't been announced...

Now -- last time I checked the gmane server says posting is prohibited.
I used to use gmane as it retrieved directly from the mailing list (which
has been filtered from much spam) and not Usenet (and its open spam
problem).

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Usenet vs. Mailing-list

<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.23.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 28 Jan 2023 21:39:18 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sat, 28 Jan 2023 16:39:19 -0500
Organization: IISS Elusive Unicorn
Message-ID: <5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk> <20230128143059.cbigz4ad4uklqtbk@hjp.at> <mailman.1690.1674916261.20444.python-list@python.org> <slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu> <gtbgaj-s59t.ln1@esprimo.zbmc.eu>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 15
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-yNast/HIJNiiNSoR0IywUanIMOTaKDv+5biHu6h9vGyn6C6TVQu5HGH0cD4nQj6bKF8D+h9dzbtm5bE!jKNexnhK+9E6NT/j7t7eU3CFqV2JnM9Lpu2HAPGEIBN+ZjYd9bAOp7gbOtaDJWtJ/TYWVUAB
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Sat, 28 Jan 2023 21:39 UTC

On Sat, 28 Jan 2023 20:07:44 +0000, Chris Green <cl@isbd.net> declaimed the
following:

>As far as I am aware the mirroring of the Python mailing list on
>comp.lan.python works perfectly. I love gmane! :-)

Is gmane's gmane.comp.python.general allowing posts to go through
again? I had to revert to comp.lang.python some time back when gmane kept
rejecting outgoing posts.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Usenet vs. Mailing-list

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!rocksolid2!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 12:09:52 +1100
Lines: 27
Message-ID: <mailman.1699.1674954605.20444.python-list@python.org>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu>
<gtbgaj-s59t.ln1@esprimo.zbmc.eu> <uvcgaj-ohbt.ln1@esprimo.zbmc.eu>
<CAPTjJmpewNWM7O_OWo24mzDuSz20983KVqf7jNeV04EBEUsrPw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 2zPmTtG6aMZr/DFBMawAVwLOfMuNlhCs29mZ5TpwUbxg==
Return-Path: <rosuav@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=Ks/I1aSE;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'looks': 0.02; '2023':
0.07; 'sun,': 0.07; 'wrong.': 0.07; ':-)': 0.09; 'perfectly.':
0.09; 'web.': 0.09; 'subject:list': 0.11; 'chrisa': 0.16;
'false.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'holzer': 0.16; 'nntp': 0.16;
'received:209.85.218': 0.16; 'subject:Mailing': 0.16; 'wrote:':
0.16; 'python': 0.16; 'to:addr:python-list': 0.20; 'run': 0.23;
'list,': 0.24; 'chris': 0.28; 'group.': 0.28; 'question': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'mailing': 0.33;
'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'runs':
0.35; 'yes,': 0.35; 'from:addr:gmail.com': 0.35; "it's": 0.37;
'received:209.85': 0.37; 'received:209': 0.39; 'list': 0.39;
'love': 0.62; 'ever': 0.63; 'send': 0.63; 'your': 0.64; 'reach':
0.69; 'subject:. ': 0.73; 'dead': 0.81; 'jon': 0.84; 'green': 0.96
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=U+8nLkIIU4h1t4KgSlNLdHJWbQI77erH109aEN/b6sc=;
b=Ks/I1aSELKz6WlX3OuVwkwuCnsSwr4TzzPKfKY5Dw6eyD1dcjTeOWrUETjR8OJ48OB
Vul5WtVV0x03j4NzvkGM8Tm4wd7LRMXMkkYxOBxjIQFQbVXTXMoI9sG9vuujyu2fhcqe
MI0JWuZGJIVHsTcb+loj9xAYhORlVSgpaWwpUuCQa3Y+ipYSfnWdzDKYqU8hgh2NfyWY
kcdRxFpNI/gqFGR2mTojn9Zu3Qh80niGBpFF+zasCeH6ZbftxMujE9CdzXzjNszQV3KJ
S5jY9WnPQIfuaPXVFqTtZjDtTh7LSrq8iVRUZUYigX57QSuzUKVA7nw5vY4at2rS/9bX
4K/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=U+8nLkIIU4h1t4KgSlNLdHJWbQI77erH109aEN/b6sc=;
b=XBA4s9fxswPdjCf+ENBAN3A+MnhZ9WrK/POTTq2tB5K5sZ4I/GBffZhQG479edzXeL
I2cSNmTnxRiGn2z8wR7htPdh7aCW0nsoL2sK25ZGD5GpYx+W10LyatQxu3tJD2kCdjzK
0Dg+qxYOD+xN00gcb1LTsnKm2ngoWvs27hxZ7JZWnequxwHkA2BzMuio/bajSfyXr6a6
eA8d4MJGj1pPnqAEQGCKpT/fbxxbFIGbkaUucnwr+pwj9sGDwxN1pZ9VfT8yTTFN6v25
vz56wsMfpcee6janFoybu+iPJx67iZ2RhBRSeda5uemyrAQztf4VPhlNQdhjeV1alJrx
2E4A==
X-Gm-Message-State: AFqh2kpNZ23REomVi48RcKyJkU5IY/vrnEyjgFWpHOe8YbBJFHuroDnB
mdbqtkztT2PRo/44gxb6hA+DHbHUJjAMR1cBxLqVaDSA
X-Google-Smtp-Source: AMrXdXtwfBgsbhSjoNKft794GsHokIGpCZw56LsJ8UavxKofoK45rt1NMsTHfl1xhYzM88Tvm2ZgFv0czg3OjGi+II8=
X-Received: by 2002:a17:906:850e:b0:86c:3890:1bec with SMTP id
i14-20020a170906850e00b0086c38901becmr8126988ejx.136.1674954603624; Sat, 28
Jan 2023 17:10:03 -0800 (PST)
In-Reply-To: <uvcgaj-ohbt.ln1@esprimo.zbmc.eu>
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: <CAPTjJmpewNWM7O_OWo24mzDuSz20983KVqf7jNeV04EBEUsrPw@mail.gmail.com>
X-Mailman-Original-References: <tr0uki$1p2c5$1@dont-email.me>
<87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<slrnttap7o.84eh.jon+usenet@raven.unequivocal.eu>
<gtbgaj-s59t.ln1@esprimo.zbmc.eu>
<uvcgaj-ohbt.ln1@esprimo.zbmc.eu>
 by: Chris Angelico - Sun, 29 Jan 2023 01:09 UTC

On Sun, 29 Jan 2023 at 12:07, Chris Green <cl@isbd.net> wrote:
>
> Chris Green <cl@isbd.net> wrote:
> > Jon Ribbens <jon+usenet@unequivocal.eu> wrote:
> > > On 2023-01-28, Peter J. Holzer <hjp-python@hjp.at> wrote:
> > > > On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
> > > >> It looks like you posted this question via Usenet. comp.lang.python is
> > > >> essentially dead as a Usenet group. It exists, and gets NNTP versions
> > > >> of mail sent to the mailing list, but nothing posted to the group via
> > > >> NNTP get send on the mailing list.
> > > >
> > > > This is wrong. I did get Muttley's any your postings via the
> > > > mailing-list.
> > >
> > > Yes, it's certainly false. I only ever post via the newsgroup,
> > > and I can see my postings reach the list because they appear
> > > in the list archive on the web.
> > >
> > As far as I am aware the mirroring of the Python mailing list on
> > comp.lan.python works perfectly. I love gmane! :-)
> >
> That is, of course, comp.lang.python. Too much wine! :-)
>

You can run Python with wine, but it runs natively and that's usually better :)

ChrisA

Re: Usenet vs. Mailing-list

<87fsbuumyv.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 01:51:52 +0000
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <87fsbuumyv.fsf@bsb.me.uk>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="7b34fa1cf39130dabd9dbba19bdd8c34";
logging-data="2613947"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WdGgu5jwqUlrCW1ivaVW9GkMepVt3gUw="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:j4vSls7ppiIrTxz52NyuKwy/OuE=
sha1:B+YBlcZy9Xf+19v6HGoP1mSyvMk=
X-BSB-Auth: 1.cc9fe92a5b9a942522e9.20230129015152GMT.87fsbuumyv.fsf@bsb.me.uk
 by: Ben Bacarisse - Sun, 29 Jan 2023 01:51 UTC

"Peter J. Holzer" <hjp-python@hjp.at> writes:

> On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
>> Muttley@dastardlyhq.com writes:
>>
>> > Hi
>>
>> It looks like you posted this question via Usenet. comp.lang.python is
>> essentially dead as a Usenet group. It exists, and gets NNTP versions
>> of mail sent to the mailing list, but nothing posted to the group via
>> NNTP get send on the mailing list.
>
> This is wrong. I did get Muttley's any your postings via the
> mailing-list.

Ah, OK. I thought that was the case but I am obviously wrong. Has
there been a change, or have I been wrong for a long time!?

There may be a timing issue because I tried to find a reply a Usenet
injected post from a mailing-list user and, at the time I looked, I
could not find one.

--
Ben.

Re: Usenet vs. Mailing-list

<slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jon+use...@unequivocal.eu (Jon Ribbens)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 02:09:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk>
Injection-Date: Sun, 29 Jan 2023 02:09:28 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="9e99c641038ca773adc23163fff10812";
logging-data="2613689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N4O51zfWcTDMNZtb8IMTY39gL9vhzYVE="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:QNhRJ3p2U7Rib7r7QO8CXdPOXR8=
 by: Jon Ribbens - Sun, 29 Jan 2023 02:09 UTC

On 2023-01-29, Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
> "Peter J. Holzer" <hjp-python@hjp.at> writes:
>
>> On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
>>> Muttley@dastardlyhq.com writes:
>>>
>>> > Hi
>>>
>>> It looks like you posted this question via Usenet. comp.lang.python is
>>> essentially dead as a Usenet group. It exists, and gets NNTP versions
>>> of mail sent to the mailing list, but nothing posted to the group via
>>> NNTP get send on the mailing list.
>>
>> This is wrong. I did get Muttley's any your postings via the
>> mailing-list.
>
> Ah, OK. I thought that was the case but I am obviously wrong. Has
> there been a change, or have I been wrong for a long time!?

I'm not aware of any significant period in the last twenty-one years
that it hasn't been working. Although sometimes it does feel like it
isn't, in that I reply to a post with an answer and then several
other people reply significantly later with the same answer, as if
my one had never existed... but whenever I check into it, my message
has actually always made it to the list.

Re: Usenet vs. Mailing-list

<87357uujoz.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 03:02:36 +0000
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <87357uujoz.fsf@bsb.me.uk>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk>
<slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="7b34fa1cf39130dabd9dbba19bdd8c34";
logging-data="2727733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6o39fcI9gLpFwA8frKuVTsWyqRWfLHWs="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:IWfSeHrZVVnbOg6bKwZFMU07Zsg=
sha1:ptAuvtZj/bQ4jDBRub3F4Mbb1Qk=
X-BSB-Auth: 1.b4571ca9a179430e2dc0.20230129030236GMT.87357uujoz.fsf@bsb.me.uk
 by: Ben Bacarisse - Sun, 29 Jan 2023 03:02 UTC

Jon Ribbens <jon+usenet@unequivocal.eu> writes:

> On 2023-01-29, Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
>> "Peter J. Holzer" <hjp-python@hjp.at> writes:
>>
>>> On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
>>>> Muttley@dastardlyhq.com writes:
>>>>
>>>> > Hi
>>>>
>>>> It looks like you posted this question via Usenet. comp.lang.python is
>>>> essentially dead as a Usenet group. It exists, and gets NNTP versions
>>>> of mail sent to the mailing list, but nothing posted to the group via
>>>> NNTP get send on the mailing list.
>>>
>>> This is wrong. I did get Muttley's any your postings via the
>>> mailing-list.
>>
>> Ah, OK. I thought that was the case but I am obviously wrong. Has
>> there been a change, or have I been wrong for a long time!?
>
> I'm not aware of any significant period in the last twenty-one years
> that it hasn't been working. Although sometimes it does feel like it
> isn't, in that I reply to a post with an answer and then several
> other people reply significantly later with the same answer, as if
> my one had never existed... but whenever I check into it, my message
> has actually always made it to the list.

I have had the same experience and, as a result, I rarely post. Maybe
what I have to say is simply not interesting!

--
Ben.

Re: Usenet vs. Mailing-list

<770d27de-222c-40a4-b624-0b7a84561b0bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a0c:efd1:0:b0:537:7634:7d2f with SMTP id a17-20020a0cefd1000000b0053776347d2fmr985807qvt.68.1674967626247;
Sat, 28 Jan 2023 20:47:06 -0800 (PST)
X-Received: by 2002:a05:622a:348:b0:3b8:5b2f:35e9 with SMTP id
r8-20020a05622a034800b003b85b2f35e9mr112688qtw.342.1674967626014; Sat, 28 Jan
2023 20:47:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sat, 28 Jan 2023 20:47:05 -0800 (PST)
In-Reply-To: <87357uujoz.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=68.132.26.145; posting-account=VTlCbQoAAADyYGhDsLQEctjvllNLINLN
NNTP-Posting-Host: 68.132.26.145
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at> <mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk> <slrnttblao.84eh.jon+usenet@raven.unequivocal.eu> <87357uujoz.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <770d27de-222c-40a4-b624-0b7a84561b0bn@googlegroups.com>
Subject: Re: Usenet vs. Mailing-list
From: codewiz...@gmail.com (Igor Berger)
Injection-Date: Sun, 29 Jan 2023 04:47:06 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 36
 by: Igor Berger - Sun, 29 Jan 2023 04:47 UTC

On Saturday, January 28, 2023 at 10:02:57 PM UTC-5, Ben Bacarisse wrote:
> Jon Ribbens <jon+u...@unequivocal.eu> writes:
>
> > On 2023-01-29, Ben Bacarisse <ben.u...@bsb.me.uk> wrote:
> >> "Peter J. Holzer" <hjp-p...@hjp.at> writes:
> >>
> >>> On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
> >>>> Mut...@dastardlyhq.com writes:
> >>>>
> >>>> > Hi
> >>>>
> >>>> It looks like you posted this question via Usenet. comp.lang.python is
> >>>> essentially dead as a Usenet group. It exists, and gets NNTP versions
> >>>> of mail sent to the mailing list, but nothing posted to the group via
> >>>> NNTP get send on the mailing list.
> >>>
> >>> This is wrong. I did get Muttley's any your postings via the
> >>> mailing-list.
> >>
> >> Ah, OK. I thought that was the case but I am obviously wrong. Has
> >> there been a change, or have I been wrong for a long time!?
> >
> > I'm not aware of any significant period in the last twenty-one years
> > that it hasn't been working. Although sometimes it does feel like it
> > isn't, in that I reply to a post with an answer and then several
> > other people reply significantly later with the same answer, as if
> > my one had never existed... but whenever I check into it, my message
> > has actually always made it to the list.
> I have had the same experience and, as a result, I rarely post. Maybe
> what I have to say is simply not interesting!
>
> --
> Ben.

If I remember correctly, multiple regulars that use the mailing list
mentioned that they "killfiled" posts originating from Google groups.
This may contribute to such situations.

Re: Usenet vs. Mailing-list

<87ilgptnwt.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 14:29:06 +0000
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <87ilgptnwt.fsf@bsb.me.uk>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk>
<slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
<87357uujoz.fsf@bsb.me.uk>
<770d27de-222c-40a4-b624-0b7a84561b0bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="7b34fa1cf39130dabd9dbba19bdd8c34";
logging-data="2933603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+94laN8JpvnC3wrrH1lU1Qn3Kwi+nWQeo="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:CSvVScz1+zN0qYEM0rHAvxUjXi4=
sha1:l1lgG0bwMntX6kbFeSkZgi1wMa8=
X-BSB-Auth: 1.e7829e1d690d362deb14.20230129142906GMT.87ilgptnwt.fsf@bsb.me.uk
 by: Ben Bacarisse - Sun, 29 Jan 2023 14:29 UTC

Igor Berger <codewizard@gmail.com> writes:

> On Saturday, January 28, 2023 at 10:02:57 PM UTC-5, Ben Bacarisse wrote:
>> Jon Ribbens <jon+u...@unequivocal.eu> writes:
>>
>> > On 2023-01-29, Ben Bacarisse <ben.u...@bsb.me.uk> wrote:
>> >> "Peter J. Holzer" <hjp-p...@hjp.at> writes:
>> >>
>> >>> On 2023-01-27 21:04:58 +0000, Ben Bacarisse wrote:
>> >>>> Mut...@dastardlyhq.com writes:
>> >>>>
>> >>>> > Hi
>> >>>>
>> >>>> It looks like you posted this question via Usenet. comp.lang.python is
>> >>>> essentially dead as a Usenet group. It exists, and gets NNTP versions
>> >>>> of mail sent to the mailing list, but nothing posted to the group via
>> >>>> NNTP get send on the mailing list.
>> >>>
>> >>> This is wrong. I did get Muttley's any your postings via the
>> >>> mailing-list.
>> >>
>> >> Ah, OK. I thought that was the case but I am obviously wrong. Has
>> >> there been a change, or have I been wrong for a long time!?
>> >
>> > I'm not aware of any significant period in the last twenty-one years
>> > that it hasn't been working. Although sometimes it does feel like it
>> > isn't, in that I reply to a post with an answer and then several
>> > other people reply significantly later with the same answer, as if
>> > my one had never existed... but whenever I check into it, my message
>> > has actually always made it to the list.
>>
>> I have had the same experience and, as a result, I rarely post. Maybe
>> what I have to say is simply not interesting!
>>
>
> If I remember correctly, multiple regulars that use the mailing list
> mentioned that they "killfiled" posts originating from Google groups.
> This may contribute to such situations.

Ah, that may explain most of my confusion. I know I stopped posting
because there didn't seem to be much engagement, but maybe it was just
many list members choosing not to see my posts rather than all list
members not being able to see my posts.

As I said, I did check to see if I could find a reply to a
Usenet-originated post from a list member but my not being able to find
one could just be down to many list members filtering Usenet posts.
It's clearly not universal.

--
Ben.

Re: Usenet vs. Mailing-list

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-pyt...@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 15:33:01 +0100
Lines: 50
Message-ID: <mailman.1711.1675002784.20444.python-list@python.org>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk>
<slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
<20230129143301.2syjtp3fsdljdhyl@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="7nte6mkkmva2bi4n"
X-Trace: news.uni-berlin.de SIvlq1mAOCrOxHXxfHic2APUK9xNlgQIcr+J5qRJne2g==
Return-Path: <hjp-python@hjp.at>
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.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'content-
type:multipart/signed': 0.05; 'content-type:application/pgp-
signature': 0.09; 'filename:fname piece:asc': 0.09;
'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; "hasn't": 0.09; 'post.':
0.09; 'subject:list': 0.11; '"creative': 0.16; '__/': 0.16;
'challenge!"': 0.16; 'forums,': 0.16; 'from:addr:hjp-python':
0.16; 'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16;
'guilty': 0.16; 'hjp@hjp.at': 0.16; 'holzer': 0.16; "isn't,":
0.16; 'reality.': 0.16; 'stross,': 0.16; 'subject:Mailing': 0.16;
'url-ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24': 0.16;
'url-ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16;
'wrote:': 0.16; 'probably': 0.17; 'to:addr:python-list': 0.20;
'(and': 0.25; 'sense': 0.28; 'python-list': 0.32; 'but': 0.32;
"i'm": 0.33; 'mailing': 0.33; 'same': 0.34; 'header:In-Reply-
To:1': 0.34; 'people': 0.36; 'really': 0.37; 'read': 0.38; 'list':
0.39; 'use': 0.39; 'received:212': 0.62; 'feel': 0.63; 'years':
0.65; 'received:userid': 0.66; 'url-ip:212/8': 0.69; 'too.': 0.70;
'subject:. ': 0.73; 'reply': 0.77; 'significant': 0.78; 'period':
0.81; 'happens': 0.84; 'admit': 0.84; 'jon': 0.84; 'received:at':
0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
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: <20230129143301.2syjtp3fsdljdhyl@hjp.at>
X-Mailman-Original-References: <tr0uki$1p2c5$1@dont-email.me>
<87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk>
<slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
 by: Peter J. Holzer - Sun, 29 Jan 2023 14:33 UTC
Attachments: signature.asc (application/pgp-signature)

On 2023-01-29 02:09:28 -0000, Jon Ribbens via Python-list wrote:
> I'm not aware of any significant period in the last twenty-one years
> that
[the gateway]
> hasn't been working. Although sometimes it does feel like it isn't, in
> that I reply to a post with an answer and then several other people
> reply significantly later with the same answer, as if my one had never
> existed...

That's just because people don't read before they post.

Happens in any usenet group or mailing list (and probably in web forums,
too; but I don't really use those). I have to admit that I'm sometimes
guilty of this behaviour, too.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
Re: Usenet vs. Mailing-list

<slrnttd41j.84eh.jon+usenet@raven.unequivocal.eu>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jon+use...@unequivocal.eu (Jon Ribbens)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Sun, 29 Jan 2023 15:26:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <slrnttd41j.84eh.jon+usenet@raven.unequivocal.eu>
References: <tr0uki$1p2c5$1@dont-email.me> <87v8krvgcl.fsf@bsb.me.uk>
<20230128143059.cbigz4ad4uklqtbk@hjp.at>
<mailman.1690.1674916261.20444.python-list@python.org>
<87fsbuumyv.fsf@bsb.me.uk>
<slrnttblao.84eh.jon+usenet@raven.unequivocal.eu>
<20230129143301.2syjtp3fsdljdhyl@hjp.at>
<mailman.1711.1675002784.20444.python-list@python.org>
Injection-Date: Sun, 29 Jan 2023 15:26:43 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="9e99c641038ca773adc23163fff10812";
logging-data="2969300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1861hjR1/e52ewqa4Kd7V06zZSBjyzPirw="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:TRt9ZqYBScT7S+dFqSRjbjeoaoY=
 by: Jon Ribbens - Sun, 29 Jan 2023 15:26 UTC

On 2023-01-29, Peter J. Holzer <hjp-python@hjp.at> wrote:
> On 2023-01-29 02:09:28 -0000, Jon Ribbens via Python-list wrote:
>> I'm not aware of any significant period in the last twenty-one years
>> that
> [the gateway]
>> hasn't been working. Although sometimes it does feel like it isn't, in
>> that I reply to a post with an answer and then several other people
>> reply significantly later with the same answer, as if my one had never
>> existed...
>
> That's just because people don't read before they post.
>
> Happens in any usenet group or mailing list (and probably in web forums,
> too; but I don't really use those). I have to admit that I'm sometimes
> guilty of this behaviour, too.

Well, let's just assume for a moment that I'm familiar with Usenet and
with mailing lists ;-) This sort of replying-without-reading seems to
happen on comp.lang.python/python-list more than usual.

Re: evaluation question

<slrnttdoeq.s20.elvis-85792@notatla.org.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx44.iad.POSTED!not-for-mail
Newsgroups: comp.lang.python
From: elvis-85...@notatla.org.uk
Subject: Re: evaluation question
References: <tr0uki$1p2c5$1@dont-email.me> <Ko8BL.57228$jiuc.57141@fx44.iad>
X-noarchive: yes
X-no-archive: yes
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <slrnttdoeq.s20.elvis-85792@notatla.org.uk>
Lines: 15
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Sun, 29 Jan 2023 21:15:06 UTC
Organization: blocknews - www.blocknews.net
Date: Sun, 29 Jan 2023 21:15:06 GMT
X-Received-Bytes: 960
 by: elvis-85...@notatla.org.uk - Sun, 29 Jan 2023 21:15 UTC

On 2023-01-28, Louis Krupp <lkrupp@invalid.pssw.com.invalid> wrote:
> On 1/27/2023 9:37 AM, Muttley@dastardlyhq.com wrote:

>>>>> eval("print(123)")
>> 123

Does OP expect the text to come from the eval or from the print?

>>> x = print( [i for i in range(1, 10)] )
[1, 2, 3, 4, 5, 6, 7, 8, 9]

>>> x
(nothing printed)

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Sun, 29 Jan 2023 23:57:51 -0500
Lines: 33
Message-ID: <mailman.1717.1675054683.20444.python-list@python.org>
References: <tr0uki$1p2c5$1@dont-email.me> <Ko8BL.57228$jiuc.57141@fx44.iad>
<slrnttdoeq.s20.elvis-85792@notatla.org.uk>
<bd4ffe68-8c09-b716-9f74-aa2d6abf1705@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de zJAKvZwqFD25rgI/z98nUAILxgGZmg5TUqh/6TueOw3Q==
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=dFCbYZDe;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'expression': 0.09;
'(i.e.,': 0.16; '>>>>': 0.16; '>>>>>>': 0.16; 'lambda': 0.16;
'print(': 0.16; 'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'wrote:': 0.16;
'subject:question': 0.17; 'pm,': 0.19; 'to:addr:python-list':
0.20; 'returns': 0.22; 'behavior': 0.26; '>>>': 0.28; 'expect':
0.28; 'header:User-Agent:1': 0.30; 'am,': 0.31; 'received:10.0':
0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'header:In-Reply-To:1':
0.34; "it's": 0.37; 'text': 0.39; 'use': 0.39; 'come': 0.62;
'forget': 0.67; 'header:Received:6': 0.67; 'received:64': 0.67;
'easy': 0.74
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1675054672; a=rsa-sha256;
cv=none;
b=I+nJtrlKQgSGB6+jeefmMGfMo4arVGnS1iAVEPZoykqyB8coIY8Fo9WFHTN+6+sC5rAQtg
cNkoTnIHhBE9YbKY0WCym7i6Zy+5+GW/nN8GS9f8BNUfoKvcLTD9wrqJHRSCuOwfRM/pwS
9Bdrm4HQjQb8CTcgSS6//BheXyZFIS/nZTmf/N09JbopEk+Fu9u1eM8uipKSLg/3TrV2M+
RAlxk9891vrYrwyADCgXMlToLITYkFztWAMZZJ6E+zvy4s7caLKf/VRM4IK8/DCHWncSHy
0scQomdfsyxLEH5wTR2CEuYCy/c2zNMGg16W5v7OL1zq0Rta4EGXJV9QdUstdQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1675054672;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=PllaHTZfcLc3JwnjZhPLARdEr14CdRjUEw1ivVPA81A=;
b=UlDJdY8h11Wui954XrRjRUkGvf96M0qgQKk9F8g0ziPzDSVlAy9DppRzJmmyu9y04h+iZR
xM1Vz/nBAaRZVKekY1jP+IJS9YYmFjiCRfCqSeu+Jk0gAjurJPOQSAOqB73I0nN7b7XIB1
qcv6OIorIYojfMOA+0CFhq2zeY0UlN8pegs76AQzcUgpf4ny+51FB5RA8oXnr2iuakn/pL
7av9fTuPrB7lCFKsl5NHv7HowTl3s7lEvHCRs2IaQOYvTU18CpL78E8Odji6r1wGdexyTU
3zo6a8vMLHyUF1QZFw3Vpc6XUboHZFeoOAuuQKx/tlFjDIqSPPEP4uB7sEnTWg==
ARC-Authentication-Results: i=1; rspamd-544f66f495-rm5jj;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Coil-Relation: 5750997374ae07af_1675054672765_1136361319
X-MC-Loop-Signature: 1675054672765:3566335910
X-MC-Ingress-Time: 1675054672765
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1675054672;
bh=PllaHTZfcLc3JwnjZhPLARdEr14CdRjUEw1ivVPA81A=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=dFCbYZDeOuHI+gSvojYvepFpSCnZYmZwjKhUe3ZP9yonjCEI2tEbMA+UwA7HcBM+Y
vhdiF4M3jW3RIWDI6F1EcyCdBYeIN6pJ9RYyUfndmXghncsbPHx1/Ljf2jYekTywxY
OEV6EQXtnRGMi05uIf/AOcDUQd4Vk4uBVQzUsWzQ4XtocE0dsFqh2uWvFw+3xbZ506
Wop17O6S5akrs3gqOZlayjX83EkH/oR48oY5DGvew6GewlDdVjpwPcpsBsF++vmDWO
KOT/CFT84Vv/Hkl5xORfTxbCCxHZLOZEX3M15OMPa1abooxNoICUs1XzPEugA5YJZl
BOAlanzWdmlnw==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
In-Reply-To: <slrnttdoeq.s20.elvis-85792@notatla.org.uk>
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: <bd4ffe68-8c09-b716-9f74-aa2d6abf1705@tompassin.net>
X-Mailman-Original-References: <tr0uki$1p2c5$1@dont-email.me>
<Ko8BL.57228$jiuc.57141@fx44.iad>
<slrnttdoeq.s20.elvis-85792@notatla.org.uk>
 by: Thomas Passin - Mon, 30 Jan 2023 04:57 UTC

On 1/29/2023 4:15 PM, elvis-85792@notatla.org.uk wrote:
> On 2023-01-28, Louis Krupp <lkrupp@invalid.pssw.com.invalid> wrote:
>> On 1/27/2023 9:37 AM, Muttley@dastardlyhq.com wrote:
>
>
>>>>>> eval("print(123)")
>>> 123
>
>
> Does OP expect the text to come from the eval or from the print?
>
>>>> x = print( [i for i in range(1, 10)] )
> [1, 2, 3, 4, 5, 6, 7, 8, 9]
>
>>>> x
> (nothing printed)

Because print() returns nothing (i.e., the statement x is None is True).
Other common constructs that return nothing are append(), sort(), and
add(). It can be easy to forget this and write

l2 = l1.sort() # l2 == None

OTOH, you can (by slightly abusing the lambda) use this behavior to make
a lambda expression print what it's receiving:

>>> y = lambda x: print(f'Got {x}') or x**2
>>> z = y(3)
Got 3
>>> z
9 >>>

Re: evaluation question

<tr83bf$381e1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Mon, 30 Jan 2023 09:41:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <tr83bf$381e1$1@dont-email.me>
References: <tr0uki$1p2c5$1@dont-email.me> <Ko8BL.57228$jiuc.57141@fx44.iad>
<slrnttdoeq.s20.elvis-85792@notatla.org.uk>
<bd4ffe68-8c09-b716-9f74-aa2d6abf1705@tompassin.net>
<mailman.1717.1675054683.20444.python-list@python.org>
Injection-Date: Mon, 30 Jan 2023 09:41:03 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6291ad7db668a60478855abb440a352a";
logging-data="3409345"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6W3qVvJ0o5S8HaguwxPLK"
Cancel-Lock: sha1:B4NlNgjf/tX0i9uOVMXctAOFQzE=
 by: Mutt...@dastardlyhq.com - Mon, 30 Jan 2023 09:41 UTC

On Sun, 29 Jan 2023 23:57:51 -0500
Thomas Passin <list1@tompassin.net> wrote:
>On 1/29/2023 4:15 PM, elvis-85792@notatla.org.uk wrote:
>> On 2023-01-28, Louis Krupp <lkrupp@invalid.pssw.com.invalid> wrote:
>>> On 1/27/2023 9:37 AM, Muttley@dastardlyhq.com wrote:
>>
>>
>>>>>>> eval("print(123)")
>>>> 123
>>
>>
>> Does OP expect the text to come from the eval or from the print?
>>
>>>>> x = print( [i for i in range(1, 10)] )
>> [1, 2, 3, 4, 5, 6, 7, 8, 9]
>>
>>>>> x
>> (nothing printed)
>
>Because print() returns nothing (i.e., the statement x is None is True).

I don't understand this. What was the point of the upheaval of converting
the print command in python 2 into a function in python 3 if as a function
print() doesn't return anything useful? Surely even the length of the
formatted string as per C's sprintf() function would be helpful?


devel / comp.lang.python / Re: evaluation question

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor