Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Base 8 is just like base 10, if you are missing two fingers. -- Tom Lehrer


devel / comp.lang.python / Re: learning python ...

SubjectAuthor
* Re: learning python ...Grant Edwards
`- Re: learning python ...Greg Ewing

1
Re: learning python ...

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

  copy mid

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

  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: learning python ...
Date: Tue, 25 May 2021 13:45:59 -0000 (UTC)
Lines: 28
Message-ID: <mailman.337.1621957043.3087.python-list@python.org>
References: <143d4163-faf5-3794-095d-f28e85a18c58@adminart.net>
<s8e3bn$105v$1@ciao.gmane.io>
<6730da2c-1440-ad59-7494-b5ce5b5bccae@adminart.net>
<CACFDE8bsJe2BMNwsXAiGyxsMxNE+RuENj62GtfEzqodh5O_mMA@mail.gmail.com>
<5cec7f52-a66b-608c-4816-a3d8816658b2@adminart.net>
<CAPTjJmpOXQ0m4-=uty96t+K9VCvZ_7UWdzPOKYw-vocRFq50eQ@mail.gmail.com>
<6ad46670-a0b4-d556-3b03-284ffa451c89@adminart.net>
<d7qnaglvh89gpvn5b3km3v7hk5ukvhk81i@4ax.com> <s8gseq$829$1@ciao.gmane.io>
<s8hda9$15dk$1@ciao.gmane.io> <s8iv2n$aev$1@ciao.gmane.io>
X-Trace: news.uni-berlin.de k3+qwaVCUVaOGBxd0GYkkAEB25nWRMfivDfkuAAzWnUQ==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(e.g.': 0.04; 'argument':
0.04; 'traceback': 0.04; 'subject:python': 0.06; 'compiler': 0.09;
'expression': 0.09; 'message-id:@ciao.gmane.io': 0.09;
'received:ciao.gmane.io': 0.09; 'received:gmane.io': 0.09;
'received:list': 0.09; 'conditional': 0.16;
'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards':
0.16; 'gauld': 0.16; 'indeed': 0.16; 'involving': 0.16; 'parsing':
0.16; 'received:116.202': 0.16; 'received:116.202.254': 0.16;
'received:116.202.254.214': 0.16; 'syntaxerror:': 0.16; 'wrote:':
0.16; 'syntax': 0.16; 'python': 0.16; 'grant': 0.17; "i've": 0.22;
'to:addr:python-list': 0.23; '>>>': 0.26; 'else': 0.27; 'header
:User-Agent:1': 0.31; "doesn't": 0.32; '"",': 0.32; 'python-list':
0.32; "wouldn't": 0.32; 'invalid': 0.35; 'url-ip:104.22/16': 0.35;
'from:addr:gmail.com': 0.35; "that's": 0.37; 'file': 0.38;
'though': 0.38; "it's": 0.38; 'called': 0.40; 'best': 0.61;
'choose': 0.62; 'url-ip:172.67/16': 0.64; 'seen': 0.65; 'care':
0.67; 'received:116': 0.71; 'admit': 0.84
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: slrn/1.0.3 (Linux)
X-Mailman-Approved-At: Tue, 25 May 2021 11:37:22 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
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: <s8iv2n$aev$1@ciao.gmane.io>
X-Mailman-Original-References: <143d4163-faf5-3794-095d-f28e85a18c58@adminart.net>
<s8e3bn$105v$1@ciao.gmane.io>
<6730da2c-1440-ad59-7494-b5ce5b5bccae@adminart.net>
<CACFDE8bsJe2BMNwsXAiGyxsMxNE+RuENj62GtfEzqodh5O_mMA@mail.gmail.com>
<5cec7f52-a66b-608c-4816-a3d8816658b2@adminart.net>
<CAPTjJmpOXQ0m4-=uty96t+K9VCvZ_7UWdzPOKYw-vocRFq50eQ@mail.gmail.com>
<6ad46670-a0b4-d556-3b03-284ffa451c89@adminart.net>
<d7qnaglvh89gpvn5b3km3v7hk5ukvhk81i@4ax.com> <s8gseq$829$1@ciao.gmane.io>
<s8hda9$15dk$1@ciao.gmane.io>
 by: Grant Edwards - Tue, 25 May 2021 13:45 UTC

On 2021-05-24, Alan Gauld via Python-list <python-list@python.org> wrote:
> On 24/05/2021 19:48, Grant Edwards wrote:
>
>>> Traceback ( File "<interactive input>", line 1
>>> if = 1.234
>>> ^
>>> SyntaxError: invalid syntax
>>
>> I must admit it might be nice if the compiler told you _why_ the
>> syntax is invalid (e.g. "expected conditional expression while parsing
>> 'if' statement").
>
> Although wouldn't it be "expected boolean expression" rather than
> conditional expression? Python doesn't care how the argument to 'if'
> is arrived at so long as it's a boolean.

Indeed -- after posting that I realized that "conditional expression"
was not the best phrase to choose because that's often used to refer
to an expression involving the new ternary operator. I should have
said "boolean valued expression". Though in the syntax for the
ternary operator expression I've seen such a boolean valued expression
called a "conditional expression".

https://realpython.com/python-conditional-statements/

<expr1> if <conditional_expr> else <expr2>

Re: learning python ...

<ih5cu3FodirU1@mid.individual.net>

  copy mid

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

  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: learning python ...
Date: Wed, 26 May 2021 10:44:17 +1200
Lines: 11
Message-ID: <ih5cu3FodirU1@mid.individual.net>
References: <143d4163-faf5-3794-095d-f28e85a18c58@adminart.net>
<s8e3bn$105v$1@ciao.gmane.io>
<6730da2c-1440-ad59-7494-b5ce5b5bccae@adminart.net>
<CACFDE8bsJe2BMNwsXAiGyxsMxNE+RuENj62GtfEzqodh5O_mMA@mail.gmail.com>
<5cec7f52-a66b-608c-4816-a3d8816658b2@adminart.net>
<CAPTjJmpOXQ0m4-=uty96t+K9VCvZ_7UWdzPOKYw-vocRFq50eQ@mail.gmail.com>
<6ad46670-a0b4-d556-3b03-284ffa451c89@adminart.net>
<d7qnaglvh89gpvn5b3km3v7hk5ukvhk81i@4ax.com> <s8gseq$829$1@ciao.gmane.io>
<s8hda9$15dk$1@ciao.gmane.io> <s8iv2n$aev$1@ciao.gmane.io>
<mailman.337.1621957043.3087.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 Ca7SO51jxrbdQURfxhfZqQeHgbGNzO89RMq1wc1W9anF88vwFi
Cancel-Lock: sha1:p6va3jrKgpy32Y8hGhvY2Fezvsg=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:78.0)
Gecko/20100101 Thunderbird/78.4.0
In-Reply-To: <mailman.337.1621957043.3087.python-list@python.org>
Content-Language: en-US
 by: Greg Ewing - Tue, 25 May 2021 22:44 UTC

> On 2021-05-24, Alan Gauld via Python-list <python-list@python.org> wrote:
>> Although wouldn't it be "expected boolean expression" rather than
>> conditional expression? Python doesn't care how the argument to 'if'
>> is arrived at so long as it's a boolean.

This isn't really true either. Almost every object in Python has
an interpretation as true or false, and can be used wherever a
boolean value is needed.

--
Greg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor