Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Spock: The odds of surviving another attack are 13562190123 to 1, Captain.


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

SubjectAuthor
* Re: learning python ...hw
`- Re: learning python ...Mark Lawrence

1
Re: learning python ...

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hw...@adminart.net (hw)
Newsgroups: comp.lang.python
Subject: Re: learning python ...
Date: Wed, 26 May 2021 09:48:27 +0200
Lines: 129
Message-ID: <mailman.357.1622015310.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>
<13034d97-9e3c-5e2f-7f0c-2d49bbfa0582@adminart.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de gRs9j04PtCguuFb7ouHT7w++FcPs0aawR/HfZU3XYWLg==
Return-Path: <hw@adminart.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=adminart.net header.i=@adminart.net header.b=GNtJsLdE;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'knows':
0.04; 'indicate': 0.05; 'is.': 0.05; 'library.': 0.05;
'parameter': 0.05; 'variable': 0.05; 'subject:python': 0.06;
'else.': 0.07; 'happened': 0.07; 'language,': 0.07; 'telling':
0.07; 'python.': 0.07; '*not*': 0.09; 'angelico': 0.09;
'compiler': 0.09; 'development,': 0.09; 'enough.': 0.09;
'fundamental': 0.09; 'ideas.': 0.09; 'posts.': 0.09; 'thinks':
0.09; 'trivial': 0.09; 'types.': 0.09; 'looks': 0.11; "can't":
0.14; 'help,': 0.14; '>>>>': 0.16; 'build-in': 0.16; 'case?':
0.16; 'checks,': 0.16; 'confusion.': 0.16; 'declare': 0.16;
'difference,': 0.16; 'examples.': 0.16; 'expected.': 0.16;
'feature.': 0.16; 'instance': 0.16; 'interesting.': 0.16;
'python;': 0.16; 're-define': 0.16; 'received:(client did not
present a certificate)': 0.16; 'sounds': 0.16; 'useful.': 0.16;
'variable.': 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; 'all,': 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; 'unable': 0.24;
'probably': 0.24; 'received:de': 0.24; 'anything': 0.24; '>>>':
0.26; 'chris': 0.26; 'seems': 0.26; 'tried': 0.26; 'library':
0.27; "wasn't": 0.27; 'function': 0.28; 'error': 0.28; "didn't":
0.29; "isn't": 0.29; 'header:User-Agent:1': 0.31; 'it,': 0.31;
'there': 0.31; 'think': 0.31; 'but': 0.31; 'am,': 0.31; 'looked':
0.31; "doesn't": 0.32; "i'm": 0.32; 'difference': 0.32; 'do.':
0.32; 'half': 0.32; 'here,': 0.32; 'right,': 0.32; "wouldn't":
0.32; 'using': 0.33; 'header:In-Reply-To:1': 0.33; 'functions':
0.34; 'particular': 0.34; 'same': 0.34; 'year': 0.35; 'example,':
0.35; 'announced': 0.35; 'failed': 0.35; 'understood': 0.35;
'yes,': 0.35; 'trying': 0.36; 'close': 0.36; 'also,': 0.36; 'two':
0.37; 'changes': 0.37; 'people': 0.37; 'worked': 0.63; "you'd":
0.63; 'your': 0.64; 'depending': 0.65; 'policy': 0.65; 'well':
0.66; 'look': 0.66; 'future': 0.67; 'that,': 0.68; 'matter': 0.69;
'currently,': 0.69; 'did,': 0.69; 'discussing': 0.69; 'refers':
0.69; 'you.': 0.70; 'games': 0.71; 'stand': 0.71; 'deal': 0.74;
'easy': 0.75; 'caught': 0.75; 'happens': 0.75; 'yourself': 0.75;
'features': 0.76; 'reliable': 0.77; 'breaking': 0.78;
'reference.': 0.81; '2021': 0.84; 'assumptions,': 0.84; 'caused.':
0.84; 'defend': 0.84; 'difference.': 0.84; 'this!': 0.84; 'type.':
0.84; 'differently': 0.91; 'brain': 0.93; 'magic': 0.93;
'production,': 0.93; 'keywords': 0.95
ARC-Seal: i=1; a=rsa-sha256; t=1622015307; cv=none;
d=strato.com; s=strato-dkim-0002;
b=Pe1qWzmnmx2KZ6PLf9YFbPY2UFKhyVNa2n2707q56XxixqEJz1ymCNZfK3juZdzRNl
EYqma5I0W+cQvp0K35Oby406EUVxte1Uw6DNremoUjB9tY6uZGOo3izZCLxJomCnGaR/
gLNj9hn2ZxRD3iPzxEbVM1NQmqCfNvOX59cjutCVmf9z8OVvTC4Y+joWd/wPwJztLEZS
wIK0Ii+2B2rpNWeBedrOPRYVQPywWCVFwl2rvLJSDbi2TTHgRnGeEoxSAERqKGPRz1KC
vRkDxrKgyC+L8mKqwWmBd21PTYnUH3ziCuT5H4mQ6SDicx9T9WVEoPZV2Hq/lt/E9fo7
FK2g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1622015307;
s=strato-dkim-0002; d=strato.com;
h=In-Reply-To:Date:Message-ID:From:References:To:Subject:Cc:Date:From:
Subject:Sender;
bh=O7L2pDlvq49WzCgSmn48U8eYhp2VPHTH++pqvrz7ZkA=;
b=mauFw26LFAaZl95b7WjYRul7eljtneOF+PyVXEDhQIjC4pDR07zOA5PFWDjJLsdHU6
kar19nmBTfWun23amHhIC9L6h4ZPtnswJ9paPeyj03UNUurHExHsRB+oK9e1VSyQAgTH
1Tm/BWonX9WUHyWnjOt3s6NN2qhTZGRTH//zGW8k6Aiyn84f7bRPKaJ1U+0CSaGuG1mb
Q2haEK8KRR8EgSjRN36nccYgTZlRqIWW+FAvu3+R0nGDMggYILbKpG4TlJvAvY0C1WHP
qRDdgp5YI8OBXuhAYdUfrYzcamwx+5fVycCVMN1wdA8ZVSm5+w7GnY+33+upf36N3kV2
i0bw==
ARC-Authentication-Results: i=1; strato.com;
dkim=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1622015307;
s=strato-dkim-0002; d=adminart.net;
h=In-Reply-To:Date:Message-ID:From:References:To:Subject:Cc:Date:From:
Subject:Sender;
bh=O7L2pDlvq49WzCgSmn48U8eYhp2VPHTH++pqvrz7ZkA=;
b=GNtJsLdE8cKt47Y5nKyzCsZR9m2B9pnODqCR6n6eFD2RqOuv8EVUKBA0ig0uda7bBG
up5bqdkfJarjeMN0DrrWyp2BY5M3BZ56b0LtvCqkC1dysh997on1vra7IVmXQ7YfvHMD
gb172wHxkTB7cj6G7Wf5IzigejE3h0i42sVzKuHfZDVu7BOK2VM4+ihcwymLM6DolttH
Qg1yaA1Vz7EmAf3/Oqm1TZflzTIntj9hx1Kr9LCeiFF7M/NRJMfKBVTvlwlcXFZSH+o7
0OcqyRHUx412flYDd4Zhkjr1tki8TtxlpO1T/Qff05R3sY/QH2Lp2c9HzRWSK3T7QEbv
+/9Q==
Authentication-Results: strato.com;
dkim=none
X-RZG-AUTH: ":O2kGeEG7b/pS1Ey9Rna9iAZFrfz26y6zbtmqiE/f0+LThi5xYO8s9RmVPkxvrwQpRPenk8HVxDf4aQ=="
X-RZG-CLASS-ID: mo00
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
In-Reply-To: <CAPTjJmq8gF=eszXtiykgdPP1e0gFyZaJpkgyPkMuvg+we+4wHA@mail.gmail.com>
Content-Language: de-DE
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: <13034d97-9e3c-5e2f-7f0c-2d49bbfa0582@adminart.net>
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>
<CAPTjJmq8gF=eszXtiykgdPP1e0gFyZaJpkgyPkMuvg+we+4wHA@mail.gmail.com>
 by: hw - Wed, 26 May 2021 07:48 UTC

On 5/25/21 10:32 AM, Chris Angelico wrote:
> 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.

Right, that is what it seemed.

> None of which is even slightly supported by evidence.

That's not true. Remember the change from version 2 to 3 and ask
yourself how likely it is that breaking things like that happens again.
You may find a statement from developers about a policy that changes
are to be announced a year before they go in, and that is evidence enough.

What you make of this policy and what it means to you is for you to
decide, but the evidence is clearly there.

>>> 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.

When I look at the error message, it seems to indicate that python knows
very well what kind of parameter is expected.

>>>> 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.

And you remain unable to show how python making it easy to mess up type
names is a likeable feature.

>>> 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.

I take it you can't stand it when someone thinks differently than you
do. Good for you that you have a kill file to protect you from
different thoughts and ideas.

> 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?

It looked unfinished to me because it doesn't even give an error message
when I assign something to a type name as if it was a variable.

Breaking things like that doesn't help, and it doesn't matter that it
happened a while ago because I still have to deal with the issues it caused.

That something has been around for a while doesn't have anything to do
with how finished or unfinished it may appear.

> The Go language didn't even *exist* before Python 3 - does
> that mean that Go is also unfinished?

Go is one of the games I never learned to play, though it seems kinda
interesting.

>> 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.

When it doesn't make a difference, then why doesn't python just use
keywords for types and avoids all this ambiguity?

> 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.

I'm not arguing against the language but discussing it with people who
are trying to defend it. I tried to use it yesterday and failed because
the documentation of a library I wanted to use it with is bad, and
because maybe it wasn't such a good library. I would use it with
another library for another purpose, but there is no documentation for
that library at all, so I can't use it. So currently, it's not looking
good for learning python.

Re: learning python ...

<c336675f-5b5e-4f9e-a421-f9af69cb4a5fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a37:7306:: with SMTP id o6mr43079260qkc.38.1622019749145;
Wed, 26 May 2021 02:02:29 -0700 (PDT)
X-Received: by 2002:ac8:44b1:: with SMTP id a17mr36159320qto.369.1622019749012;
Wed, 26 May 2021 02:02:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Wed, 26 May 2021 02:02:28 -0700 (PDT)
In-Reply-To: <mailman.357.1622015310.3087.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=146.200.61.243; posting-account=aKzvzQoAAAAnYB7N4xfKf_Ihdfau7aG5
NNTP-Posting-Host: 146.200.61.243
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> <13034d97-9e3c-5e2f-7f0c-2d49bbfa0582@adminart.net>
<CAPTjJmq8gF=eszXtiykgdPP1e0gFyZaJpkgyPkMuvg+we+4wHA@mail.gmail.com> <mailman.357.1622015310.3087.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c336675f-5b5e-4f9e-a421-f9af69cb4a5fn@googlegroups.com>
Subject: Re: learning python ...
From: breamore...@gmail.com (Mark Lawrence)
Injection-Date: Wed, 26 May 2021 09:02:29 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Mark Lawrence - Wed, 26 May 2021 09:02 UTC

On Wednesday, May 26, 2021 at 8:48:48 AM UTC+1, hw wrote:

> It looked unfinished to me because it doesn't even give an error message
> when I assign something to a type name as if it was a variable.
>

So unfinished that the complete morons employed at the companies listed here https://realpython.com/world-class-companies-using-python/ are using it. Or maybe they're just a little bit smarter than you are?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor