Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and fixed.


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

SubjectAuthor
* Re: learning python ...Ron Lauzon
`- Re: learning python ...Manfred Lotz

1
Re: learning python ...

<2517859136@f192.n1.z21.fsxnet>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: Ron.Lau...@f192.n1.z21.fsxnet (Ron Lauzon)
Newsgroups: comp.lang.python
Subject: Re: learning python ...
Date: Mon, 24 May 2021 08:14:39 +1200
Organization: fsxNet Usenet Gateway | bbs.nz/#fsxNet
Message-ID: <2517859136@f192.n1.z21.fsxnet>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="29079"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: hw
 by: Ron Lauzon - Sun, 23 May 2021 20:14 UTC

-=> hw wrote to All <=-

hw> Traceback (most recent call last):
hw> File "[...]/hworld.py", line 18, in <module>
hw> print(isinstance(int, float))
hw> TypeError: isinstance() arg 2 must be a type or tuple of types

hw> I would understand to get an error message in line 5 but not in 18. Is
hw> this a bug or a feature?

Python is case sensitive. Is that supposed to be "isInstance"?

.... I used to jog, but the ice kept falling out of my glass.
___ MultiMail/Linux v0.52

Re: learning python ...

<20210525184918.54d14b36.ml_news@posteo.de>

  copy mid

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

  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: ml_n...@posteo.de (Manfred Lotz)
Newsgroups: comp.lang.python
Subject: Re: learning python ...
Date: Tue, 25 May 2021 18:49:18 +0200
Lines: 31
Message-ID: <20210525184918.54d14b36.ml_news@posteo.de>
References: <2517859136@f192.n1.z21.fsxnet>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net QMN84E2zAT1WQBK26f1UmAjXnvyIeNdbq2int/HYJEBhJQc9Gt
X-Orig-Path: ID-313237.user.individual.net!not-for-mail
Cancel-Lock: sha1:dDKLD+/rBj93trfvgtDEC3PcSDQ=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu)
 by: Manfred Lotz - Tue, 25 May 2021 16:49 UTC

On Mon, 24 May 2021 08:14:39 +1200
Ron.Lauzon@f192.n1.z21.fsxnet (Ron Lauzon) wrote:

> -=> hw wrote to All <=-
>
> hw> Traceback (most recent call last):
> hw> File "[...]/hworld.py", line 18, in <module>
> hw> print(isinstance(int, float))
> hw> TypeError: isinstance() arg 2 must be a type or tuple of types
>
> hw> I would understand to get an error message in line 5 but not in
> hw> 18. Is this a bug or a feature?
>
> Python is case sensitive. Is that supposed to be "isInstance"?
>
>

This is easy to check

$ python3
Python 3.9.5 (default, May 14 2021, 00:00:00)
[GCC 11.1.1 20210428 (Red Hat 11.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> isinstance
<built-in function isinstance>
>>> isInstance
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'isInstance' is not defined

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor