Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Scientists will study your brain to learn more about your distant cousin, Man.


devel / comp.lang.python / Re: Weak Type Ability for Python

SubjectAuthor
o Re: Weak Type Ability for PythonThomas Passin

1
Re: Weak Type Ability for Python

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Weak Type Ability for Python
Date: Thu, 13 Apr 2023 08:10:30 -0400
Lines: 17
Message-ID: <mailman.68.1681387843.20750.python-list@python.org>
References: <e00cf529-1c77-a438-3efa-890d96f141b2@mrabarnett.plus.com>
<ZDd6LmQOzUXNNUAa@cskk.homeip.net>
<015501d96dca$3ef2c820$bcd85860$@gmail.com>
<ce5a54d6-dcc9-1f2c-59ae-afb671ff696c@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 bKIXzH+UJ7wd7/upKdLstwx8/+doAYkMBbss+LiT3hbQ==
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=Oe2wGJft;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'library.': 0.05;
'programmer': 0.07; 'received:23.83.212': 0.09;
'received:elm.relay.mailchannels.net': 0.09; 'subject:Python':
0.12; 'import': 0.15; "'python'": 0.16; 'mean.': 0.16;
'received:10.0.0': 0.16; 'received:23.83.212.17': 0.16;
'received:64.90': 0.16; 'received:64.90.62': 0.16;
'received:64.90.62.162': 0.16;
'received:bird.elm.relay.mailchannels.net': 0.16;
'received:dreamhost.com': 0.16; 'subject:Type': 0.16; 'wrote:':
0.16; 'to:addr:python-list': 0.20; 'code': 0.23; 'skip:p 30':
0.23; 'python,': 0.25; '>>>': 0.28; 'header:User-Agent:1': 0.30;
'am,': 0.31; 'objects': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32;
'subject:for': 0.33; 'mean': 0.34; 'header:In-Reply-To:1': 0.34;
"skip:' 10": 0.37; 'really': 0.37; 'means': 0.38; 'this,': 0.39;
'email addr:gmail.com': 0.63; 'header:Received:6': 0.67;
'received:64': 0.67; 'operations': 0.68; 'sequence': 0.69; 'plus':
0.73; 'finds': 0.76; 'supposed': 0.76
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1681387831; a=rsa-sha256;
cv=none;
b=ccYBYrmKJ9ngas5eRGGbFv+NSKhKEv6nvHINANyrZt2TKV1FP/NDFWT1kHuv4DXtjHwyFa
2np5I+6lFt5hMNHP307/sVbqtFThGgQvBeE028lpZdH76qspGSdkmif/NaA9JWDl72E9ga
YlWBD2WMzhzmMEru9o8M4J6Hgp+utPe8P+cngAZt2Gv4f+WN74uiABXS1LSlqzLlJZSK/u
oyjnG+fPeC25/qRWuXnPfgS07kA5FMj77JqDD9l6PhW876nzAGlnzqlvek0YTdQ/IeKGoo
QxGrxK1DQKnXcyZdt8lZD13NVqv9vw1cJWjKWxCm/kU/JVDylwQw5ABfqmjlnQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1681387831;
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=od0bsI4d5e+KYfKc5s5jf9FeDmXJeWcLbHoKQ+pzJ+Y=;
b=A4v46uAhb7S1zv9qAId4gWS9EbFvXPRBWvFHx+dDvNnUJ8hb3XLyC5zz9lcZpQmNPAoxlY
Fbj/7rkucUaNzJYl4G4QDP3ddyMPjWKxx3fYQWXqDKcv9FhkkW3OGyV0H8qFBcsX9wqH2N
l0n0RV36EMBQMpf3ioMa2hLQP5L2RZPxQmupRUt+LyG4B0ysKr9r9bNMNx8cIMtR3Oldmj
1Anh9x4vOdehD43wg6wkn4SgBCzPYmYozfwTHH0nngZrwH2Gcp39YUAIuf7a9RU65QXJFd
ehfFpNSUUY734XTqEbcWypAKB027NFsPrgEikoCl070LlNcbJ7d514i9XrPQYQ==
ARC-Authentication-Results: i=1; rspamd-7f66b7b68c-c84j6;
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-Versed-Lonely: 483a37981473ff5a_1681387831584_1503737810
X-MC-Loop-Signature: 1681387831584:1300206077
X-MC-Ingress-Time: 1681387831584
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1681387830;
bh=od0bsI4d5e+KYfKc5s5jf9FeDmXJeWcLbHoKQ+pzJ+Y=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=Oe2wGJftdJth9ISaEUZPWOcaomPOkmxcqpCim8gI2I2Pqq700sV35xBilysj5EVmZ
GuUPSsnl8lhOPbUVXstPZCQ/54ISUeyK1YbzJNUZTirPBA/T9JBm6huS+lEsceb9CK
xL4BmwKqbkgLUHW47fz45Kv4Uj6sxpfzBVJCvwIBxtSWDOogRRVMEraZPgHPtmEnpO
tFjxODYLB/7X4jIxqcSpEu//ZNBpJGofpBhY5FdBiNeZ9sYuVB2ma4IbB7dDWm24ae
WG00pnmzqkKqxTX6lDKEi4zvHAMf9i8uzTR1tuxhTd1i0nQQ8MK3reVdrK+El4vS6C
v9eyWmfXsP1fA==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: en-US
In-Reply-To: <015501d96dca$3ef2c820$bcd85860$@gmail.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: <ce5a54d6-dcc9-1f2c-59ae-afb671ff696c@tompassin.net>
X-Mailman-Original-References: <e00cf529-1c77-a438-3efa-890d96f141b2@mrabarnett.plus.com>
<ZDd6LmQOzUXNNUAa@cskk.homeip.net>
<015501d96dca$3ef2c820$bcd85860$@gmail.com>
 by: Thomas Passin - Thu, 13 Apr 2023 12:10 UTC

On 4/13/2023 1:38 AM, avi.e.gross@gmail.com wrote:
> In Python, "+" does not
> mean plus at all. It means whatever the programmer wanted it to mean. An
> infix line of code that includes "obj1 + obj2" is supposed to investigate
> how to do it. I am not sure if some built-in objects may be different, but
> it does a sequence of operations till it finds what it needs and does it.

A really nice example of this is pathlib in the standard library. You
can write things like this, overloading the "/" operator:

>>> from pathlib import PurePath
>>> pth = PurePath('c:/') / 'temp' / 'python'
>>> pth
PureWindowsPath('c:/temp/python')
>>> str(pth)
'c:\\temp\\python'


devel / comp.lang.python / Re: Weak Type Ability for Python

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor