Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Within a computer, natural language is unnatural.


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

SubjectAuthor
o Re: learning python ...Chris Angelico

1
Re: learning python ...

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: learning python ...
Date: Tue, 25 May 2021 18:32:21 +1000
Lines: 85
Message-ID: <mailman.329.1621931555.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>
<CAPTjJmr1z8Nyd2kbfrrc3X3wjCk80dt58-bSR=onCnALhbHjFA@mail.gmail.com>
<2aa42ad6-8a22-b7d4-5fc7-a589b361cad5@adminart.net>
<CAPTjJmq8gF=eszXtiykgdPP1e0gFyZaJpkgyPkMuvg+we+4wHA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 3RLInurPc/YpA04RAF9CKwo8h6skuCWOder8w3ovJkdA==
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=b5YIgiyL;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'is.':
0.05; 'variable': 0.05; 'subject:python': 0.06; 'else.': 0.07;
'happened': 0.07; 'language,': 0.07; 'telling': 0.07; '*not*':
0.09; 'angelico': 0.09; 'compiler': 0.09; 'development,': 0.09;
'fundamental': 0.09; 'posts.': 0.09; 'trivial': 0.09; 'types.':
0.09; 'looks': 0.11; "can't": 0.14; 'build-in': 0.16; 'case?':
0.16; 'checks,': 0.16; 'chrisa': 0.16; 'confusion.': 0.16;
'declare': 0.16; 'examples.': 0.16; 'feature.': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'instance': 0.16; 'python;': 0.16; 're-define': 0.16; 'sounds':
0.16; 'useful.': 0.16; 'wrote:': 0.16; 'says': 0.16; 'python':
0.16; 'instead': 0.17; 'figure': 0.18; 'it?': 0.18; 'supported':
0.18; 'tue,': 0.18; 'uses': 0.19; "aren't": 0.20; 'maybe': 0.20;
'name.': 0.20; 'pm,': 0.20; 'way.': 0.20; 'programming': 0.21;
'python,': 0.21; 'language': 0.22; 'version': 0.22; 'languages':
0.23; 'to:addr:python-list': 0.23; 'probably': 0.24; 'chris':
0.26; 'function': 0.28; "didn't": 0.29; "isn't": 0.29; 'it,':
0.31; 'there': 0.31; 'think': 0.31; 'but': 0.31; "doesn't": 0.32;
"i'm": 0.32; 'difference': 0.32; 'half': 0.32; 'here,': 0.32;
'to:name:python': 0.32; "wouldn't": 0.32; 'message-
id:@mail.gmail.com': 0.33; 'using': 0.33; 'received:209.85.166':
0.33; 'header:In-Reply-To:1': 0.33; 'functions': 0.34;
'particular': 0.34; 'same': 0.34; 'received:google.com': 0.34;
'example,': 0.35; 'understood': 0.35; 'yes,': 0.35;
'from:addr:gmail.com': 0.35; 'close': 0.36; 'also,': 0.36; 'two':
0.37; 'way': 0.37; "that's": 0.37; 'change': 0.37; 'mean': 0.37;
'really': 0.37; 'received:209.85': 0.38; "it's": 0.38;
'something': 0.38; 'received:209': 0.38; 'going': 0.38; 'word':
0.38; 'use': 0.38; 'does': 0.38; 'means': 0.40; 'whether': 0.40;
'test': 0.40; 'comes': 0.40; 'enough': 0.40; 'all.': 0.40;
'reference': 0.61; 'ready': 0.61; 'well.': 0.61; 'lot': 0.62;
'25,': 0.63; 'types': 0.63; 'worked': 0.63; "you'd": 0.63; 'your':
0.64; 'depending': 0.65; 'well': 0.66; 'look': 0.66; 'future':
0.67; 'that,': 0.68; 'did,': 0.69; 'refers': 0.69; 'you.': 0.70;
'caught': 0.75; 'features': 0.76; 'reliable': 0.77; 'breaking':
0.78; 'reference.': 0.81; '2021': 0.84; 'assumptions,': 0.84;
'difference.': 0.84; 'this!': 0.84; 'type.': 0.84; 'brain': 0.93;
'magic': 0.93; 'production,': 0.93; 'keywords': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=QG4ojvITfr0LwrXrgkAiSUj0Cp5gW5NAdQJKXECCNJ4=;
b=b5YIgiyLrlFxTT8jT3fBgaPPyTOllo2jJCNgD1S6hYG0eDMw/TOrO1pQDVhJkTkXEc
EwraZjdJVujBo+X7RC+/ZoxNkBEFIv2wzUoqvXnvpmAwqPRYbHdvGv6Wot+tlxykoSmK
UUNM5gF5tCDk3L0Wfr43AbTUNMcEKNqxYlfc/uJ9pMPhxxPrGT4jqmUjc4cmFzka8LTz
hjCXdcHrkPAmuwsobgBzahLwf8Ufq5qSkJIAd+GEaPnVSa/4XOZrfcr8+p5sHAa/1Wr8
zS79xipU96RZQINCKKWj2FoxWi+sN98rZxOQGJHc2X7qdmFOpinQsIAoy2Ikpiiz8nRG
S9xw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=QG4ojvITfr0LwrXrgkAiSUj0Cp5gW5NAdQJKXECCNJ4=;
b=Biu0peCMZVK8Yv+r5NnvNVU1Azzkllsh+y8EK4cwXOlTgKv/N3a5Dk3qJwGVFOb9r2
MjMAordt3Jk11hN7uEWmCOr7RFwJsnlhlaJYj3Ils2/FcNyatHtawuw/nlUHLnvgMzD7
CnZAeex2UObhwTshRmloF/M1ZMdujHO55AmTW+HzAzLQbJXQysUsrnVyY1fCGXbfzukT
fjQ1XJOUV9/FdKqeMhOYsLVUBPWOT4rKQ7etCPphsQuz9CWfu4tgx5ylzF4twvGESagw
fV5g3g/tYxt5xyxQeolEFT2tEzOPrj4QE+iCSE+EATHjFUIcpYEAz3Q1PHy4FV55hen5
HL1w==
X-Gm-Message-State: AOAM5316Fjn8J0s5bZGvT5Awe1OQGSVdoZpn0/qnuxF6ApQphLEiHCPv
ke/pHbNdcnb23G5FD/SsyEFZrxtcRWDUW9CKQhZyOWElP1Y=
X-Google-Smtp-Source: ABdhPJygV4tWnrtzBO7fKnC4/vqwA1GDeIjyUhj0utuDjhuuuSKI0Bae41EKWjWeUdmgyxyNPlMXOikBO0kF4qmkUYQ=
X-Received: by 2002:a02:294d:: with SMTP id p74mr20413124jap.132.1621931552529;
Tue, 25 May 2021 01:32:32 -0700 (PDT)
In-Reply-To: <2aa42ad6-8a22-b7d4-5fc7-a589b361cad5@adminart.net>
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: <CAPTjJmq8gF=eszXtiykgdPP1e0gFyZaJpkgyPkMuvg+we+4wHA@mail.gmail.com>
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>
<CAPTjJmr1z8Nyd2kbfrrc3X3wjCk80dt58-bSR=onCnALhbHjFA@mail.gmail.com>
<2aa42ad6-8a22-b7d4-5fc7-a589b361cad5@adminart.net>
 by: Chris Angelico - Tue, 25 May 2021 08:32 UTC

On Tue, May 25, 2021 at 1:00 PM hw <hw@adminart.net> wrote:
>
> On 5/24/21 3:54 PM, Chris Angelico wrote:
> > You keep using that word "unfinished". I do not think it means what
> > you think it does.
>
> What do you think I think it means?

I think it means that the language is half way through development,
doesn't have enough features to be usable, isn't reliable enough for
production, and might at some point in the future become ready to use.

None of which is even slightly supported by evidence.

> > Python has keywords. C has keywords. In Python, "None" is a keyword,
> > so you can't assign to it; in C, "int" is a keyword, so you can't
> > assign to it. There is no fundamental difference here, and the two
> > languages even have roughly the same number of keywords (35 in current
> > versions of Python; about 40 or 50 in C, depending on the exact
> > specification you're targeting). The only difference is that, in
> > Python, type names aren't keywords. You're getting caught up on a
> > trivial difference that has happened to break one particular test that
> > you did, and that's all.
>
> Then what is 'float' in the case of isinstance() as the second
> parameter, and why can't python figure out what 'float' refers to in
> this case? Perhaps type names should be keywords to avoid confusion.

It's a name. In Python, any name reference is just a name reference.
There's no magic about the language "knowing" that the isinstance()
function should take a keyword, especially since there's no keywords
for these things.

> >> Maybe you can show how this is a likeable feature. I already understood
> >> that you can somehow re-define functions in python and I can see how
> >> that can be useful. You can do things like that in elisp as well. But
> >> easily messing up built-in variable types like that is something else.
> >> Why would I want that in a programming language, and why would I want to
> >> use one that allows it?
> >
> > Because all you did was mess with the *name* of the type. It's not
> > breaking the type system at all.
>
> And how is it a likeable feature?

You can complain about whether it's likeable or not, but all you're
doing is demonstrating the Blub Paradox.

> > The C language never says that Python is "unfinished". I'm not making
> > assumptions, I'm reading your posts.
>
> I never said it is unfinished, I said it /seems/ unfinished. In any
> case, there is nothing insulting about it. Python is still being worked
> on (which is probably a good thing), and the switch from version 2 to
> version 3 has broken a lot of software, which doesn't help in making it
> appear as finished or mature.

It's been around for thirty years. Quit fudding. You're getting very
close to my killfile.

Python 3 has been around since 2009. Are you really telling me that
Python looks unfinished because of a breaking change more than a
decade ago? The Go language didn't even *exist* before Python 3 - does
that mean that Go is also unfinished?

> Just look at what the compiler says when you try to compile these
> examples. In the first example, you can't defeat a built-in data type
> by assigning something to it, and in the second one, you declare
> something as an instance of a build-in data type and then try to use it
> as a function. That is so because the language is designed as it is.

Yes, because C uses keywords for types. That's the only difference
you're seeing here. You keep getting caught up on this one thing, one
phenomenon that comes about because of YOUR expectations that Python
and C should behave the same way. If you weren't doing isinstance
checks, you wouldn't even have noticed this! It is *NOT* a fundamental
difference.

Also, you keep arguing against the language, instead of just using it
the way it is. It really sounds to me like you'd do better to just
give up on Python and go use some language that fits your brain
better. If you won't learn how a language works, it's not going to
work well for you.

ChrisA


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor