Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You canna change the laws of physics, Captain; I've got to have thirty minutes!


devel / comp.lang.python / Re: =- and -= snag

SubjectAuthor
o Re: =- and -= snagMRAB

1
Re: =- and -= snag

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

  copy mid

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

  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: pyt...@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: =- and -= snag
Date: Tue, 14 Mar 2023 01:05:55 +0000
Lines: 28
Message-ID: <mailman.2294.1678756144.20444.python-list@python.org>
References: <CAEtLV=oHw_VEWd2WEqtD2Xv+Yp0WYeOh_3YgNvfG8ZW69UmXqg@mail.gmail.com>
<7bc3eb74-622f-392f-b400-5e99cc7b0d29@digipen.edu>
<b9efcbfe-26ad-aac8-8827-4c946ce258f9@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de nkAHo+XcRY0/YpOELf8G9QWQU9i5H/kaBo2f27iK0yrg==
Return-Path: <python@mrabarnett.plus.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=plus.com header.i=@plus.com header.b=cdt9lJZL;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'that?': 0.07;
'from:addr:python': 0.09; 'received:192.168.1.64': 0.09;
"shouldn't": 0.09; '2:26': 0.16; 'calculations': 0.16;
'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16;
'message-id:@mrabarnett.plus.com': 0.16; 'received:plus.net':
0.16; 'turns': 0.16; 'wrote:': 0.16; 'python': 0.16; 'instead':
0.17; 'pm,': 0.19; 'to:addr:python-list': 0.20; "isn't": 0.27;
'header:User-Agent:1': 0.30; 'gary': 0.32; 'negative': 0.32;
'suspicious': 0.32; 'received:192.168.1': 0.32; 'but': 0.32;
'there': 0.33; 'able': 0.34; 'same': 0.34; "didn't": 0.34; 'mean':
0.34; 'header:In-Reply-To:1': 0.34; 'received:192.168': 0.37;
'way': 0.38; 'could': 0.38; 'received:212': 0.62; 'today,': 0.62;
'email addr:gmail.com': 0.63; 'picked': 0.64; 'numbers': 0.67;
'head': 0.73; 'unusual': 0.81
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1678755956; bh=qNWOVmyB5uhGACA0XntoLowG5g7OsGLz7lEjOaoHfu4=;
h=Date:Subject:To:References:From:In-Reply-To;
b=cdt9lJZLlwxYqY3TwvL50pmhnYT546zaU9htG4O/Vs1Co15gCO8Kj4xeDb0Fn2RZT
FXxrRebioLYa2as3RCDCGC2vLm1+BZfuYFk6iBIB4V94JYbPZUigUGTmN2YHrV8CcL
B72NXq9/a453fpiu/pldYqblj4p2mz7/7rWrY0wCvjP1SDWcG7B5YJvQ+/qAOVfPBy
+s03H7Wby3ZsVfy9bA7T6ju1ovzayF4R0cPOwOFuLb33EUEth8arQrAQQBepgbXqZe
5RWkvd7n/79TDTnzkvsI4+aQnaHWgSGyZbsRTMLSjefXMRu48fWI8s5QDsshuX3VCv
IHDt10LTOjOlg==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=ebkuwpIH c=1 sm=1 tr=0 ts=640fc874
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=k9O42RHoHI3LH4JGGogA:9 a=QEXdDO2ut3YA:10
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Content-Language: en-GB
In-Reply-To: <7bc3eb74-622f-392f-b400-5e99cc7b0d29@digipen.edu>
X-CMAE-Envelope: MS4xfPSTAReTJOC1pl5L2xzqlsiaIHCy2o5q/t0v/jxnV6u9Yq2ePFtJYoWVcEXmAz4+6R/e1BL86OcawaDphC8L07kLAZsEf0aw736A+8Vl50G9lAEg3K/g
q/iVNiEvsOcO6argPS3CpKjSv5INHs9lCxkOKC59UfjnILzabORM8wt2p6wqAUnaPTtPbHYVRIk5Q4YmZDbW0db01zuugIjnhGE=
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: <b9efcbfe-26ad-aac8-8827-4c946ce258f9@mrabarnett.plus.com>
X-Mailman-Original-References: <CAEtLV=oHw_VEWd2WEqtD2Xv+Yp0WYeOh_3YgNvfG8ZW69UmXqg@mail.gmail.com>
<7bc3eb74-622f-392f-b400-5e99cc7b0d29@digipen.edu>
 by: MRAB - Tue, 14 Mar 2023 01:05 UTC

On 2023-03-14 00:28, Gary Herron wrote:
>
> On 3/13/23 2:26 PM, morphex@gmail.com wrote:
>> Hi.
>>
>> I was working in Python today, and sat there scratching my head as the
>> numbers for calculations didn't add up. It went into negative numbers,
>> when that shouldn't have been possible.
>>
>> Turns out I had a very small typo, I had =- instead of -=.
>>
>> Isn't it unpythonic to be able to make a mistake like that?
>>
>> Regards,
>>
>> Morten
>>
>
> These all mean the same thing, but I don't see a good way to designate
> the second or third as an error.
>
>
> x = -5
> x=-5
> x =- 5
>
The third one could be picked up as suspicious by a linter due to its
unusual spacing.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor