Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Research is what I'm doing when I don't know what I'm doing. -- Wernher von Braun


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
Re: Usenet vs. Mailing-list

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

  copy mid

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

  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!not-for-mail
From: grant.b....@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Mon, 30 Jan 2023 08:24:58 -0800 (PST)
Lines: 17
Message-ID: <mailman.1718.1675095902.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>
<63d7ef5a.050a0220.d1c5.6a7b@mx.google.com>
X-Trace: news.uni-berlin.de Ur4eu1Y1rVobS8F68TcxzwgFZLHsx4zRDiBkwXdtqBGA==
Return-Path: <grant.b.edwards@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=Rb/iXOei;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.048
X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; ':-)': 0.09; 'perfectly.':
0.09; 'subject:list': 0.11; 'computers.': 0.16;
'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards':
0.16; 'nntp': 0.16; 'subject:Mailing': 0.16; 'wrote:': 0.16;
'python': 0.16; 'grant': 0.17; 'to:addr:python-list': 0.20; "i'd":
0.24; 'task': 0.26; 'chris': 0.28; 'header:User-Agent:1': 0.30;
'but': 0.32; 'mailing': 0.33; 'able': 0.34; 'received:google.com':
0.34; 'received:209.85.166': 0.35; 'from:addr:gmail.com': 0.35;
'people': 0.36; 'received:209.85': 0.37; 'received:209': 0.39;
'list': 0.39; 'stopped': 0.40; 'something': 0.40; 'e-mail': 0.61;
'love': 0.62; 'working,': 0.69; 'subject:. ': 0.73; 'supposed':
0.76; 'retire': 0.84; 'green': 0.96
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=1EaVOqGUiZNUlfdJ+16gcIwCsU9aTCzEBCeZ0A7fh5k=;
b=Rb/iXOeiy2DE0FGO57YtReGbT5R/s4iIgD0XFu69/WZuEWJ3FE1WZndCPfUUrnSEHN
x/Q38Qw50ssyxxQ79yb47KatZkfWhK60RIMDwsl9TJLDIfy90xo+zGwGoc2Ac3yt+Xgj
Ol76aq4esb0eBXyGznpylFp1BY3M3yvHe9tekrwPhZPSmrmTQSgfoZEWWA0XO9S2xOyp
idlmREsKq2Rnm+MpABnrh2mqQOF0D+jE/eyXqB8SZLIeqCmjvYujD6i9JtkDiQ5tW7RT
HGp9n7CxGcpL46LiFZz+gY3od8gZbtBPi6kuAFnT+wDYcCa7Y89w+YskZjq7+sYkDWM2
78DQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=1EaVOqGUiZNUlfdJ+16gcIwCsU9aTCzEBCeZ0A7fh5k=;
b=wgPw0eI/OWYAn5f0jh+HdsoBdad0Olx0exsL1wRwXUe0uRmx2rKH/87Fls92S/wnlv
rVfhYn2ScyCFL0193eVyPWBNQTiRpNHnzXnDsW0ao4xKCfEnsno2y5CralCU4TizO8aN
8hVWV8je0Fvu3ChaTTTjaf9N+ZMN3dKY9M3xnuKZ+enJxG/LtCYLfH82EyXLNeNWRFXs
2nAfWDFpXfkWODRamDe9WMVZqA97XtairN+XHJphr6wf57t48ldXloWsEbOeQQf4zIDJ
2QYbikwHpYTeO4DLNKMGg2sbAQaCCOqBw2K9gbYBZntOTzG/8yPkbKk5eipzvNpcgY13
cGsQ==
X-Gm-Message-State: AO0yUKWvGp7qg1mCIUMQLpxFhitF422PHBdanuqC6WLJqAD+NVzw/tYT
I2foHL5ogqdUqrNg/xYiuwWYcuSNMwQ=
X-Google-Smtp-Source: AK7set/h2F1gyvUnkjle77bBCvS0zydSD1126aMsZBllJj8mlOsbrdQiG8XwmWpvl9sVGHcxHOd5ZA==
X-Received: by 2002:a05:6602:1595:b0:71f:d4fb:d611 with SMTP id
e21-20020a056602159500b0071fd4fbd611mr1149691iow.14.1675095899360;
Mon, 30 Jan 2023 08:24:59 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
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: <63d7ef5a.050a0220.d1c5.6a7b@mx.google.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>
 by: Grant Edwards - Mon, 30 Jan 2023 16:24 UTC

On 2023-01-28, Chris Green <cl@isbd.net> wrote:

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

If gmane stopped working, I'd have to retire and give up on computers.

I supposed I might be able to hammer procmail and mutt into something
tolerable, but slrn pointed at gmane works wonderfully without any
futzing.

NNTP and newsreaders are designed specifically for the task to which
people have coopted e-mail into via mailing lists.

--
Grant

Re: Usenet vs. Mailing-list

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b....@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Mon, 30 Jan 2023 08:29:27 -0800 (PST)
Lines: 28
Message-ID: <mailman.1719.1675096170.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>
<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
<63d7f067.050a0220.21432.6a70@mx.google.com>
X-Trace: news.uni-berlin.de 36n0h/GVwlnZN+I3ldMtwgmBmzhAws8y5Cxkes8ANoJA==
Return-Path: <grant.b.edwards@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=HuKv9Br/;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url-ip:140.82/16': 0.03;
'this:': 0.03; '(e.g.': 0.05; '2023': 0.07; 'python.': 0.08;
':-)': 0.09; 'blocking': 0.09; 'outgoing': 0.09; 'perfectly.':
0.09; 'posts.': 0.09; 'rejecting': 0.09; 'subject:list': 0.11;
'url:github': 0.14; 'url-ip:140/8': 0.15;
'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards':
0.16; 'nntp': 0.16; 'received:209.85.166.174': 0.16; 'received
:mail-il1-f174.google.com': 0.16; 'server,': 0.16; 'skip:> 10':
0.16; 'subject:Mailing': 0.16; 'wrote:': 0.16; 'python': 0.16;
'to:addr:python-list': 0.20; 'written': 0.22; 'sat,': 0.22;
'(and': 0.25; 'chris': 0.28; 'header:User-Agent:1': 0.30; 'but':
0.32; 'mailing': 0.33; 'particular': 0.33; 'received:google.com':
0.34; 'submitted': 0.35; 'received:209.85.166': 0.35;
'from:addr:gmail.com': 0.35; 'posts': 0.36; "it's": 0.37;
'received:209.85': 0.37; 'read': 0.38; 'received:209': 0.39;
'list': 0.39; 'wrote': 0.39; 'want': 0.40; 'email.': 0.61; 'kept':
0.61; 'love': 0.62; 'back': 0.67; 'revert': 0.68; 'following:':
0.69; 'them,': 0.70; 'deal': 0.73; 'subject:. ': 0.73; 'green':
0.96
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=hd8CUgtvPRMF2lHO5s9z1cmwp26IpK19pxmQTkLAYpg=;
b=HuKv9Br/GMgHF5JS22lf0GgCGFx5qfPP5f+9pe3SGS+Fp9c3evzsLxlel08vxJ8o33
FCgJFndxFCnjA983nYfcGshaMHWVZxYmZDpU6514xwlgUGZZNVK7tCsym18Ym20pN9As
hDvfOlJ6eHNJWpkTLsjgbc1srgj+ZLPM/BKYeUPRv97qk4gpDojc3AS7O8G+QdJxOwzT
Ws+I4xX3Cqb6zy4paiM3+UbstvIM8oILPiqgqfw+xllCrgkFNPmfIjIOsPZnF3Bee3KC
qe04O8uJMHJZT8Nam6tgoI9iQboZgiD6OBToaOtkOfAfAiDnjyFPaVEVBnU50SoBInZI
43yA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=hd8CUgtvPRMF2lHO5s9z1cmwp26IpK19pxmQTkLAYpg=;
b=ZqCiLupSIJMJA/mXp809AcP1i4RNSAAxOgylX0pLO02eEw8EX7WSBaAq+VjhhwE3Ly
VRedqUnx5rbyiwHoLE3EFGu+THAWU6gFe9Di7y5cKyqMZtfeQcVQFzk2H4SEoFIXXXbd
mXgU6DKp+TmztGVOvXC3YXF2S6aEWABAd0GEltCDJD+1L0/Y082y90T8P2wbHjDnZBc6
7qlRQeZxdWQVNyNv27cCqMaXdEcYfjSe135f5nqwqhSQJJU5Rr6gcRF7S364dppEPmdK
bFiQ7NzqdIaW9N1GPfQS1GLoTpVHJ0X7o9IfkLqqlTSxRD4LXTgWKXTi1NJIH5JtAtdG
3kWQ==
X-Gm-Message-State: AO0yUKVLJGQEMRNqpF25JMex4DgdkngwDSJMeJDbMyaiBzJnVrIy7bJ0
0m680rVbIiPE4rbBZK6LN2FiC616SXA=
X-Google-Smtp-Source: AK7set9LG/LG7KNmJl+vlQHeLXa2VAitfRtOIu9kUvV9+S+mFCYYIN3Q4LQBYVatQj2VdR1/MdyeHw==
X-Received: by 2002:a05:6e02:1e08:b0:310:f849:83b9 with SMTP id
g8-20020a056e021e0800b00310f84983b9mr3349837ila.9.1675096167864;
Mon, 30 Jan 2023 08:29:27 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
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: <63d7f067.050a0220.21432.6a70@mx.google.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>
<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
 by: Grant Edwards - Mon, 30 Jan 2023 16:29 UTC

On 2023-01-28, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> 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.

No. FWIW, it's the mailing list that's blocking them, not Gmane.

That's why I wrote this:

https://github.com/GrantEdwards/hybrid-inews

It's an inews work-alike that submits most posts via gmanes NNTP
server, but will deal with particular groups
(e.g. gmane.comp.python.general) that want posts submitted via email.

It allows me to continue to read (and post to) the Python mailling
list via slrn pointed at gmane.

It is, of course, written in Python.

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: rob.cli...@btinternet.com (Rob Cliffe)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Mon, 30 Jan 2023 19:00:04 +0000
Lines: 40
Message-ID: <mailman.1720.1675105226.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me>
<322a101c-53c0-a267-c910-991f3db43841@btinternet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de UhnazY1jCTq7jHIatD3H7gJO3wgSn6S/+rdDGE6utptw==
Return-Path: <rob.cliffe@btinternet.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=btinternet.com header.i=@btinternet.com header.b=M0KQZf5k;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; "python's": 0.05; '2023':
0.07; 'explanation': 0.07; 'string': 0.07; 'sun,': 0.07;
'converting': 0.09; 'questions.': 0.14; 'syntax': 0.15; '(b)':
0.16; '(i.e.,': 0.16; '>>>>': 0.16; '>>>>>': 0.16; '>>>>>>': 0.16;
'>>>>>>>>': 0.16; 'considered,': 0.16; 'expressions': 0.16;
'print(': 0.16; 'question,': 0.16; 'wrote:': 0.16; 'python': 0.16;
'subject:question': 0.17; 'instead': 0.17; 'pm,': 0.19; 'to:addr
:python-list': 0.20; 'option': 0.20; 'returns': 0.22; 'command':
0.23; 'anything': 0.25; 'function': 0.27; '>>>': 0.28; 'expect':
0.28; 'output': 0.28; 'header:User-Agent:1': 0.30; 'am,': 0.31;
"doesn't": 0.32; 'guess': 0.32; 'received:192.168.1': 0.32;
'there': 0.33; 'same': 0.34; 'header:In-Reply-To:1': 0.34;
'change': 0.36; 'special': 0.37; 'this.': 0.37;
'received:192.168': 0.37; 'could': 0.38; 'text': 0.39; 'use':
0.39; 'received:213': 0.40; 'wishes': 0.40; 'best': 0.61;
'remember': 0.61; 'come': 0.62; 'per': 0.68; '(you': 0.76;
'url:ca': 0.76; 'characters': 0.84; 'rob': 0.84; 'statement.':
0.84; 'dropping': 0.91; 'flexible': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com;
s=btmx201904; t=1675105218;
bh=d4OUT82D0siufMYeO8UpK18Pf5TkOqvHSmYVq0aq+2g=;
h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To;
b=M0KQZf5k5EVJoD+KcJq1CGR9yAWbU9/6Q9hwVF/yxpKcYNlZsRHQnMsm4oE47vT4BXNyi0xErM+p+8LSM82o+9jVpkLqrCaS0mXxfX6AG/fa5KGk7eLDohA2Hmvhm7VRKlueM3M0+ir95X5m/c3uQPlOhbUrVJw/6MX1b/If+We9XtoiXA/jkaBPzRnU6UfZ+vyWQsVCDRXjELNQEfu8Vdna+0C0zlMOfBHdeglkhdGRB56JSZ2Fdk1fbGvYDGbs9vZkhKC6HytM8E5xkYonBipjylMH7wqh7TUU8ieLrbTSsmhhgn0gIYQnQG1hFWWYnaap2w5BdRk/aJXqXNvrsA==
Authentication-Results: btinternet.com;
auth=pass (PLAIN) smtp.auth=rob.cliffe@btinternet.com;
bimi=skipped
X-SNCR-Rigid: 613A91244CB4391F
X-Originating-IP: [109.149.69.127]
X-OWM-Source-IP: 109.149.69.127 (GB)
X-OWM-Env-Sender: rob.cliffe@btinternet.com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrudefvddguddvudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftohgsucevlhhifhhfvgcuoehrohgsrdgtlhhifhhfvgessghtihhnthgvrhhnvghtrdgtohhmqeenucggtffrrghtthgvrhhnpeehuddukeduheefvefhuddtffejhfeuveefveeuhefhteefkeffudeitdehheeggfenucffohhmrghinhepshhnrghrkhihrdgtrgenucfkphepuddtledrudegledrieelrdduvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddvtdegngdpihhnvghtpedutdelrddugeelrdeiledruddvjedpmhgrihhlfhhrohhmpehrohgsrdgtlhhifhhfvgessghtihhnthgvrhhnvghtrdgtohhmpdhnsggprhgtphhtthhopedupdhrtghpthhtohepphihthhhohhnqdhlihhsthesphihthhhohhnrdhorhhg
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-SNCR-hdrdom: btinternet.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-GB
In-Reply-To: <tr83bf$381e1$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: <322a101c-53c0-a267-c910-991f3db43841@btinternet.com>
X-Mailman-Original-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>
<tr83bf$381e1$1@dont-email.me>
 by: Rob Cliffe - Mon, 30 Jan 2023 19:00 UTC

On 30/01/2023 09:41, Muttley@dastardlyhq.com wrote:
> 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?
>
That's a fair question, or rather 2 fair questions.
There is an explanation of why the change was made at
    https://snarky.ca/why-print-became-a-function-in-python-3/
In brief: (a) the print() function is more flexible and can be used in
expressions
               (b) Python's syntax was simplified by dropping the
special syntax used by the print statement.
sys.stdout.write() does return the number of characters output (you
could use this instead of print() if you need this;
remember to add a '\n' character at the end of  a line).  I guess the option
of making print() do the same either was not considered, or was
rejected, when print was made a function.
Best wishes
Rob Cliffe

Re: evaluation question

<k3r3rgF5l1hU1@mid.individual.net>

  copy mid

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

  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: greg.ew...@canterbury.ac.nz (Greg Ewing)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Tue, 31 Jan 2023 12:57:33 +1300
Lines: 14
Message-ID: <k3r3rgF5l1hU1@mid.individual.net>
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>
<tr83bf$381e1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 1atsSdjw4x/o+TPItcuMwwYdPGt0cdGnkASxhZJdnxKILcXnLA
Cancel-Lock: sha1:KCCHGbUPsYdhOmAlByk4jojo5PY=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0)
Gecko/20100101 Thunderbird/91.3.2
Content-Language: en-US
In-Reply-To: <tr83bf$381e1$1@dont-email.me>
 by: Greg Ewing - Mon, 30 Jan 2023 23:57 UTC

On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
> 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?

It was made a function because there's no good reason for it
to have special syntax in the language.

Functions don't need to return things to justify their existence,
and in fact the usual convention is that functions whose purpose
is to have an effect just return None.

--
Greg

Re: evaluation question

<tramnp$3ohlk$1@dont-email.me>

  copy mid

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

  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: Tue, 31 Jan 2023 09:24:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <tramnp$3ohlk$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>
<tr83bf$381e1$1@dont-email.me>
<k3r3rgF5l1hU1@mid.individual.net>
Injection-Date: Tue, 31 Jan 2023 09:24:10 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fee8ac6d96ea44320f5c9fe407f51e22";
logging-data="3950260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HX0q9oGjIoxBfyVHzqPnG"
Cancel-Lock: sha1:PMFQ6+VAMIuzs8zDSb6E+ApV2GQ=
 by: Mutt...@dastardlyhq.com - Tue, 31 Jan 2023 09:24 UTC

On Tue, 31 Jan 2023 12:57:33 +1300
Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
>On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
>> 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?
>
>It was made a function because there's no good reason for it
>to have special syntax in the language.

All languages have their ugly corners due to initial design mistakes and/or
constraints. Eg: java with the special behaviour of its string class, C++
with "=0" pure virtual declaration. But they don't dump them and make all old
code suddenly cease to execute.

Pragmatism should always come before language purity.

Re: Usenet vs. Mailing-list

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

  copy mid

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

  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: as...@sci.fi (Anssi Saari)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Tue, 31 Jan 2023 12:08:18 +0200
Organization: An impatient and LOUD arachnid
Lines: 19
Message-ID: <mailman.1722.1675162301.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>
<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
<63d7f067.050a0220.21432.6a70@mx.google.com>
<sm0k013t3sd.fsf@lakka.kapsi.fi>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: news.uni-berlin.de hKb347wLqq71dOB3FlaLCg31HTYXl8d5aKhMAiXEQq3g==
Return-Path: <as@sci.fi>
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.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url-ip:140.82/16': 0.03;
'this:': 0.03; '(e.g.': 0.05; 'blocking': 0.09; 'writes:': 0.09;
'subject:list': 0.11; 'url:github': 0.14; 'url-ip:140/8': 0.15;
'interesting.': 0.16; 'nntp': 0.16; 'server,': 0.16;
'subject:Mailing': 0.16; 'python': 0.16; 'grant': 0.17; 'to:addr
:python-list': 0.20; '(and': 0.25; 'settings': 0.28; 'header:User-
Agent:1': 0.30; 'header:Organization:1': 0.31; 'but': 0.32;
'mailing': 0.33; 'particular': 0.33; 'header:In-Reply-To:1': 0.34;
'submitted': 0.35; 'posts': 0.36; 'couple': 0.37; "it's": 0.37;
'read': 0.38; 'list': 0.39; 'wrote': 0.39; 'want': 0.40; 'should':
0.40; 'email.': 0.61; 'received:91': 0.62; 'them,': 0.70; 'deal':
0.73; 'subject:. ': 0.73
Mail-Followup-To: python-list@python.org
In-Reply-To: <63d7f067.050a0220.21432.6a70@mx.google.com> (Grant Edwards's
message of "Mon, 30 Jan 2023 08:29:27 -0800 (PST)")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
X-Rspam-Score: -1.5 (-)
X-Rspam-Report: Action: no action Symbol: RCVD_TLS_LAST(0.00)
Symbol: ARC_NA(0.00) Symbol: FROM_HAS_DN(0.00)
Symbol: FREEMAIL_FROM(0.00) Symbol: TO_MATCH_ENVRCPT_ALL(0.00)
Symbol: MIME_GOOD(-0.10) Symbol: TO_DN_NONE(0.00)
Symbol: DMARC_NA(0.00) Symbol: R_SPF_SOFTFAIL(0.00)
Symbol: RCPT_COUNT_ONE(0.00) Symbol: HAS_ORG_HEADER(0.00)
Symbol: FROM_EQ_ENVFROM(0.00) Symbol: R_DKIM_NA(0.00)
Symbol: FREEMAIL_ENVFROM(0.00) Symbol: ASN(0.00)
Symbol: MIME_TRACE(0.00) Symbol: BAYES_HAM(-1.40)
Symbol: RCVD_COUNT_TWO(0.00)
Message-ID: sm0k013t3sd.fsf@lakka.kapsi.fi
X-SA-Exim-Connect-IP: 2001:67c:1be8::11
X-SA-Exim-Mail-From: as@sci.fi
X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false
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: <sm0k013t3sd.fsf@lakka.kapsi.fi>
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>
<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
<63d7f067.050a0220.21432.6a70@mx.google.com>
 by: Anssi Saari - Tue, 31 Jan 2023 10:08 UTC

Grant Edwards <grant.b.edwards@gmail.com> writes:

> No. FWIW, it's the mailing list that's blocking them, not Gmane.
>
> That's why I wrote this:
>
> https://github.com/GrantEdwards/hybrid-inews
>
> It's an inews work-alike that submits most posts via gmanes NNTP
> server, but will deal with particular groups
> (e.g. gmane.comp.python.general) that want posts submitted via email.
>
> It allows me to continue to read (and post to) the Python mailling
> list via slrn pointed at gmane.

Interesting. In Gnus it was just a couple of settings to make it
understand that in this group (i.e. gmane group
gmane.comp.python.general) posts and follow-ups should be sent via mail
to the mailing list address.

Re: Usenet vs. Mailing-list

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b....@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list
Date: Tue, 31 Jan 2023 06:11:05 -0800 (PST)
Lines: 37
Message-ID: <mailman.1723.1675174268.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>
<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
<63d7f067.050a0220.21432.6a70@mx.google.com>
<sm0k013t3sd.fsf@lakka.kapsi.fi>
<63d92179.920a0220.39bbe.0a0b@mx.google.com>
X-Trace: news.uni-berlin.de xfH4dbuuHmg6S7aW31e/uwVCH7zQQZTZgijlb/xE1Xdg==
Return-Path: <grant.b.edwards@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=bz3LASRM;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url-ip:140.82.114/24':
0.03; 'url-ip:140.82/16': 0.03; 'poster': 0.03; 'this:': 0.03;
'(e.g.': 0.05; 'blocking': 0.09; 'utility': 0.09; 'writes:': 0.09;
'subject:list': 0.11; 'url:github': 0.14; 'url-ip:140/8': 0.15;
'feature.': 0.16; 'followup': 0.16; 'from:addr:grant.b.edwards':
0.16; 'from:name:grant edwards': 0.16; 'interesting.': 0.16;
'nntp': 0.16; 'server,': 0.16; 'subject:Mailing': 0.16; 'wrote:':
0.16; 'python': 0.16; 'grant': 0.17; 'instead': 0.17; 'implement':
0.19; 'libraries': 0.19; 'to:addr:python-list': 0.20; 'header':
0.23; 'lines': 0.23; '(and': 0.25; 'python,': 0.25; 'group.':
0.28; 'settings': 0.28; 'header:User-Agent:1': 0.30; 'looked':
0.31; 'but': 0.32; 'mailing': 0.33; 'particular': 0.33;
'received:google.com': 0.34; 'submitted': 0.35;
'received:209.85.166': 0.35; 'from:addr:gmail.com': 0.35; 'fix':
0.36; 'posts': 0.36; 'couple': 0.37; 'missing': 0.37; "it's":
0.37; 'received:209.85': 0.37; 'read': 0.38; 'thanks': 0.38;
'received:209': 0.39; 'adding': 0.39; 'edit': 0.39; 'setting':
0.39; 'list': 0.39; 'wrote': 0.39; 'want': 0.40; 'should': 0.40;
'email.': 0.61; 'e-mail': 0.61; 'to:': 0.62; 'let': 0.66; 'that,':
0.67; 'took': 0.69; 'depending': 0.70; 'them,': 0.70; 'deal':
0.73; 'subject:. ': 0.73; 'smarter': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=vTrLZCYApox/C8sIwkFvgCb7e13OQoJI0EnzHFIWRm8=;
b=bz3LASRMqxUbrLmJiVjXJJKOAOfy5Y9Kjv5vakCTmzOjEObuVY3NV0jjathvdsxKvs
LjeUP3lXD2xrngsMVdEf2a5ujFuVn/bccROYx40NQuUQieRlC4Od3LnaOnIh9I1iQFBL
rmc09ZVpZaG5IarFGrP0xrYAiQ8VxGZ6c8CFVOYfFdPXnzCBbC80A4noFjwkW18wkfeP
ntcI5gAwEzMmYf2wDFiXWD7ozAk6pBXF+nVoemjC/BxNWy0P62+SO17EDI0vSjFVYXw2
d3D16mco/OXSCv36/s71yp3q6y0ItOZ0jPuPLc93JGG70FbDE7nIijw6uk1eM86sm4qU
EI+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=vTrLZCYApox/C8sIwkFvgCb7e13OQoJI0EnzHFIWRm8=;
b=7UtDnvrDWtJIcJusiXAe4oUwHRlqC7cPUluFF5Ra31W2oM9kcgZ/eBe36vhllRfYEo
5s8UUT0uq+oSyhdCQl+R3c4fPAdVVv0HBLoAtA1WCHnGFJyfMMX24yNuClMaBGKHr+o4
dLi8QwxGFcy/HVVH0HGnctE2VQy3BKlmYhF8QQAzSUpeZfFmnVPSN2JfYI94rcHVyIXN
ZOeqpyBibdorCjkl1n0CoMg/L3JtLravl3r7dfLgwkCNLSf8Ea+hj7JEmfdZ4RFIvNwF
RftnJAV43nozfSjfUcVIX3hOc9Qjn/UkActj0/x6pACNgEdeblRAhWWM40YKmUobii+C
+0hA==
X-Gm-Message-State: AO0yUKVdLaE56fw3L72VRI3CotKUGulfXw3eB6WIQtJDEnP+6ajsG2u3
MSRerhAIOY87gA7rtH05MKfgz+gNFmI=
X-Google-Smtp-Source: AK7set8IfODHvekkFLEddbcJBrzRRRK3wq4RF/3kvTtQ66S2xphRnjbKvB6ZZlwlhhuNLw1O6wsEOQ==
X-Received: by 2002:a05:6e02:1d8c:b0:310:a935:46ef with SMTP id
h12-20020a056e021d8c00b00310a93546efmr22843934ila.3.1675174265946;
Tue, 31 Jan 2023 06:11:05 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
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: <63d92179.920a0220.39bbe.0a0b@mx.google.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>
<5d5bth9bkjs3bt0ulo7djuvp7m0f6t33c5@4ax.com>
<63d7f067.050a0220.21432.6a70@mx.google.com>
<sm0k013t3sd.fsf@lakka.kapsi.fi>
 by: Grant Edwards - Tue, 31 Jan 2023 14:11 UTC

On 2023-01-31, Anssi Saari <as@sci.fi> wrote:
> Grant Edwards <grant.b.edwards@gmail.com> writes:
>
>> No. FWIW, it's the mailing list that's blocking them, not Gmane.
>>
>> That's why I wrote this:
>>
>> https://github.com/GrantEdwards/hybrid-inews
>>
>> It's an inews work-alike that submits most posts via gmanes NNTP
>> server, but will deal with particular groups
>> (e.g. gmane.comp.python.general) that want posts submitted via email.
>>
>> It allows me to continue to read (and post to) the Python mailling
>> list via slrn pointed at gmane.
>
> Interesting. In Gnus it was just a couple of settings to make it
> understand that in this group (i.e. gmane group
> gmane.comp.python.general) posts and follow-ups should be sent via mail
> to the mailing list address.

Ah, slrn is missing that feature. It will let you e-mail a response
instead of posting a followup (IIRC, you hit 'r' instead of 'f'), but
when you do that it sends the e-mail to the poster rather than to the
list. You can edit the To: header to fix that, but that's too much to
remember. :)

I looked into adding such a feature to slrn, but it was far easier to
switch the slrn setting so that it posted via an external inews
utility instead of the built-in NNTP client. Then all I needed was a
smarter 'inews'. Thanks the the NNTP and SMTP libraries in Python, it
took only 50 lines of Python to implement an external inews utility
that routed postings to either gname via NNTP or list-servers via SMTP
depending on the group.

--
Grant

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: learn2pr...@gmail.com (Alan Gauld)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list (was: evaluation question)
Date: Tue, 31 Jan 2023 18:07:30 +0000
Lines: 19
Message-ID: <mailman.1724.1675188453.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>
<255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>
<a9d4b693-f1fe-b3ac-2122-c23ebf98ea2c@yahoo.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de RXIw09xVy6mcvDJAzpgyBA8YpfW3A7BDNiUT6pKleIiw==
Return-Path: <learn2program@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=Htg3cwzV;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.012
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url-ip:65/8': 0.07;
'subject:list': 0.11; 'flickr': 0.16; 'from:name:alan gauld':
0.16; 'message-id:@yahoo.co.uk': 0.16; 'photo-blog': 0.16;
'received:209.85.221.42': 0.16; 'received:mail-
wr1-f42.google.com': 0.16; 'subject:Mailing': 0.16; 'url-
ip:65.9/16': 0.16; 'url-ip:79.170.44.132/32': 0.16; 'url-
ip:79.170.44/24': 0.16; 'url-ip:79.170/16': 0.16; 'url-ip:79/8':
0.16; 'url:alan-g': 0.16; 'url:alan_gauld': 0.16;
'url:alangauldphotos': 0.16; 'wrote:': 0.16; 'says': 0.17;
'subject:question': 0.17; 'url:amazon': 0.19; 'to:addr:python-
list': 0.20; 'to:name:python-list@python.org': 0.24; 'header:User-
Agent:1': 0.30; 'before.': 0.31; 'program': 0.31;
'received:192.168.1': 0.32; 'but': 0.32; 'mailing': 0.33;
'server': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
'received:209.85': 0.37; 'author': 0.37; 'received:192.168': 0.37;
'received:209': 0.39; 'list': 0.39; 'use': 0.39; 'still': 0.40;
'alan': 0.40; 'learn': 0.40; 'follow': 0.62; 'responding': 0.69;
'url:author': 0.69; 'site': 0.70; 'subject:. ': 0.73; 'highly':
0.78; 'motivated': 0.84; 'pain': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=content-transfer-encoding:in-reply-to:references:to:subject
:user-agent:mime-version:date:message-id:from:from:to:cc:subject
:date:message-id:reply-to;
bh=xtRPgyjGi1gqf1CCswoXvam7NQdAIzbq3LHhvJxFCXg=;
b=Htg3cwzV63cno5ubNYuAJnjFDHc4llW3/9tTSy7/iI0U0qYe35YYU/2fZ3rEuNvZWB
lzC7IbvjlFv4vaDBhBfgOOJw9AqOKtDrdxtIo3jx2tLgqcs4+2y8/55oEwos8m7RRAuD
qdNPxHmEVL6LLjD/9bzD8Ex+dXnN5rb0HCvFgflHx2oL1MxPFdIfRc8npT7FQpV6VUSM
+7TFPvV4giRWHpcEXINsbyB0cS7N2d3FHX1+MeaqDcJZlt+jYdTYrs6QK4OmHV1/lULu
kK7jC+OgRJI9YoNManEHsN4muTL8SVwvUUDXQ1PbkJ1dzjGFnBd4A3Y9DGYuG2bnE9+E
+RfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=content-transfer-encoding:in-reply-to:references:to:subject
:user-agent:mime-version:date:message-id:from:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=xtRPgyjGi1gqf1CCswoXvam7NQdAIzbq3LHhvJxFCXg=;
b=rFxtiNhhGw73z9n6yYQOqN/IT1sQywZjBuS1pecTg1GxJW3ChSoSYOcmDzaIa2ILH5
Si9ZmPGSHOfvbj1vTd2pjICbuss6ZW6Bej+qR5v7MMhou1aMrQwCle5UtCi3iHvvZ7Vw
4EE6PxZhnJxAwkrreuH4sQ/zcJ6JHWWf6NT+ZYamKD7Qu3TwxYXMFNPHLAhEdk+89Nwo
xPutpjNHkYhOG1575mRwq6S+RQ8HcEK59qvVae+bQWL8Ffjrla4vQdSJ8Vl1z92JO2dh
zDeKaVlD6vbTXc03zsEv7s9pg4VK/X94nw5IcGIWesvy39lQaoqrQ2HHxZzFRzZjduHB
s0uw==
X-Gm-Message-State: AO0yUKUlJ15Oy6dI1M12BA2kMXLjukTtY5ORN21H5u0uGZlbYvSU2Guv
wZAQUlodz1iENBMZUosK1Bl2l7qAU2Q=
X-Google-Smtp-Source: AK7set8VgYd6qPjUJVET2KahXUkJ9tfPXSjiZ4GZXNehF3S/cW0eoB/4iXHU7lhPJG+3Swu0SBpoWg==
X-Received: by 2002:adf:c5d3:0:b0:2bd:e1fd:2536 with SMTP id
v19-20020adfc5d3000000b002bde1fd2536mr462952wrg.9.1675188451755;
Tue, 31 Jan 2023 10:07:31 -0800 (PST)
X-Google-Original-From: Alan Gauld <alan.gauld@yahoo.co.uk>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.6.1
In-Reply-To: <255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>
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: <a9d4b693-f1fe-b3ac-2122-c23ebf98ea2c@yahoo.co.uk>
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>
<255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>
 by: Alan Gauld - Tue, 31 Jan 2023 18:07 UTC

On 28/01/2023 21:36, Dennis Lee Bieber wrote:

> 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

I still use gmane but its no posting thing is a pain because responding
(or posting new stuff) is a now more complicated than before. So
I have to be very highly motivated to jump through the hoops.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

Re: evaluation question

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

  copy mid

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

  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: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Tue, 31 Jan 2023 13:15:40 -0500
Lines: 22
Message-ID: <mailman.1725.1675188953.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@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 KQJkbNZ3lNMNVA3EuUPvCQfEJCtJKj6cnHh7XJ8LmQqg==
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=ajjHDecM;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'class,': 0.05; '2023':
0.07; 'string': 0.07; 'converting': 0.09; 'fundamental': 0.09;
'syntax': 0.15; 'behaviour': 0.16; 'c++': 0.16; 'cease': 0.16;
'constraints.': 0.16; 'declaration.': 0.16; 'eg:': 0.16; 'greg':
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; 'python': 0.16;
'subject:question': 0.17; 'pm,': 0.19; 'tue,': 0.19; 'to:addr
:python-list': 0.20; 'language': 0.21; 'languages': 0.22; 'code':
0.23; 'command': 0.23; 'anything': 0.25; 'function': 0.27; 'old':
0.27; '>>>': 0.28; 'header:User-Agent:1': 0.30; 'am,': 0.31;
"doesn't": 0.32; 'language.': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; 'header:In-
Reply-To:1': 0.34; 'special': 0.37; 'should': 0.40; 'initial':
0.61; "there's": 0.61; 'come': 0.62; 'mainly': 0.64;
'header:Received:6': 0.67; 'received:64': 0.67; 'that,': 0.67;
'virtual': 0.71; 'url:ca': 0.76; 'corners': 0.84; 'purity.': 0.84;
'mistakes': 0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1675188942; a=rsa-sha256;
cv=none;
b=JVsRY98guvYqY6CrKo4UQe41vbvd5i1rwq0/cw1/VvX4YsuQxVQpzKbagh7tjh+t3I2CHX
s3ozX8Uw3wLbaiLvOH7UsHUNxucUdsxcgYyS9ioVC5OHz6GULGVBEGcW8N8g/cGHWYKy9H
Y4GamPOQHIV1sGBlCio93AVpNI09ycmC7YFWsqJYJqwCwOcihYHYFnRsGXm7cfkKmt8AY9
E4Wg6cpSUVMoeB4pbtFNMhqaizbZrKSnjBQXQqASZELij5PbZx04e3zhOJFYcwW5FLP1tZ
as4koMa0Mgat+RoZVHhiLzs9yOnNhXIrR0WXoL1lBM/B8541u8SNwiNslrYCIQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1675188942;
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=1PAvhBDBXp0ybd4KD83j+qeSsTOJgNy9M9FDemDazzQ=;
b=Fz2FzwZPIb1hDRdpL64LPE45OK7A2S9ykG6HbH+nh09O6lk5KYVKxsM4AJ+QylWR/eZYVO
81Jsm/zauDXvrgK7wZH2UaKQdSo1bhoiuIAGEpwyGq3ftpCkAg7PsqAbeD3H2DjWDR/uoi
tOTewfqMFMHoYefQsmQhSJGf8upf+rqnQNHRH85Gqro7yJfyyNaiSTFx/OMH+y7FMoeZPy
oDbIBPU74WSC2J9auDaWBlWVKOh6ktAOI+teKewvS2YdR4sZL4A2NF3b2XucN2US4JViYz
HHcQYpMQtUNJSSSyhbrU0Bb17jxABTs39wGrA9Acv21N1Aie7WqKfb5ghdq/Ig==
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-Tasty-Imminent: 34aa63c77a99e1c2_1675188942986_143946065
X-MC-Loop-Signature: 1675188942986:1515220734
X-MC-Ingress-Time: 1675188942985
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1675188942;
bh=1PAvhBDBXp0ybd4KD83j+qeSsTOJgNy9M9FDemDazzQ=;
h=Date:From:Subject:To:Content-Type:Content-Transfer-Encoding;
b=ajjHDecMSaGQagUMUJBsbxGOOGB/5Xq7Y8A7AgK8Ff+knXlw53JbJcxh1RyMDGtdB
GpHaM+49Sm7KFKa31k4431GFdAwr6DUc1tyf5SxiqoibacBasQeHoDuXAOeH8mFQka
BCD3yi5D2yk3nTvDP/6hV45flNymJkVPwHKIWBo4nCF0A/G3zjdHH5GIsgi9Fw/7Wm
ZmjZ+Ex1Zs1b0+Y2CAmzAa9BZRe/Hxw8ibkHiNa5Exa5+bgHif4R96ArqmVouWVDDG
m7D0kq6rwIJ0+TTYH14ACWCc2liq+OvXGtyqHwQuPPXv6P+1PnTfg9h6ir6FVoZ24v
rSKFg+U44qqkg==
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: <tramnp$3ohlk$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: <674a1779-ea08-ef69-2a2d-b8f2dd924d07@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>
<bd4ffe68-8c09-b716-9f74-aa2d6abf1705@tompassin.net>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
 by: Thomas Passin - Tue, 31 Jan 2023 18:15 UTC

On 1/31/2023 4:24 AM, Muttley@dastardlyhq.com wrote:
> On Tue, 31 Jan 2023 12:57:33 +1300
> Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
>> On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
>>> 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?
>>
>> It was made a function because there's no good reason for it
>> to have special syntax in the language.
>
> All languages have their ugly corners due to initial design mistakes and/or
> constraints. Eg: java with the special behaviour of its string class, C++
> with "=0" pure virtual declaration. But they don't dump them and make all old
> code suddenly cease to execute.
>
> Pragmatism should always come before language purity.
>

It was more fundamental than that, and not mainly about print():

https://snarky.ca/why-python-3-exists/

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!news.mind.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b....@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Usenet vs. Mailing-list (was: evaluation question)
Date: Tue, 31 Jan 2023 10:24:11 -0800 (PST)
Lines: 18
Message-ID: <mailman.1726.1675189454.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>
<255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>
<a9d4b693-f1fe-b3ac-2122-c23ebf98ea2c@yahoo.co.uk>
<63d95ccb.050a0220.f6a8b.4dd0@mx.google.com>
X-Trace: news.uni-berlin.de sp8nIdUmzM69ZiUe9bZL+A3k5Nz/OHjhMoZkZneO5qjw==
Return-Path: <grant.b.edwards@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=jgX3NY78;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.034
X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'url-ip:140.82/16': 0.03;
'subject:list': 0.11; 'url:github': 0.14; 'url-ip:140/8': 0.15;
'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards':
0.16; 'gauld': 0.16; 'subject:Mailing': 0.16; 'wrote:': 0.16;
'python': 0.16; 'says': 0.17; 'subject:question': 0.17; 'instead':
0.17; 'to:addr:python-list': 0.20; 'header:User-Agent:1': 0.30;
'before.': 0.31; 'specified': 0.32; 'but': 0.32; 'mailing': 0.33;
'server': 0.33; 'received:google.com': 0.34;
'received:209.85.166': 0.35; 'from:addr:gmail.com': 0.35;
'received:209.85': 0.37; 'received:209': 0.39; 'list': 0.39;
'use': 0.39; 'still': 0.40; 'alan': 0.40; 'e-mail': 0.61; 'your':
0.64; 'responding': 0.69; 'subject:. ': 0.73; 'highly': 0.78;
'motivated': 0.84; 'pain': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=7XNjEEBATPfwAkqjuQ5FKuekZ2iR/Oedn91Wid+b+hs=;
b=jgX3NY78j0d5EQNd0FmzlMdjOW+YSxbqg85N7WeWGiyKmlWyQxpQAIIQX6KhiB60jh
q0/oi8LUJ49Mb8fwQzjPi+ccQuQ1EwSuKuM2Zzko+AxR6byB8fajDOmFD7YA4TVkCnY8
+iaMo1je99z5AJVJys46+zSL/Ctcz9RbTbt/xG3BGbLuWcDrd4Nroqk3cZF6uXGRFPWq
BYDRRp/RyUn4yY/KdkiVo34atuMDo1KMbDUZlem0186fahYNL6Q4mJjM3lKGQAcN3MX2
cFoKKsh1MzMznN3O6wiQhuXdgwuGOabsMpcSGTwaR8m2HV+bJJhckPX7fmsOZTslVl6A
u50g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=7XNjEEBATPfwAkqjuQ5FKuekZ2iR/Oedn91Wid+b+hs=;
b=6B+zrlzdTZZcUGlw9jOmjAp0SVz+S1EPMvdOQiVYsCA3TW07nmmceg6Ym+YgzBQJby
akNfubYPnwGqyNqQi0SogxKT+SNoObagefddnuO/VVLVQGsTfH+Hx39t31dFZCKKrbZU
tmmerPPEd5Rii73JovLloQVXBm43zEWXiTdX8cENgq590KVpMHfM/d37MHXQMHJhFfPk
Z7o9va0qgQgv9DoJZVoMzUZAQ6ZJhyn9M0JTjXxhwtHOn2fqnxzY6lapXnZ+lWIy56tN
o5hfc+0fMqetsx/8GnkqI41LjVK6Wko/p/WbleE/SWFvF4nxku4aw/+BCgKZAdjTqCtc
A4qw==
X-Gm-Message-State: AO0yUKUcJBpkN3mPxzHByAfaEzTHM/UfzBh+TP+sHexJhmKk6um9nhj9
67wL6XYW7ShAA5xrTeBGq3leUGKAQeM=
X-Google-Smtp-Source: AK7set/r04gq1eitVyqPADCF+v2YutRQmtSiyzbG4NqfES+vcDBrs6naES8iWONgyAKdzC51A9AA6A==
X-Received: by 2002:a5d:8983:0:b0:718:9be9:e469 with SMTP id
m3-20020a5d8983000000b007189be9e469mr7137327iol.0.1675189452003;
Tue, 31 Jan 2023 10:24:12 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
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: <63d95ccb.050a0220.f6a8b.4dd0@mx.google.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>
<255bth98ettkgisai1fgb1lo47eeiqg4qt@4ax.com>
<a9d4b693-f1fe-b3ac-2122-c23ebf98ea2c@yahoo.co.uk>
 by: Grant Edwards - Tue, 31 Jan 2023 18:24 UTC

On 2023-01-31, Alan Gauld <learn2program@gmail.com> wrote:
> On 28/01/2023 21:36, Dennis Lee Bieber wrote:
>
>> 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
>
> I still use gmane but its no posting thing is a pain because responding
> (or posting new stuff) is a now more complicated than before. So
> I have to be very highly motivated to jump through the hoops.

If your newsreader can post via an external inews utility, you can use
this Python implementation of inews to post to specified groups via
e-mail instead of NNTP:

https://github.com/GrantEdwards/hybrid-inews

Re: evaluation question

<parentheses-20230131193242@ram.dialup.fu-berlin.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: 31 Jan 2023 18:33:09 GMT
Organization: Stefan Ram
Lines: 41
Expires: 1 Jan 2024 11:59:58 GMT
Message-ID: <parentheses-20230131193242@ram.dialup.fu-berlin.de>
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> <tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net> <tramnp$3ohlk$1@dont-email.me> <674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net> <mailman.1725.1675188953.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de ze9VXIKSKNq8TjO7d/V6EAyl+pjETLs4RFikrFRyPpOsjt
X-Copyright: (C) Copyright 2023 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 - Tue, 31 Jan 2023 18:33 UTC

Thomas Passin <list1@tompassin.net> writes:
>It was more fundamental than that, and not mainly about print():

That URI is only about the encoding of strings, which does not
help when people try to understand why the function "print" was
introduced.

Something about "print" that I have not yet read in this thread:
Some people say it is a function now so that you can redefine it.

It would still be possible to have a special syntax for the outermost
expression of an expression statement that would allow one to omit
the parentheses, as in VB and VBA.

This is an example written in VBA; user input is not indented or
indented by four spaces; system output is indented by one space.
Note the ultimate user input for a call without parentheses.

|
|Function F( x )
| Debug.Print( x )
| F = Len( x )
|End Function
| |Debug.Print( F( 123 )+ F( 456 ))
| 123
| 456
| 6
| |Debug.Print( F( 123 ))
| 123
| 3
| |Call F( 123 )
| 123
| |F 123
| 123
|

RE: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From:
Newsgroups: comp.lang.python
Subject: RE: evaluation question
Date: Tue, 31 Jan 2023 14:59:49 -0500
Lines: 88
Message-ID: <mailman.1727.1675195197.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<00a601d935ae$93e48930$bbad9b90$@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de ZS8d7s67joQBvsTmJECtVQKd1QvWhAv/V8/5xFgJOCTw==
Return-Path: <avi.e.gross@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=ff4wKAzZ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'argument':
0.04; '31,': 0.05; 'class,': 0.05; '2023': 0.07; 'string': 0.07;
'choice.': 0.09; 'converting': 0.09; 'fundamental': 0.09;
'general,': 0.09; 'language,': 0.09; 'prints': 0.09;
'received:108': 0.09; 'received:209.85.219': 0.09; 'something,':
0.09; 'url:mailman': 0.15; 'memory': 0.15; 'syntax': 0.15;
'afterwards.': 0.16; 'arguments': 0.16; 'behaviour': 0.16;
'bytes)': 0.16; 'c++': 0.16; 'cease': 0.16; 'constraints.': 0.16;
'customized': 0.16; 'declaration.': 0.16; 'declared': 0.16;
'default.': 0.16; 'displayed': 0.16; 'doable': 0.16; 'eg:': 0.16;
'explicit': 0.16; 'greg': 0.16; 'hints': 0.16; 'instead.': 0.16;
'nothing,': 0.16; 'nothing.': 0.16; 'right.': 0.16; 'side-effect':
0.16; 'sorted': 0.16; 'wrote:': 0.16; 'python': 0.16;
'subject:question': 0.17; 'instead': 0.17; 'message-
id:@gmail.com': 0.18; 'calls': 0.19; 'pm,': 0.19; 'tue,': 0.19;
'to:addr:python-list': 0.20; 'option': 0.20; 'language': 0.21;
'languages': 0.22; 'returns': 0.22; 'code': 0.23; 'command': 0.23;
'idea': 0.24; '(and': 0.25; 'anything': 0.25; 'skip:- 10': 0.25;
'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'url-ip:188.166/16': 0.25; 'object': 0.26;
'leave': 0.27; 'else': 0.27; 'local': 0.27; 'function': 0.27;
'old': 0.27; '>>>': 0.28; 'ideas': 0.28; 'printed': 0.28; 'am,':
0.31; 'modify': 0.31; 'url-ip:188/8': 0.31; 'think': 0.32;
"doesn't": 0.32; 'question': 0.32; 'do.': 0.32; 'fine.': 0.32;
'language.': 0.32; 'python-list': 0.32; 'returning': 0.32;
'specified': 0.32; 'but': 0.32; 'there': 0.33; 'someone': 0.34;
'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'handling': 0.35; 'item': 0.35; 'one.': 0.35;
'from:addr:gmail.com': 0.35; 'functions': 0.36; 'people': 0.36;
'change': 0.36; 'special': 0.37; 'really': 0.37;
'received:209.85': 0.37; 'though': 0.37; 'file': 0.38; 'way':
0.38; 'could': 0.38; 'read': 0.38; 'to:': 0.62; 'here': 0.62;
'come': 0.62; 'simply': 0.63; 'copy': 0.63; 'once': 0.63;
'mainly': 0.64; 're:': 0.64; 'thus': 0.64; 'your': 0.64; 'parts':
0.65; 'similar': 0.65; 'earlier': 0.67; 'worked': 0.67; 'back':
0.67; 'generally': 0.67; 'time,': 0.67; 'that,': 0.67; 'right':
0.68; 'items': 0.68; 'and,': 0.69; 'ability': 0.71; 'claim': 0.71;
'virtual': 0.71; 'january': 0.71; 'global': 0.73; 'easy': 0.74;
'choice': 0.76; 'documented': 0.76; 'url:ca': 0.76; 'sent:': 0.78;
'returned': 0.81; 'characters': 0.84; 'corners': 0.84; 'dozen':
0.84; 'elsewhere.': 0.84; 'itself.': 0.84; 'purity.': 0.84;
'want.': 0.84; 'weird': 0.84; 'deliberately': 0.91; 'mistakes':
0.91; 'particular,': 0.91; 'safely': 0.91; 'turned': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=thread-index:content-language:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=ZC9T5z3eNHfOacQXWwD782R4h6E491vb+6FFKgqoLa0=;
b=ff4wKAzZahFE/TjWDIOze3C4Qu5wYOsUDvDtljo1x8uBIsVN3mh+McH13rDKoh658x
vXcyEdp687+DuvzNmOC+dvwz5Zb0/6HnYEB1cCVq1PcQTCmkee0m282m86oZNkq2E4U9
DsV7UMcvNdFgo6dor98s3qmBHABDwKPlhWXe1a+in0ffUwpEkBvOgVnt4vNx4d2IQhMB
DGHJRx7BkRu5y7GRHSegOx4AQW0ByEdzM2pMhQrCegYOeAgzKHO25i/l5PywJnaz45Iy
+QhD4+doUgp1Wnu1BQNW88TKMttkKY5zf/Ni4wxm9eLS85HlNVntlH+9fPd4ju1Lvj3J
v+9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=thread-index:content-language:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=ZC9T5z3eNHfOacQXWwD782R4h6E491vb+6FFKgqoLa0=;
b=2p79pJJg28rWa6z7Z01O9pdIi2a4l4ngYgJj9mgI+5HDlVYWWtdnY6ZvCoFM0oYbc/
5+by7qyMt48Pwd3outqMTvVkgcgk0z4U4dsDAbYaUiYxe+zpmfQvoTrhkmbVuMcOXTgH
FYfEEAJ18wv3tXVODBjOmUwwvngYddHRqj5j19TPQNwciwlOhLKH06jlU88OBy6voMzw
cyFLjeHdA8q51HdGZh99A38r6P+SvWQmXJobE5pBVp4lzeK7MBRy6/V5IccxwWI8x+Ji
+Tegh/uHuV9zFgL7RsMcH/FXw0+zQa77qRSkBsj3U42stAf5wRUTcTDOpDZrAZrMuiYM
n1Pw==
X-Gm-Message-State: AO0yUKUqV4yO8ewpsWp7vBwta2QbMkgK91LIrH+I64OVdsyjCs4sQyAo
4jctzpeAQRQJ7dHmB543b60vBRGbCrE=
X-Google-Smtp-Source: AK7set9qXihuv4YN8Zk/0jvAgzxB21bfKjWBcQ3wtTKqDnq+j+NQ46DrX0HpHftqYqL52q+8UuAYYQ==
X-Received: by 2002:a0c:80a4:0:b0:537:695f:252f with SMTP id
33-20020a0c80a4000000b00537695f252fmr15950144qvb.35.1675195193191;
Tue, 31 Jan 2023 11:59:53 -0800 (PST)
In-Reply-To: <674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AQJBjeeZndWAK5y41s73pA9LvyXagQEV1S1DAqSKeDACXv8iAAJcdE9hAqvJZV8BmstgJgHduL74AapwS3ytZhat4A==
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: <00a601d935ae$93e48930$bbad9b90$@gmail.com>
X-Mailman-Original-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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
 by: - Tue, 31 Jan 2023 19:59 UTC

I think its has been discussed here that many functions are DELIBERATELY
designed to return without returning anything. Earlier languages like Pascal
had explicit ideas that a function that did not return a value was declared
as a "procedure" but many other languages like python make no real
differentiation.

Some functions are designed for a sort of side-effect and often there is
nothing much that needs to be returned or even can be. If a function prints
a dozen items one at a time, should it return nothing, or a copy of the last
item or somehow of all items? Generally nothing looks right. If you want to
return something, fine. Do it explicitly.

Similar arguments have been made about methods that do things like sort the
contents of an object internally and then return nothing. Some would like
the return to be the (now altered) object itself. You can emulate that by
not sorting internally but instead sorted(object) returns a new object that
has been sorted from the old one.

So should or could print return anything? Other languages exist, like R,
that do return (and often ignore) whatever print displayed elsewhere. This
can be of use in many ways such as making it easier to print or store
additional copies without recalculating.

My preference might be to simply allow a local option at the end of a print
statement such as print(..., return=True) or even a way to set a global
option so all print statements can be turned on when you want. But is this
pythonic? In particular, people who want to give type hints now can safely
claim it returns None and would have to modify that so it can optionally
return something like str or None. And, of course, once you change print()
this way, someone else will want the number of characters (or perhaps bytes)
returned instead.

Much of this can be worked around by simply making your own customized print
function which evaluates the arguments to make a string and then calls
print, perhaps with the results pre-calculated, and returns what you wanted.
That is not as easy as it sounds, though as print supports various
arguments like sep= and end= and file= and flush= so a weird but doable idea
is simply to substitute a temporary file for any file= argument and write
the results to a temporary file or something in memory that emulates a file.
You can then read that back in and return what you want after handling the
original print statement with the original arguments, or perhaps just use
your result to any actually specified file or the default.

You can thus create something like what you want and leave the original
print() command alone to do what it was designed to do.

And, in general, people who want a copy of what they print, often use other
python functionality to craft some or all parts of the text they want
printed and only then call print() and thus already may have the ability to
use the text afterwards.

For many purposes, including efficiency, returning nothing makes good sense.
But it is not really the only choice or the right choice and yet, if you
want to use THIS language, it has to be accepted as the documented choice.

-----Original Message-----
From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On
Behalf Of Thomas Passin
Sent: Tuesday, January 31, 2023 1:16 PM
To: python-list@python.org
Subject: Re: evaluation question

On 1/31/2023 4:24 AM, Muttley@dastardlyhq.com wrote:
> On Tue, 31 Jan 2023 12:57:33 +1300
> Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
>> On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
>>> 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?
>>
>> It was made a function because there's no good reason for it to have
>> special syntax in the language.
>
> All languages have their ugly corners due to initial design mistakes
> and/or constraints. Eg: java with the special behaviour of its string
> class, C++ with "=0" pure virtual declaration. But they don't dump
> them and make all old code suddenly cease to execute.
>
> Pragmatism should always come before language purity.
>

It was more fundamental than that, and not mainly about print():

https://snarky.ca/why-python-3-exists/
--
https://mail.python.org/mailman/listinfo/python-list

Re: evaluation question

<trbvi6$3vgh9$1@dont-email.me>

  copy mid

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

  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: Tue, 31 Jan 2023 21:00:53 +0000
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <trbvi6$3vgh9$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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 Jan 2023 21:00:54 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="21b65164ebe60a00181ecdeb843eb2b9";
logging-data="4178473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182QPF4Zx0W44QeDyYqgWKG"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
SeaMonkey/2.53.15
Cancel-Lock: sha1:RbZCuVCAe5M1RVEu0de7AdTz50U=
In-Reply-To: <k3r3rgF5l1hU1@mid.individual.net>
 by: Mark Bourne - Tue, 31 Jan 2023 21:00 UTC

Greg Ewing wrote:
> On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
>> 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?
>
> It was made a function because there's no good reason for it
> to have special syntax in the language.

I think I saw somewhere that making print a function also had something
to do with being able to add extra keyword arguments like sep and end.
The syntax for printing to a specific file already seemed a bit odd with
the print statement, and adding extra arguments would have made it even
more clunky (yeah, I know ">>" is similar to C++ streams, but it looks
out of place in Python).

They couldn't fully make the change from print statement to print
function without breaking backward compatibility for existing code. But
there were other breaking changes being made in Python 3 anyway, so may
as well sort print out while at it and have all the breaking changes at
once.

> Functions don't need to return things to justify their existence,
> and in fact the usual convention is that functions whose purpose
> is to have an effect just return None.

--
Mark.

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: gweathe...@uchc.edu (Weatherby,Gerard)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Tue, 31 Jan 2023 21:16:50 +0000
Lines: 140
Message-ID: <mailman.1728.1675199823.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<00a601d935ae$93e48930$bbad9b90$@gmail.com>
<PH7PR14MB5845BF00A8B67AE22391C91FB9D09@PH7PR14MB5845.namprd14.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de e06W4pWwVXcawCz06eBODAqsLZrztL9ZU8gmtXhBUYqA==
Return-Path: <prvs=03951bcfe0=gweatherby@uchc.edu>
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=uchc.edu header.i=@uchc.edu header.b=dutrfRQU;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'argument':
0.04; 'def': 0.04; '31,': 0.05; 'class,': 0.05; '&gt;&gt;&gt;':
0.07; '2023': 0.07; 'string': 0.07; 'choice.': 0.09; 'converting':
0.09; 'fundamental': 0.09; 'general,': 0.09; 'language,': 0.09;
'prints': 0.09; 'received:namprd14.prod.outlook.com': 0.09;
'something,': 0.09; '&gt;': 0.14; 'import': 0.15; 'url:mailman':
0.15; 'memory': 0.15; 'syntax': 0.15; '***': 0.16; 'afterwards.':
0.16; 'arguments': 0.16; 'behaviour': 0.16; 'bytes)': 0.16; 'c++':
0.16; 'cease': 0.16; 'constraints.': 0.16; 'customized': 0.16;
'declaration.': 0.16; 'declared': 0.16; 'default.': 0.16;
'displayed': 0.16; 'doable': 0.16; 'eg:': 0.16; 'explicit': 0.16;
'greg': 0.16; 'hints': 0.16; 'instead.': 0.16; 'nothing,': 0.16;
'nothing.': 0.16; 'right.': 0.16; 'side-effect': 0.16; 'sorted':
0.16; 'url:urldefense': 0.16; 'url:v3': 0.16; 'wrote:': 0.16;
'python': 0.16; 'subject:question': 0.17; 'instead': 0.17;
'calls': 0.19; 'pm,': 0.19; 'tue,': 0.19; 'to:addr:python-list':
0.20; 'option': 0.20; 'language': 0.21; 'languages': 0.22;
'returns': 0.22; 'code': 0.23; 'command': 0.23; 'idea': 0.24;
'to:name:python-list@python.org': 0.24; '(and': 0.25; 'anything':
0.25; 'skip:- 10': 0.25; 'url:listinfo': 0.25;
'header:Received:9': 0.26; 'object': 0.26; 'opening': 0.26;
'received:edu': 0.26; 'leave': 0.27; 'else': 0.27; 'local': 0.27;
'function': 0.27; 'old': 0.27; '>>>': 0.28; 'email
addr:python.org&gt;': 0.28; 'ideas': 0.28; 'printed': 0.28; 'am,':
0.31; 'modify': 0.31; 'think': 0.32; "doesn't": 0.32; 'question':
0.32; 'do.': 0.32; 'fine.': 0.32; 'language.': 0.32; 'python-
list': 0.32; 'returning': 0.32; 'specified': 0.32; 'but': 0.32;
'there': 0.33; 'someone': 0.34; 'header:In-Reply-To:1': 0.34;
'handling': 0.35; 'item': 0.35; 'one.': 0.35; 'functions': 0.36;
'people': 0.36; 'change': 0.36; 'received:pps.filterd': 0.37;
'special': 0.37; 'skip:k 10': 0.64; 'mainly': 0.64; 're:': 0.64;
'thus': 0.64; 'your': 0.64; 'parts': 0.65; 'similar': 0.65;
'earlier': 0.67; 'worked': 0.67; 'back': 0.67; 'generally': 0.67;
'url-ip:104.18/16': 0.67; 'time,': 0.67; 'that,': 0.67; 'right':
0.68; 'items': 0.68; 'and,': 0.69; 'url-ip:52.6/16': 0.69;
'ability': 0.71; 'claim': 0.71; 'virtual': 0.71; 'january': 0.71;
'global': 0.73; 'easy': 0.74; 'choice': 0.76; 'clicking': 0.76;
'documented': 0.76; 'url:ca': 0.76; 'sent:': 0.78; 'links.': 0.81;
'returned': 0.81; 'attention:': 0.84; 'characters': 0.84;
'corners': 0.84; 'dozen': 0.84; 'elsewhere.': 0.84; 'email
name:&lt;python-list': 0.84; 'itself.': 0.84; 'purity.': 0.84;
'skip:& 50': 0.84; 'want.': 0.84; 'weird': 0.84; 'deliberately':
0.91; 'mistakes': 0.91; 'particular,': 0.91; 'safely': 0.91;
'turned': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uchc.edu;
h=from : to : subject :
date : message-id : references : in-reply-to : content-type :
mime-version; s=UCHC03162020;
bh=pP5wCNOppSTNmdRJoRRdmZuHQk3ZSAcyy+COLCcyX+k=;
b=dutrfRQU2ZJD35CRWmy7wtavJopuWdo6f30EAUMKlPFbLMvVFx1ZgecjQbmUigz0W5xR
6QjnTxv7r7AwozpYi6Krjc1FAnCsUL+wBr1B2WX8n4AMtOQpeiDM1ocRxf9arYtV2GCo
4lhjG7Gwi/Cth3qIK9YOokSndgXxnJ/2wZjWgWHu8f9G44MlehZEuxF3LTN3/Asfqq0u
89wxOtdyqoC8OjCgOOfoRcwp0oxRORKxaBXxCct6W4BbQrWkW5iCARcE6MPZzVGbYRvY
r9HRcwM/VGgqIF6lD8vo7+OF1iZgBSd7tg+CmBs8RytYCCkEGzShPsrqoVcYZX+jsjm0 eA==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=RRm4Fk2SbsNZIOL0Hl1np7Ou9ERjbbEZ4s4Me52TY8j/x/V3OthkANya1eXjAMUqUwv56+beEGioyuk5ZL3NIJdUi9vwrTjHKC5ONCYREjfXwfY6cex+LySii5ll5uevwzzvHXNNCbYxv45skiSQ9OfjRSL7a5r8aa/Bv7XNnxSbtgDhObxeyVHV7ttvUenrXCiB9XPfFUM3cp6Kh5WaixwYTUoMp43kZX+DHQK+leFC9UG00P+nABkCZksMsH4412hffEMFP50gJ6bnuW5IvJO48bHh4/PBe9YPOWP6CPZ8TJq7k7tg4D0N65xPw2IR/FwSHOO078vUddI6VXxOTg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=pP5wCNOppSTNmdRJoRRdmZuHQk3ZSAcyy+COLCcyX+k=;
b=DGjWOxISh4q3aCLxMHIoyfpvQFwhw4CHANOtNyaXd8+PsN0XiEEzpLcv0AOQq81Q0tGZZY94oET9WBy9pVPbUUOWc7+3XX3C+dEwnC0D9pvyvuY/ZVNwffKnvIVl8rJQjl8nFnYJOYOPU+9WDbL0CJeIAUiypaFLdnJ+c4D9UrsKOs+0UHVnSGx3wfd6fGJjopIIWcwmcXyCB/2HtmmwOtL1HvFnN3bdAddl9knJWIiH23BC5/iopajBLR2wMCa39P8i3oh44K3RWq8qjCEPdBpeRwGnGQaGYiZYPhnTUGJcB1dtkVRBa0ZKN06bMEZRFC/B0myLhdjn05/hfQeQ0A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=uchc.edu; dmarc=pass action=none header.from=uchc.edu;
dkim=pass header.d=uchc.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uchc.onmicrosoft.com;
s=selector2-uchc-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=pP5wCNOppSTNmdRJoRRdmZuHQk3ZSAcyy+COLCcyX+k=;
b=hZwID/OIGG0/6srjGbunDZVXPDiVOXLDX7VJyUI3T/uzdKC9Ga9bP3b4MHzcY3s42VJtha/HTRSvZ4vsxbhaEkXFUpmeWOC7AjDhoflmrLuOwo9MLzOQjf/SuMa8Zc2f2y5YJJgwtUo4W8Mb9mpqEKd25rYZcMacV9XMGvXXEa4=
Thread-Topic: evaluation question
Thread-Index: AQHZMrHiYnad1aDqLkyUEfoL146TH66zv/cAgAJboBmAAE3UgIAAwjHQgAB8PYCAAR/9JIAAEtIAgAAdGoCAABVqiA==
In-Reply-To: <00a601d935ae$93e48930$bbad9b90$@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH7PR14MB5845:EE_|BY5PR14MB3512:EE_
x-ms-office365-filtering-correlation-id: 14acad79-563f-4274-318b-08db03d0781e
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 2oLGBgui/34bbr96M25AxnrFiH7ww+jFr1c/XJV2e3X+D9JkfJj9T06b/xTuBbBQXvwOdYnrI5o5CQS+jWXLvW/62tJ7eMC7tbdKapLkpysPfiZoMP5yMkNiLA2iXNoRS0sB2hcPWkoKeLKErhwWPKAo5j/qc/mjUfdBxeGgv0/BJC30U3r3j1WB/WUznZ+35OXjrefMv7/LjKf3c2c0Zo3BTQfo5/Wt58zEWeAuDG6hIU/GPD0qD6AIBbJj13F+tcb3nGiKAU+VaWwYbnslPrNevZRjRvvpKz/uCoT6EkCrytVa03BfZKs1iFyfF7KJa++gGadg4RTaVolwzB6jkbjoHQDUSYD2EZfQGLNgLEPUSCZQvQJ8Haemi2pi9bNbhpcohgNIYZaUbu9OqWnDw7yj4yNOq6e6yjOWmdbOGZc2ukGgKK6Jy7+2zK62dq4MKpJpquvRjU1cKkS1Vc0qV9zgjvzbIO3x/BgJHqxmpAiDekdPeJt1wg0mz05HYmAPl3P4U5+tIQaSnC7VSGWjX0URmsDfgwNtJ53+GUi2cuwqTFZJyOn9wdn8mH1HyiQX5qZnYpipMYBPXEY4UpJc/+dqtd3DhGhzAChwYqtkniPad9rV7BZbcNVHuCYeK/knuShk++tpwgk2Ib4h0eU3enkPw5vLI6NoTiFbHWRkS2n4mFH+MVLcQv8aRsjEd/PKGv8iHtOQQ8FWmA/zLplIcvBBLEPFDtc4WH6zMokdzAE=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:PH7PR14MB5845.namprd14.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230025)(4636009)(366004)(396003)(346002)(39850400004)(136003)(376002)(451199018)(41320700001)(86362001)(76116006)(7116003)(91956017)(83380400001)(41300700001)(786003)(52536014)(8936002)(6506007)(6916009)(8676002)(66946007)(64756008)(66476007)(66446008)(3480700007)(316002)(66556008)(26005)(478600001)(53546011)(186003)(7696005)(71200400001)(9686003)(966005)(75432002)(166002)(33656002)(55016003)(5660300002)(122000001)(38100700002)(2906002)(38070700005);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: KwAdomYw7wgfeRWOKDTK93vfzbaL1T46FkCrnzYoOV3bAOIKxi+XnmL3yMD4
2rs4q5IRetIobFgSERdxl+UW2uKk/eFU0Jek9C6AN/sfJN76d2ycmZ6IPhye
z73aTmo28MyY9ZeZ0RfhG9EfFNwn4Qrt9rrX9hE7N7PzUjhFzJzvo7boJ0Uy
cggMj0UYT+hB1vAq5ucymFVXbTEsuj8VI9xDQ/s+fZfIpcPKowZTBcfxPYbV
leaYxvF3B7hg86u/fNQdT6gfci6rUu0pjMSEdN9Ebnzg/S9llA8yLHuWNFr8
Jm9wCObDCCco+aUH0utxxoaoJai3Bry+5QLG5NKlY3HIiWTtw3cFk5KFSiS8
HSaKO6KadXLqn8dTsn5SiYnCLY1XCnH1Tl9IDc/xvz1V3fHXeL/CL3qVpH80
y3ZSrsIdn0DH+Bz76d24AeZ0ga9iAntmwadK74Cow3AAzp2s09RkOEOMBNur
C/UWsJyO6E9eErzgsfxnmssVPd8m7i/GFshhLR7FlcYEZc1k38+F+pETj+SD
ty99IzPt9fKOnYQM0UDyRpIdqR92wSIljhF/EZd8ndMxV1yv4Iml9trxa9S6
UF4jx5OmFOtSdGhOIWpMMplL6tCSiM/4IyRvsD5i4Ioh3q1N2fGDcnjShEnl
0wIEimA7taXAWkD76zDoztd3q/JxTcmqfQGFdnTYVL5/7Xf17UGb/F3i7vG4
lKpZ0n38JhEyDINpAIv3nEQ1OXc40W5EYPmoQoY1Btck+P0iYHv4VMxEcJXc
clFfH7UREgKjKlsvRKbyZxHZ3qE6sP2OVkb/cA8iqvQ+p7RbI0oaeK9gHL3L
bHh8KHw0Ev1GsCO64U0uchR1xGsXaEKY63p0JGnuud4oIlBpSRGNtpwcIaW2
kGlCZxPgQhqiHs+dFHbL6hIGQ8EGMrjp8esVgF1kE7wD+9410pAgSsaW/YOi
k2VO36YCAZiuJpT2jAAHA3X6GhZdssry9jd9Xby+tzuhnbTM1fAMxDGbiv8L
4iGrlhxuwP6IHRPojcQEHV8LjTXlIua6OXNN53q1jTHKezRkylOvh+Y5D5s5
6Dxr8lxpTDfgEu9oN2RF5hk2vO4jSUkb79HvqfUWheeBp2m+qcHpSdBRce7k
reF8Fqr8Sc4vtnAERbwJfN+tMZk+zBcwSJ5J5XJqpPe40n4HOpdjfB8sjCZe
xJKmIcbvDMPhEpmLfCzHScv8T/TCSCtCUE02oWSMbw5YjUagVRUMYuTmBEdN
d6TeDPBr9kErjb63QgFg/42+dmHoUGOr30QysigElAQKUTcHDn8rxnO3lcWC
nXA7yNQKd6YzQ42RlBWy4pQ9reNx5ctY8+MMof1xCejH8VYqREOxFzQawEPk
JJydPG16JfTYgZkejr79br8wjl4DGoO5qFvsUb5TuADoJjRZXcSs8XGzke8a
HhOyG4Y/Ad+F+2+9TpcwZZs9d3nvNJZqOFFpWgTB7RU9iXMNQiDt6LyrxhWa
cIHFFrptA9cxqEt69Or24b0vcGf4sKKhjhdUtfVZm/sAvBD6wOKfXNoYYLE4
ZCw7OoQJr/1AetijtWvLHcjZk/sAL4CKmXcEjt20If2oU/XvhIaxeI211RoW
tg==
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH7PR14MB5845.namprd14.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 14acad79-563f-4274-318b-08db03d0781e
X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2023 21:16:50.6070 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5c82d83a-818a-4c16-b540-ded2344a7ad3
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: eyyhXqU2kpabMlA2ZC4SeICPeZtnnFuUQBm9yJyaEAD5eMfQKDiVrdChagrwV2A5kW+zin9nq9qvrRlEh6u8mw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR14MB3512
X-Proofpoint-GUID: FvMvjFMakiYzgiQjE6hnQSgmYEsTafIy
X-Proofpoint-ORIG-GUID: FvMvjFMakiYzgiQjE6hnQSgmYEsTafIy
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1
definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
mlxscore=0 malwarescore=0
mlxlogscore=999 spamscore=0 bulkscore=0 priorityscore=1501 phishscore=0
adultscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0
suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1
engine=8.12.0-2212070000 definitions=main-2301310184
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: <PH7PR14MB5845BF00A8B67AE22391C91FB9D09@PH7PR14MB5845.namprd14.prod.outlook.com>
X-Mailman-Original-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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<00a601d935ae$93e48930$bbad9b90$@gmail.com>
 by: Weatherby,Gerard - Tue, 31 Jan 2023 21:16 UTC

import io

def countprint(*args, **kwargs):
capturekw = {k:v for k,v in kwargs.items() if k != 'file'}
buffer = io.StringIO()
capturekw['file'] = buffer
print(*args,**kwargs)
print(*args,**capturekw)
return len(buffer.getvalue())

def boolprint(*args,active:bool, **kwargs):
if active:
print(*args,**kwargs)

with open("text.txt",'w') as f:
y = countprint(1, 3, 3, sep=',', end='\n\n',file=f)
print(y)
boolprint(3,4,5,sep='/',active=True)
boolprint(7,11,active=False)

From: Python-list <python-list-bounces+gweatherby=uchc.edu@python.org> on behalf of avi.e.gross@gmail.com <avi.e.gross@gmail.com>
Date: Tuesday, January 31, 2023 at 3:01 PM
To: 'Thomas Passin' <list1@tompassin.net>, python-list@python.org <python-list@python.org>
Subject: RE: evaluation question
*** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. ***

I think its has been discussed here that many functions are DELIBERATELY
designed to return without returning anything. Earlier languages like Pascal
had explicit ideas that a function that did not return a value was declared
as a "procedure" but many other languages like python make no real
differentiation.

Some functions are designed for a sort of side-effect and often there is
nothing much that needs to be returned or even can be. If a function prints
a dozen items one at a time, should it return nothing, or a copy of the last
item or somehow of all items? Generally nothing looks right. If you want to
return something, fine. Do it explicitly.

Similar arguments have been made about methods that do things like sort the
contents of an object internally and then return nothing. Some would like
the return to be the (now altered) object itself. You can emulate that by
not sorting internally but instead sorted(object) returns a new object that
has been sorted from the old one.

So should or could print return anything? Other languages exist, like R,
that do return (and often ignore) whatever print displayed elsewhere. This
can be of use in many ways such as making it easier to print or store
additional copies without recalculating.

My preference might be to simply allow a local option at the end of a print
statement such as print(..., return=True) or even a way to set a global
option so all print statements can be turned on when you want. But is this
pythonic? In particular, people who want to give type hints now can safely
claim it returns None and would have to modify that so it can optionally
return something like str or None. And, of course, once you change print()
this way, someone else will want the number of characters (or perhaps bytes)
returned instead.

Much of this can be worked around by simply making your own customized print
function which evaluates the arguments to make a string and then calls
print, perhaps with the results pre-calculated, and returns what you wanted..
That is not as easy as it sounds, though as print supports various
arguments like sep= and end= and file= and flush= so a weird but doable idea
is simply to substitute a temporary file for any file= argument and write
the results to a temporary file or something in memory that emulates a file..
You can then read that back in and return what you want after handling the
original print statement with the original arguments, or perhaps just use
your result to any actually specified file or the default.

You can thus create something like what you want and leave the original
print() command alone to do what it was designed to do.

And, in general, people who want a copy of what they print, often use other
python functionality to craft some or all parts of the text they want
printed and only then call print() and thus already may have the ability to
use the text afterwards.

For many purposes, including efficiency, returning nothing makes good sense..
But it is not really the only choice or the right choice and yet, if you
want to use THIS language, it has to be accepted as the documented choice.

-----Original Message-----
From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On
Behalf Of Thomas Passin
Sent: Tuesday, January 31, 2023 1:16 PM
To: python-list@python.org
Subject: Re: evaluation question

On 1/31/2023 4:24 AM, Muttley@dastardlyhq.com wrote:
> On Tue, 31 Jan 2023 12:57:33 +1300
> Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
>> On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
>>> 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?
>>
>> It was made a function because there's no good reason for it to have
>> special syntax in the language.
>
> All languages have their ugly corners due to initial design mistakes
> and/or constraints. Eg: java with the special behaviour of its string
> class, C++ with "=0" pure virtual declaration. But they don't dump
> them and make all old code suddenly cease to execute.
>
> Pragmatism should always come before language purity.
>

It was more fundamental than that, and not mainly about print():

https://urldefense.com/v3/__https://snarky.ca/why-python-3-exists/__;!!Cn_UX_p3!ldtLZeCkbC0gawIJRrbrunA0AqA_btcJ9M1TOlajHrezsXh5AqpuLFCg1mITKq8qvR8f3u-d8K2WF9yGhlD2rfk$<https://urldefense.com/v3/__https:/snarky.ca/why-python-3-exists/__;!!Cn_UX_p3!ldtLZeCkbC0gawIJRrbrunA0AqA_btcJ9M1TOlajHrezsXh5AqpuLFCg1mITKq8qvR8f3u-d8K2WF9yGhlD2rfk$>
--
https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!ldtLZeCkbC0gawIJRrbrunA0AqA_btcJ9M1TOlajHrezsXh5AqpuLFCg1mITKq8qvR8f3u-d8K2WF9yG5f0h2No$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!ldtLZeCkbC0gawIJRrbrunA0AqA_btcJ9M1TOlajHrezsXh5AqpuLFCg1mITKq8qvR8f3u-d8K2WF9yG5f0h2No$>

--
https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!ldtLZeCkbC0gawIJRrbrunA0AqA_btcJ9M1TOlajHrezsXh5AqpuLFCg1mITKq8qvR8f3u-d8K2WF9yG5f0h2No$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!ldtLZeCkbC0gawIJRrbrunA0AqA_btcJ9M1TOlajHrezsXh5AqpuLFCg1mITKq8qvR8f3u-d8K2WF9yG5f0h2No$>

Re: evaluation question

<k3tkqhFhgf7U1@mid.individual.net>

  copy mid

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

  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!individual.net!not-for-mail
From: greg.ew...@canterbury.ac.nz (Greg Ewing)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Wed, 1 Feb 2023 11:59:25 +1300
Lines: 12
Message-ID: <k3tkqhFhgf7U1@mid.individual.net>
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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 29ceDbB7lTssQuyYM+aSAAivns05iO5AYy6N9coUlOwksiolOg
Cancel-Lock: sha1:8vkYpUXuSwQ10dpw4UIyBjkifZ4=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0)
Gecko/20100101 Thunderbird/91.3.2
Content-Language: en-US
In-Reply-To: <tramnp$3ohlk$1@dont-email.me>
 by: Greg Ewing - Tue, 31 Jan 2023 22:59 UTC

On 31/01/23 10:24 pm, Muttley@dastardlyhq.com wrote:
> All languages have their ugly corners due to initial design mistakes and/or
> constraints. Eg: java with the special behaviour of its string class, C++
> with "=0" pure virtual declaration. But they don't dump them and make all old
> code suddenly cease to execute.

No, but it was decided that Python 3 would have to be backwards
incompatible, mainly to sort out the Unicode mess. Given that,
the opportunity was taken to clean up some other mistakes as well.

--
Greg

Re: evaluation question

<k3tlv6FhlorU1@mid.individual.net>

  copy mid

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

  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: greg.ew...@canterbury.ac.nz (Greg Ewing)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Wed, 1 Feb 2023 12:18:58 +1300
Lines: 26
Message-ID: <k3tlv6FhlorU1@mid.individual.net>
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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net yo8Exuygu7LsYnQFvqDZzQXXomTwxyDunqcjBOPMPGaxeSdGWJ
Cancel-Lock: sha1:aTlJiZ/KHBZaruuHhGIyRN6CnBw=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0)
Gecko/20100101 Thunderbird/91.3.2
Content-Language: en-US
In-Reply-To: <parentheses-20230131193242@ram.dialup.fu-berlin.de>
 by: Greg Ewing - Tue, 31 Jan 2023 23:18 UTC

On 1/02/23 7:33 am, Stefan Ram wrote:
> Thomas Passin <list1@tompassin.net> writes:

> Some people say it is a function now so that you can redefine it.

Well, that's one benefit, but I wouldn't say it's the main one.

The point is really that you can do *anything* with it now that
you can do with a regular function -- pass it as an argument,
wrap it with another function, define your own function with a
similar signature for duck-typing purposes, etc.

> It would still be possible to have a special syntax for the outermost
> expression of an expression statement that would allow one to omit
> the parentheses,

That's only one of the syntactic oddities of the old print
statement, thogh. There was also the >> thing, special treatment
of trailing commas, etc.

Also, introducing a paren-less call syntax would be a very big
and controversial change that would be way out of proportion to
the problem.

--
Greg

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!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: evaluation question
Date: Wed, 1 Feb 2023 11:06:07 +1100
Lines: 37
Message-ID: <mailman.1731.1675209980.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me>
<k3r3rgF5l1hU1@mid.individual.net> <tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
<k3tlv6FhlorU1@mid.individual.net>
<CAPTjJmqk0sNWNG7+TfUNQ08NBVQ54tBG4WiLFKHwm_rKtG-Ohg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de TrVsjwtNzI09CZgQekzNGQ/T05Dm9k29ECH16AihQ5lA==
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=WIWoqU44;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2023': 0.07; 'guido':
0.07; 'enough.': 0.09; 'language,': 0.09; 'nasty': 0.09;
'problem.': 0.15; 'syntax': 0.15; 'cases,': 0.16; 'chrisa': 0.16;
'consensus': 0.16; 'enough,': 0.16; 'expectation': 0.16; 'flag':
0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'greg': 0.16; 'intuitive': 0.16; 'proportion': 0.16;
'received:209.85.218': 0.16; 'syntactic': 0.16; 'wart': 0.16;
'wart.': 0.16; 'wrote:': 0.16; 'subject:question': 0.17; 'feb':
0.17; 'calls': 0.19; 'to:addr:python-list': 0.20; 'languages':
0.22; 'steven': 0.22; 'url-ip:188.166.95.178/32': 0.25; 'url-
ip:188.166.95/24': 0.25; 'python,': 0.25; 'examples': 0.25;
'programming': 0.25; 'url-ip:188.166/16': 0.25; 'bit': 0.27;
'function': 0.27; 'old': 0.27; 'thinking': 0.28; 'recently': 0.29;
'url-ip:188/8': 0.31; 'think': 0.32; 'message-id:@mail.gmail.com':
0.32; 'but': 0.32; 'mailing': 0.33; 'there': 0.33; 'particular':
0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'complex': 0.35; 'from:addr:gmail.com': 0.35; 'also,': 0.36;
'change': 0.36; 'special': 0.37; "it's": 0.37; 'received:209.85':
0.37; 'way': 0.38; 'means': 0.38; 'received:209': 0.39; 'list':
0.39; 'wed,': 0.39; '(see': 0.40; 'happen': 0.40; 'ever': 0.63;
'introducing': 0.64; 'shows': 0.67; 'generally': 0.67;
'url:archives': 0.69; 'easy': 0.74; 'features': 0.75;
'formatting': 0.76; 'himself': 0.76; 'extra': 0.84; 'decent':
0.84; 'handled': 0.84; 'weird': 0.84; 'glad': 0.86; 'flexible':
0.91
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=1LjTUkbi7xlcNDPqzPsJHb8rT5OMZoPLYnVaJ6GpxPc=;
b=WIWoqU44iE62A/3pXW+vYSxylHfS7qIkdqgkBDGYZ0U4/xLmwRpKTBAwJrYOuiwsl+
o/VnsDvYM3V4hZmXt1KpudJDKOS/EHXr3h2bKmzXFve1g0i+fVm2nV+NK1MjxKQ2Av6h
qGFv42LI2vjq86wAke7Wz5iGxeTHGGFrAgnViKOENewME1k759WR7590i9joQy6+A29t
SX/CUIbh4oNag35fECzYXY3L37T3AroFzMsV5cNqKiVlYUDQddChZ0BZaUS8kspW12Bp
nPA12Cc08qgqkrz6H9peBs46w6DMjTPFfFBtbQr1DoacdndGFWCcTTQtSEX7Lm/DnoLH
ciKw==
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=1LjTUkbi7xlcNDPqzPsJHb8rT5OMZoPLYnVaJ6GpxPc=;
b=lmv2FoguXep/AnLDM0VPYZV+7BndckeRryScgFMeQZAeY8JBJlDMsU9ve2nYpqRj1k
XlrSDrJ7KNmJFMCAdaYg3nyHxrJsACpNB5hSUpMjOmnrij4OoXmMx8x+5tHMYI3jDfEW
NMoIPtL7kkV1OadaLUiN0Zj04Jvm1zNHO0UgfVr6ujYDK3Eb+HqBFaBo9s7Po7RqBify
yrJs95hSAwP/vcZrWQUNSt8/7G0YIQ4rNfXdH2pnvGLQu12SG95YL/klfg3zrU2h/XTl
r5S1+pBoUCtPshCG3zS+84h4o52HoQ8s8wizzxyqUxBWlcw7mtZqdsmFkKuejfc/18Ob
xFQg==
X-Gm-Message-State: AO0yUKWkjMNlDppB70b9sKjQXMKC56kV8I9qpPq95FdmKVI9yw3zldMt
/jMsSZP+xWAlepqcdtXbR4QZvktoWw7uiKy4XOMfI0ekvoo=
X-Google-Smtp-Source: AK7set/0pTQPwhj8XDC9I949/w6x7BcJGeUGv4fzXMKyrYugsWpK1qE/I3UdkVhs3fmbbAFu8c0cZpjFdKJNzR7wKEs=
X-Received: by 2002:a17:906:80cd:b0:883:f4e0:5b86 with SMTP id
a13-20020a17090680cd00b00883f4e05b86mr60435ejx.272.1675209979044; Tue, 31 Jan
2023 16:06:19 -0800 (PST)
In-Reply-To: <k3tlv6FhlorU1@mid.individual.net>
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: <CAPTjJmqk0sNWNG7+TfUNQ08NBVQ54tBG4WiLFKHwm_rKtG-Ohg@mail.gmail.com>
X-Mailman-Original-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>
<tr83bf$381e1$1@dont-email.me>
<k3r3rgF5l1hU1@mid.individual.net> <tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
<k3tlv6FhlorU1@mid.individual.net>
 by: Chris Angelico - Wed, 1 Feb 2023 00:06 UTC

On Wed, 1 Feb 2023 at 10:47, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
> That's only one of the syntactic oddities of the old print
> statement, thogh. There was also the >> thing, special treatment
> of trailing commas, etc.

"Soft space" (the trailing comma behaviour) was an incredibly complex
wart. Glad it's gone.

> Also, introducing a paren-less call syntax would be a very big
> and controversial change that would be way out of proportion to
> the problem.

Oddly enough, that WAS actually proposed recently - by Guido himself -
as a demonstration of the power of the new PEG parser:

https://mail.python.org/archives/list/python-ideas@python.org/thread/NCQX6ZIBREUTLS52VVG3DSZ43OEXJFTT/

(The mailing list archive messes up formatting a bit with REPL
transcripts, thinking they're quoted text.)

The general consensus was "allowing function calls without parens
causes more issues than it solves", with plenty of examples from other
programming languages to prove this - Ruby, while generally a decent
language, shows a rather nasty wart with this particular feature (see
"Ruby allows parens-less function calls" from Steven D'Aprano in that
thread). I don't think it'll ever happen in Python, but it's nice to
know that the parser is flexible enough. It means that other weird
cases, where the intuitive expectation is different, can be better
handled (see eg "with (x as y, a as b):" syntax).

Having print as a function is WAY better than having it as a special
case with lots of warts. And it's so much easier to add extra features
to it; for instance, how would you add a "flush after printing" flag
to Py2's print statement? With a function, it's easy - just print(...,
flush=True).

ChrisA

Re: evaluation question

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

  copy mid

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

  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: Tue, 31 Jan 2023 19:11:55 -0500
Lines: 29
Message-ID: <mailman.1732.1675210326.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
<k3tlv6FhlorU1@mid.individual.net>
<6c261ff8-be2a-4c48-a514-bf36fd4ff6c9@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de NE+hfppQx7xJ1iuBBhgsMQludtR2q4T97pKhnb3n1W3w==
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=BKrFTWtF;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.008
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'ram': 0.07; 'expression':
0.09; 'writes:': 0.09; 'problem.': 0.15; 'syntax': 0.15;
'benefit,': 0.16; 'confused': 0.16; 'greg': 0.16; 'nested': 0.16;
'proportion': 0.16; 'quotes.': 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;
'syntactic': 0.16; 'thread.': 0.16; 'wrote:': 0.16;
'subject:question': 0.17; 'pm,': 0.19; 'to:addr:python-list':
0.20; 'maybe': 0.22; 'stefan': 0.26; 'function': 0.27; 'old':
0.27; 'header:User-Agent:1': 0.30; 'am,': 0.31; 'do.': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'replies': 0.32;
"wouldn't": 0.32; 'but': 0.32; 'there': 0.33; 'someone': 0.34;
"didn't": 0.34; 'header:In-Reply-To:1': 0.34; 'one.': 0.35;
'also,': 0.36; 'people': 0.36; 'change': 0.36; 'special': 0.37;
'main': 0.37; 'really': 0.37; "it's": 0.37; 'way': 0.38; 'enough':
0.39; 'still': 0.40; 'define': 0.40; 'pass': 0.64; 'introducing':
0.64; 'your': 0.64; 'similar': 0.65; 'header:Received:6': 0.67;
'received:64': 0.67; 'easy': 0.74; 'signature': 0.76; 'depth':
0.81
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1675210317; a=rsa-sha256;
cv=none;
b=tBwvA4oSP7QzRPdJt7pUg1Pf+nNQ+zz7T56kOXJqZ3Hq8WkVAwTU9Q27wsIadApWXfUrjw
u5h8H7mp034bbjz42fvY01z6GGjuugdLgEK3gKv1VAcXVo84AucXdqxK7NhNg0T+Vd5jFA
aMZpx18VDTNJ9dNi9RkSfqCRKZiQfcFgQF82MeFk49Eh6yzSEAUrU1MoWK7D+gWMamgYrH
Azv4iqXFmWlYsr2ZYJHm1XsqoYK+3qDsYUzaTqL4c4F5V1lzB2mzs0eoecIrEMuIveet8O
azCIU5cqEQT8wWHlUMNKyutHg3ZhB7ETGgcy/ZuNyy2YhtaI/diodKN0Z8HNvQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1675210317;
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=nPPcTU/EejaQgHpwCv/lkAIxycr4CkSnY4t11uzBqmY=;
b=H8UkHTz4yiMOJ0kOCa/v6w2X3LQScKUYMzWYMIioKNsfjnjxcZ07tKaMGz7Y8VL+7mINs+
Rd6tv+nySQGeJngIwOUc2nQqHm6urfLJSDCUEcjoB9CnNC/7mhFI5LKhX/6HjDdrIcyiGA
KrF6JRdLXL35DWUn89mN3YIzH43EqvFzEenaI16gnztDV29nUvt2RhdfniDkWbTKBvpoL/
5GbZj96qRwAMJZfDJENVVOAAkp1l7LLah0fHe4H/tiNF+c3Amgvwv/N/Wf54irUH6mCYep
ELxN1wwuTmWyjliy510/sylUHGrZAdIb5qIUEVlAfZKJhIqlp8woBvFbG09CrQ==
ARC-Authentication-Results: i=1; rspamd-5fb8f68d88-5rz2h;
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-Hook-Attack: 4241be5b7c734042_1675210317310_779272157
X-MC-Loop-Signature: 1675210317310:2201154506
X-MC-Ingress-Time: 1675210317310
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1675210316;
bh=nPPcTU/EejaQgHpwCv/lkAIxycr4CkSnY4t11uzBqmY=;
h=Date:From:Subject:To:Content-Type:Content-Transfer-Encoding;
b=BKrFTWtFtqnUpy1c2EtK0SUzUirhTOgT1XwQQoHfkDg8DNzAmvgtBNyKXdu3oDxHF
4ccI5mACJwRAv/IGBSdQ7JfJ2owKV8i5H5pPfIRhn6uK9zXiR7y8fjIGLaXEyLsbrt
ErOGSjCQlxAJEo0Q5Tg4DYoYRFSXfv1EW1ovjkpnu0NBEAeaehaNstHIuVJSds6uq8
6l1bGKKFrtx4romhqf96OFj+c219oG5Ppg2OzQfQBkDUWegpxe+NUQz0mwb9l8TCs6
sMLTW67uszuNxsRkllIRyXvS1NFUmwGzYWNw94HS+9xiSSu0aQh31DfwcWtxmBsBBQ
r3QJNua+xh8eg==
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: <k3tlv6FhlorU1@mid.individual.net>
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: <6c261ff8-be2a-4c48-a514-bf36fd4ff6c9@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>
<bd4ffe68-8c09-b716-9f74-aa2d6abf1705@tompassin.net>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
<k3tlv6FhlorU1@mid.individual.net>
 by: Thomas Passin - Wed, 1 Feb 2023 00:11 UTC

On 1/31/2023 6:18 PM, Greg Ewing wrote:
> On 1/02/23 7:33 am, Stefan Ram wrote:
>> Thomas Passin <list1@tompassin.net> writes:
>
>>    Some people say it is a function now so that you can redefine it.

Hmm, I didn't write these quotes. Maybe someone got confused by the
depth of the nested replies in this thread. Easy enough to do.

> Well, that's one benefit, but I wouldn't say it's the main one.
>
> The point is really that you can do *anything* with it now that
> you can do with a regular function -- pass it as an argument,
> wrap it with another function, define your own function with a
> similar signature for duck-typing purposes, etc.
>
>>    It would still be possible to have a special syntax for the outermost
>>    expression of an expression statement that would allow one to omit
>>    the parentheses,
>
> That's only one of the syntactic oddities of the old print
> statement, thogh. There was also the >> thing, special treatment
> of trailing commas, etc.
>
> Also, introducing a paren-less call syntax would be a very big
> and controversial change that would be way out of proportion to
> the problem.
>

Re: evaluation question

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonL...@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Wed, 1 Feb 2023 13:17:33 +1300
Organization: DWM
Lines: 32
Message-ID: <mailman.1733.1675210672.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me> <k3tkqhFhgf7U1@mid.individual.net>
<062f691c-d4b7-09f9-c949-a14ef18119f7@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 lsX8/OV8K8BxXoqxVlybow0XGM2SzCooEnIZ7f7gejvw==
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=dPLmB91R; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(which': 0.04; 'class,':
0.05; 'string': 0.07; '=dn': 0.09;
'from:addr:danceswithmice.info': 0.09; 'from:addr:pythonlist':
0.09; 'received:192.168.1.64': 0.09; 'behaviour': 0.16; 'c++':
0.16; 'cease': 0.16; 'constant': 0.16; 'constraints.': 0.16;
'cope': 0.16; 'dated': 0.16; 'declaration.': 0.16; 'eg:': 0.16;
'greg': 0.16; 'message-id:@DancesWithMice.info': 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; 'unicode': 0.16; 'wrote:': 0.16;
'python': 0.16; 'subject:question': 0.17; 'pm,': 0.19; 'to:addr
:python-list': 0.20; 'language': 0.21; 'languages': 0.22; 'code':
0.23; "i'd": 0.24; 'old': 0.27; 'header:User-Agent:1': 0.30;
'community': 0.31; 'header:Organization:1': 0.31;
'received:192.168.1': 0.32; 'but': 0.32; 'header:In-Reply-To:1':
0.34; 'developed': 0.35; 'special': 0.37; 'received:192.168':
0.37; 'though': 0.37; 'quite': 0.39; 'learn': 0.40; 'initial':
0.61; 'mainly': 0.64; 'received:51': 0.64; 'opportunity': 0.66;
'day': 0.66; 'decided': 0.67; 'that,': 0.67; 'virtual': 0.71;
'business': 0.77; 'backwards': 0.84; 'corners': 0.84;
'proposition': 0.84; 'realise': 0.84; "world'": 0.84; 'us,': 0.89;
'mistakes': 0.91
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 5A9165396
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1675210663;
bh=IUxXqFnQh/pAxjpDAB8wEEDRn65fdopdg2wJt/Sy8vA=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=dPLmB91RxLPmSE/tSqnWQ6IkcESdjN5Ofz3z2Pt6+Jf5/Tv/Qv/n6m2UC3Xydg2V4
M+4ID7Uh+KVV4SX4bm+QwhKwyOyMKoXH9Lv/Ep0tBzpZo4ZMS/69LxWTvoLff7My1s
01JEjHb/LGUHIG/c0m8Gb1Izs8b4N7V7B1AmSDRs7oKld+qzoC/nPLELZdTC29HZgp
HDavm1KatXcV+I1zuOQVLVIiMi6ghFGfGMd0VOzVsMHb4EpacCIEReJ0iopDxumOc8
nWj7nBJQuLj7UMmPn64wfLmhhsZFYs2mBS4Ouu0wZVfHQVIzI4bIkwGPGG7J1cf74/
ey2d/sZGxJfQA==
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: <k3tkqhFhgf7U1@mid.individual.net>
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: <062f691c-d4b7-09f9-c949-a14ef18119f7@DancesWithMice.info>
X-Mailman-Original-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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me> <k3tkqhFhgf7U1@mid.individual.net>
 by: dn - Wed, 1 Feb 2023 00:17 UTC

On 01/02/2023 11.59, Greg Ewing wrote:
> On 31/01/23 10:24 pm, Muttley@dastardlyhq.com wrote:
>> All languages have their ugly corners due to initial design mistakes
>> and/or
>> constraints. Eg: java with the special behaviour of its string class, C++
>> with "=0" pure virtual declaration. But they don't dump them and make
>> all old
>> code suddenly cease to execute.
>
> No, but it was decided that Python 3 would have to be backwards
> incompatible, mainly to sort out the Unicode mess. Given that,
> the opportunity was taken to clean up some other mistakes as well.

+1
and the move to Unicode has opened-up the Python community beyond the
US, to embrace 'the world' - a proposition (still) not well-recognised
by (only) English-speakers/writers/readers.

Even though the proposition has a troll-bait smell to it:-

1 nothing "ceased to execute" and Python 2 was maintained and developed
for quite some time and in-parallel to many Python 3 releases.

2 the only constant in this business is 'change'. I'd rather cope with
an evolution in this language (which we know and love), than one day
realise that it has become dated or inflexible, and have to learn a new,
replacement, language!

--
Regards,
=dn

Re: evaluation question

<claims-20230201012823@ram.dialup.fu-berlin.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: 1 Feb 2023 00:29:20 GMT
Organization: Stefan Ram
Lines: 16
Expires: 1 Jan 2024 11:59:58 GMT
Message-ID: <claims-20230201012823@ram.dialup.fu-berlin.de>
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> <tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net> <tramnp$3ohlk$1@dont-email.me> <674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net> <mailman.1725.1675188953.20444.python-list@python.org> <parentheses-20230131193242@ram.dialup.fu-berlin.de> <k3tlv6FhlorU1@mid.individual.net> <6c261ff8-be2a-4c48-a514-bf36fd4ff6c9@tompassin.net> <mailman.1732.1675210326.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de ZceBraaM6n56djWjZOSOJQblcAcsBI6EdDvwWOyTkaX3h7
X-Copyright: (C) Copyright 2023 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, 1 Feb 2023 00:29 UTC

Thomas Passin <list1@tompassin.net> writes:
>On 1/31/2023 6:18 PM, Greg Ewing wrote:
>> On 1/02/23 7:33 am, Stefan Ram wrote:
>>> Thomas Passin <list1@tompassin.net> writes:
>>
>>>    Some people say it is a function now so that you can redefine it.

>Hmm, I didn't write these quotes. Maybe someone got confused by the
>depth of the nested replies in this thread. Easy enough to do.

Above, ">>> Thomas Passin <list1@tompassin.net> writes:" with three
greater signs means that anything that follows with four greater
signs was written by you. Nothing follows with four greater signs.
So it is not claimed that you wrote anything!

Re: evaluation question

<k3tu53FirpuU1@mid.individual.net>

  copy mid

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

  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: greg.ew...@canterbury.ac.nz (Greg Ewing)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Wed, 1 Feb 2023 14:38:39 +1300
Lines: 10
Message-ID: <k3tu53FirpuU1@mid.individual.net>
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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me> <k3tkqhFhgf7U1@mid.individual.net>
<062f691c-d4b7-09f9-c949-a14ef18119f7@DancesWithMice.info>
<mailman.1733.1675210672.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net DLsJt6EfXEvceTa7IooLBAXxzFocNrYreOaGseZU/QyDGRLhtx
Cancel-Lock: sha1:g2CPLHCukc9aMPH0chkb9vtO4sQ=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0)
Gecko/20100101 Thunderbird/91.3.2
Content-Language: en-US
In-Reply-To: <mailman.1733.1675210672.20444.python-list@python.org>
 by: Greg Ewing - Wed, 1 Feb 2023 01:38 UTC

On 1/02/23 1:17 pm, dn wrote:
> 1 nothing "ceased to execute" and Python 2 was maintained and developed
> for quite some time and in-parallel to many Python 3 releases.

And a lot of effort was put into making the transition as easy
as possible, e.g. 2to3, and the features added to 2.7 to make
it easier to write code that would work in both versions.

--
Greg

Re: evaluation question

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

  copy mid

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

  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: grant.b....@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: evaluation question
Date: Tue, 31 Jan 2023 19:17:58 -0800 (PST)
Lines: 14
Message-ID: <mailman.1734.1675221481.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>
<mailman.1717.1675054683.20444.python-list@python.org>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
<k3tlv6FhlorU1@mid.individual.net>
<63d9d9e6.050a0220.45e1e.0057@mx.google.com>
X-Trace: news.uni-berlin.de u48KuqdHCZ5+Srtq3aVSQQllLIOy5eT46tnUs4Qmkj0A==
Return-Path: <grant.b.edwards@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=a6hhWDIk;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'thing.': 0.07; 'wrong.':
0.07; 'from:addr:grant.b.edwards': 0.16; 'from:name:grant
edwards': 0.16; 'greg': 0.16; 'received:209.85.166.170': 0.16;
'syntactic': 0.16; 'wrote:': 0.16; 'python': 0.16;
'subject:question': 0.17; 'grant': 0.17; 'to:addr:python-list':
0.20; 'old': 0.27; 'header:User-Agent:1': 0.30; 'but': 0.32;
'there': 0.33; 'received:google.com': 0.34; 'felt': 0.35;
'received:209.85.166': 0.35; 'from:addr:gmail.com': 0.35;
'special': 0.37; 'received:209.85': 0.37; 'could': 0.38;
'received:209': 0.39; 'use': 0.39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=LiOwNQ1g3MFKdXpkg/Bf9a478wADfDKQX6ttLfno/88=;
b=a6hhWDIkTMFb+SWgeShG12eBRLiNt8uyjeO0i67k1UToTiYRTWSR4kITMEN5FahPfP
3etse3f36GwvOiEZVMpywm41FzMnF2lLjf+neRHp39I1zFVcdjjXV6K45zgEHcX5FBbi
pbljOzywePYbYuQJ/w4OFnmjTzCsDoJ5B0HVtnxm+eL8XzG8OMvflukoBUsZ1kiD0keU
SFgBc0qeh19rEhNrqc5tOA5ZlQSu3pL5Et377Hs8kRmH60zJOMQuosHjCXE9APYIM9Wj
liSY/H8egtfgAzJb3SnW7HRPxOzRsjuP7nQg7fuWawudTzUL5cM/rstTBiETVH9SG4Go
dNaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=LiOwNQ1g3MFKdXpkg/Bf9a478wADfDKQX6ttLfno/88=;
b=suHmXx03mOYk27jZUw+J1FgtKbVe3sXvQeEMLlnQpzglLmUbF45MxxblPNXBpnBSEe
lXLfXmgCLpEo9p9116KmepX0gCNP+5UxOcraAgGH9Hulf3MO9qE5QXiZbbzcXkOWTRWJ
zuKECyII817XomTUQQic/9b803BuEB3MbAuV0nMtEGBqeTzTQRhIDwzCsLYTo6MMCzQR
JKaUt6X7esulQDyihyATQeF7anB4SyDIVGcf7sOc6Eegj0jRTpB5UlH57l4PMnt9Ra/a
AkMcI2OZxCJMeONbAOqVFCvViCTluzyAYbyykB2I6ZLPx3Kdg2yGWd+Ws7veLsZpmoru
ZUHg==
X-Gm-Message-State: AO0yUKXgBBlX6egfkLeafEBtVSby7p5yeGBSylxr71bEM/ib0T4OeUQj
eX7kf3iKW7YEi07C44UugJ332qpFlYY=
X-Google-Smtp-Source: AK7set8HQgmDVZihWpcU+/ct/m7Rd43DS9JOxTmCbJw0gJ3XC+YAhM3ZufGdlGjYApTSLHuox3Nh1w==
X-Received: by 2002:a92:c26e:0:b0:311:6e9:7782 with SMTP id
h14-20020a92c26e000000b0031106e97782mr810332ild.1.1675221478778;
Tue, 31 Jan 2023 19:17:58 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
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: <63d9d9e6.050a0220.45e1e.0057@mx.google.com>
X-Mailman-Original-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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<674a1779-ea08-ef69-2a2d-b8f2dd924d07@tompassin.net>
<mailman.1725.1675188953.20444.python-list@python.org>
<parentheses-20230131193242@ram.dialup.fu-berlin.de>
<k3tlv6FhlorU1@mid.individual.net>
 by: Grant Edwards - Wed, 1 Feb 2023 03:17 UTC

On 2023-01-31, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:

> That's only one of the syntactic oddities of the old print
> statement, thogh. There was also the >> thing, special treatment
> of trailing commas, etc.

In "old" Python I used to use the trailing comma extensively, but I
could never get myself to use the >> thing. I don't know why, but it
just felt wrong.

--
Grant

Re: evaluation question

<trd9g8$92t2$1@dont-email.me>

  copy mid

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

  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: Wed, 1 Feb 2023 08:56:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <trd9g8$92t2$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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<trbvi6$3vgh9$1@dont-email.me>
Injection-Date: Wed, 1 Feb 2023 08:56:40 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0ca58c92c5e51dd20800e786d62ea2c5";
logging-data="297890"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6V4ifXZNvrCUDlawwyck1"
Cancel-Lock: sha1:o9ihGczciVkS1kLAFoNIdLwkRdY=
 by: Mutt...@dastardlyhq.com - Wed, 1 Feb 2023 08:56 UTC

On Tue, 31 Jan 2023 21:00:53 +0000
Mark Bourne <nntp.mbourne@spamgourmet.com> wrote:
>Greg Ewing wrote:
>> On 30/01/23 10:41 pm, Muttley@dastardlyhq.com wrote:
>>> 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?
>>
>> It was made a function because there's no good reason for it
>> to have special syntax in the language.
>
>I think I saw somewhere that making print a function also had something
>to do with being able to add extra keyword arguments like sep and end.
>The syntax for printing to a specific file already seemed a bit odd with
>the print statement, and adding extra arguments would have made it even
>more clunky (yeah, I know ">>" is similar to C++ streams, but it looks
>out of place in Python).

Why couldn't they just keep "print" and call the function , oh I dunno,
"printf" ? :)

Re: evaluation question

<trd9l4$93l4$1@dont-email.me>

  copy mid

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

  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: Wed, 1 Feb 2023 08:59:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <trd9l4$93l4$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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me>
<k3tkqhFhgf7U1@mid.individual.net>
Injection-Date: Wed, 1 Feb 2023 08:59:17 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0ca58c92c5e51dd20800e786d62ea2c5";
logging-data="298660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19O5lDa7wzXnRSuwodTo2qL"
Cancel-Lock: sha1:x6/C602psP74SVX5rf3QSNW5Ew4=
 by: Mutt...@dastardlyhq.com - Wed, 1 Feb 2023 08:59 UTC

On Wed, 1 Feb 2023 11:59:25 +1300
Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
>On 31/01/23 10:24 pm, Muttley@dastardlyhq.com wrote:
>> All languages have their ugly corners due to initial design mistakes and/or
>> constraints. Eg: java with the special behaviour of its string class, C++
>> with "=0" pure virtual declaration. But they don't dump them and make all old
>
>> code suddenly cease to execute.
>
>No, but it was decided that Python 3 would have to be backwards
>incompatible, mainly to sort out the Unicode mess. Given that,
>the opportunity was taken to clean up some other mistakes as well.

Unicode is just a string of bytes. C supports it with a few extra library
functions to get unicode length vs byte length and similar. Its really
not that hard. Rewriting an entire language just to support that sounds a
bit absurd to me but hey ho...

Re: evaluation question

<trd9nn$94gv$1@dont-email.me>

  copy mid

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

  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: Wed, 1 Feb 2023 09:00:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <trd9nn$94gv$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>
<tr83bf$381e1$1@dont-email.me> <k3r3rgF5l1hU1@mid.individual.net>
<tramnp$3ohlk$1@dont-email.me> <k3tkqhFhgf7U1@mid.individual.net>
<062f691c-d4b7-09f9-c949-a14ef18119f7@DancesWithMice.info>
<mailman.1733.1675210672.20444.python-list@python.org>
Injection-Date: Wed, 1 Feb 2023 09:00:39 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0ca58c92c5e51dd20800e786d62ea2c5";
logging-data="299551"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cgqpdedS9rMlvGscwzA+O"
Cancel-Lock: sha1:S60oLUz8BEmULVZHsHcR9WnrMSQ=
 by: Mutt...@dastardlyhq.com - Wed, 1 Feb 2023 09:00 UTC

On Wed, 1 Feb 2023 13:17:33 +1300
dn <PythonList@DancesWithMice.info> wrote:
>On 01/02/2023 11.59, Greg Ewing wrote:
>> On 31/01/23 10:24 pm, Muttley@dastardlyhq.com wrote:
>>> All languages have their ugly corners due to initial design mistakes
>>> and/or
>>> constraints. Eg: java with the special behaviour of its string class, C++
>>> with "=0" pure virtual declaration. But they don't dump them and make
>>> all old
>>> code suddenly cease to execute.
>>
>> No, but it was decided that Python 3 would have to be backwards
>> incompatible, mainly to sort out the Unicode mess. Given that,
>> the opportunity was taken to clean up some other mistakes as well.
>
>+1
>and the move to Unicode has opened-up the Python community beyond the
>US, to embrace 'the world' - a proposition (still) not well-recognised
>by (only) English-speakers/writers/readers.
>
>
>Even though the proposition has a troll-bait smell to it:-
>
>1 nothing "ceased to execute" and Python 2 was maintained and developed
>for quite some time and in-parallel to many Python 3 releases.

MacOS only comes with python3 now. If you have a whole load of python2 code
you want to run you now have to manually install python2 yourself.

>2 the only constant in this business is 'change'. I'd rather cope with
>an evolution in this language (which we know and love), than one day

Its not evolution, its revolution. Evolution retains old functionality.


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

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor