Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Many alligators will be slain, but the swamp will remain.


devel / comp.lang.python / Re: Question(s)

SubjectAuthor
* Re: Question(s)o1bigtenor
`- Re: Question(s)Dan Purgert

1
Re: Question(s)

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: o1bigte...@gmail.com (o1bigtenor)
Newsgroups: comp.lang.python
Subject: Re: Question(s)
Date: Thu, 26 Oct 2023 07:34:25 -0500
Lines: 69
Message-ID: <mailman.84.1698323705.3828.python-list@python.org>
References: <CAPpdf58WXyJs+Rd_GnbS-6dW8bPNt5DsojnVN5_ep+ebNx36Pw@mail.gmail.com>
<58b56dbe-646c-4a94-8102-ac2cf6efe233@tompassin.net>
<CAPpdf5_WVe07YVm-dZVV1mpZSWB6v4Z0itRsfYxYVdt8bWt0Ng@mail.gmail.com>
<da70b32a-28a3-4a7d-a403-53906cade994@tompassin.net>
<CAPTjJmoEfqBYrHh15X3hLqUAAZuTma5FrQyUFjFD8k659ObkEw@mail.gmail.com>
<CAPpdf59T8dYTwcWZS88xhDgnWpDK4MBW0Mss59_b3OuJ9cAkAg@mail.gmail.com>
<CAPTjJmqwsQetdY-s4Gyqt5Dv0NacbTLY_TdJuW5rA-w3RAmSuA@mail.gmail.com>
<CAPpdf58TP+CP8Bkj_bTm3Y=vrxBFLNMR43TjO3tRnu+DZ4PjAg@mail.gmail.com>
<2968ccb6-21e0-2e29-29c8-1c0803fe55e8@gmail.com>
<CAPpdf5-e=tcPtLdps+gjEjtA2dJn2GbxtAimaX9JTBqwnh9T-Q@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de Dq1pnjh7xm7sO8McsQIyzAc8R7saGG/crDfd/03mqCAw==
Cancel-Lock: sha1:3gCkCgDJR2fe0ndHG7aZaACFyVE= sha256:MITl1caiCeCNU5dyJ3uIdvoiDMVStNQpp62ZH/T+PSc=
Return-Path: <o1bigtenor@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=TcutFMmR;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'looks': 0.02; '2023':
0.07; 'assumes': 0.07; 'debugging': 0.07; 'interacting': 0.07;
'lets': 0.07; 'modules': 0.07; 'python.': 0.08; 'cc:addr:python-
list': 0.09; 'idle': 0.09; 'memory.': 0.09; 'threads': 0.09;
'timing': 0.09; 'tutorial': 0.12; 'cc:no real name:2**0': 0.14;
'import': 0.15; 'syntax': 0.15; '(it': 0.16; 'arduino': 0.16;
'encounter': 0.16; 'functions,': 0.16; 'grasp': 0.16; "hadn't":
0.16; 'inspecting': 0.16; 'interpreter': 0.16; 'issue!': 0.16;
'joy': 0.16; 'micropython': 0.16; 'o1bigtenor': 0.16; 'remember,':
0.16; 'slow': 0.16; 'solve,': 0.16; 'subset': 0.16;
'suggestions?': 0.16; 'syntax,': 0.16; 'waves': 0.16; 'wrote:':
0.16; 'problem': 0.16; 'python': 0.16; "can't": 0.17;
'subject:Question': 0.19; 'cc:addr:python.org': 0.20; "i've":
0.22; 'code': 0.23; 'run': 0.23; 'list,': 0.24; 'anything': 0.25;
'python,': 0.25; 'stuff': 0.25; 'cc:2**0': 0.25; 'programming':
0.25; 'anyone': 0.25; 'seems': 0.26; 'again,': 0.26; 'organizing':
0.26; "isn't": 0.27; 'bit': 0.27; 'done': 0.28; 'etc': 0.28;
'output': 0.28; 'ideas': 0.28; 'wrong': 0.28; 'error': 0.29;
'code,': 0.31; 'program': 0.31; 'think': 0.32; 'bridge': 0.32;
'feed': 0.32; 'objects': 0.32; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; "i'm": 0.33; 'there':
0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'trying': 0.35; 'following': 0.35; 'from:addr:gmail.com': 0.35;
'errors': 0.36; 'functions': 0.36; 'those': 0.36; 'using': 0.37;
"it's": 0.37; 'way': 0.38; 'thanks': 0.38; 'quite': 0.39; 'list':
0.39; 'use': 0.39; 'wed,': 0.39; 'beginning': 0.40; 'ide': 0.40;
'learn': 0.40; 'something': 0.40; 'want': 0.40; 'try': 0.40;
'michael': 0.60; 'physical': 0.60; 'tell': 0.60; 'method': 0.61;
'seen': 0.62; '25,': 0.62; 'come': 0.62; 'true': 0.63; 'ever':
0.63; 'once': 0.63; 'complete': 0.64; 'full': 0.64; 'accessing':
0.64; 're:': 0.64; 'subject:(': 0.64; 'your': 0.64; 'tool': 0.65;
'well': 0.65; 'let': 0.66; 'time.': 0.66; 'shows': 0.67; 'back':
0.67; 'heard': 0.67; 'live': 0.68; 'url:index': 0.68; 'change.':
0.69; 'square': 0.69; 'interesting': 0.71; "you'll": 0.73; 'easy':
0.74; 'tools': 0.74; 'watch': 0.76; 'cross': 0.76; 'quickly':
0.80; 'known': 0.84; 'catch': 0.84; 'eventually': 0.84; 'sensors':
0.84; "world'": 0.84; 'down,': 0.91; 'errors,': 0.91; 'cut': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1698323702; x=1698928502; darn=python.org;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=b3xVfYCCOumFpf6QMpWIat/jaIc4ngyMo5ZlaCbB8RQ=;
b=TcutFMmRvo+W/BSrmLaAMC4znCb0f+6PYo6npOFFBh9NPk+hvVmhaNJAHox9mYjIaR
/suoXAUHgm4rTHDNB9tRtHpDUw6VCWk4aoSq/RBNsOzmZSGpEj+8fDi5pcHzAY7OOBeL
wg97gI5o2ohxsb1aw84QYw2QYBkow2l7XB7pT2wPMkjCWUm+CVwW0ssZCmAIQTSzlWIi
QVMyobUP9DzCMdK+q6Hn744A64iDlcr3xl9CQsRBue/quIdBxahL7jBVxKARXA9kkGnz
YIqkXHGkB+351VCYrZpQsVaFnFdT5fS+16mI6BKxRuY0Yjh12saW3/bd+6KsOHrFuQyN
cu4Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1698323702; x=1698928502;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=b3xVfYCCOumFpf6QMpWIat/jaIc4ngyMo5ZlaCbB8RQ=;
b=l/beVm2mwb+BwJgL/ZlvN6YS+nA5Jd17pjrY2xg+5bEfoehyY7d8sPJwUKFd4zrbYi
WH0bW6Z2M8LZAtBBGRoOG+LtObeV1sG52acPy00EjJhRdL8ez6qCP1hkaLqP3H3kwuhF
aX1pTTOVZRr/hbsNipXH/ejFkvXA+cQc7giN8OZFdm3TzmLGpJ4snD347YfDDZotn+Q5
j0CGxB0Wkqe2TaxAg7euBilqHgWfh9Q3dPBvE7yXn7i065KiYVHZpZlL2bd2SIE/4w27
fZXF5DqIrlS7a9xYhK93D/4rdRa/0NUw61/4qKbzy+gmGNK3+T06oBZ98SW3Bzl97dqP
FFMg==
X-Gm-Message-State: AOJu0YzabSXQMDEbhM5Baqc2USnFaBJByoAwm1gP0CnEFrvyloJ1pNEj
u+/cdHf/0XnGuDdoqfuw03r2xE/GBo8JNfe28sw=
X-Google-Smtp-Source: AGHT+IHKDeXquVPEiX5ZvCuWounLGnMCfOF8Ye0uH7EIL02en9hDogUbNdG8KFZNR2JcOS81J0WWldAkPuGeORi8d5g=
X-Received: by 2002:a2e:8e2a:0:b0:2b5:7f93:b3b0 with SMTP id
r10-20020a2e8e2a000000b002b57f93b3b0mr11278939ljk.17.1698323701886; Thu, 26
Oct 2023 05:35:01 -0700 (PDT)
In-Reply-To: <2968ccb6-21e0-2e29-29c8-1c0803fe55e8@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: <CAPpdf5-e=tcPtLdps+gjEjtA2dJn2GbxtAimaX9JTBqwnh9T-Q@mail.gmail.com>
X-Mailman-Original-References: <CAPpdf58WXyJs+Rd_GnbS-6dW8bPNt5DsojnVN5_ep+ebNx36Pw@mail.gmail.com>
<58b56dbe-646c-4a94-8102-ac2cf6efe233@tompassin.net>
<CAPpdf5_WVe07YVm-dZVV1mpZSWB6v4Z0itRsfYxYVdt8bWt0Ng@mail.gmail.com>
<da70b32a-28a3-4a7d-a403-53906cade994@tompassin.net>
<CAPTjJmoEfqBYrHh15X3hLqUAAZuTma5FrQyUFjFD8k659ObkEw@mail.gmail.com>
<CAPpdf59T8dYTwcWZS88xhDgnWpDK4MBW0Mss59_b3OuJ9cAkAg@mail.gmail.com>
<CAPTjJmqwsQetdY-s4Gyqt5Dv0NacbTLY_TdJuW5rA-w3RAmSuA@mail.gmail.com>
<CAPpdf58TP+CP8Bkj_bTm3Y=vrxBFLNMR43TjO3tRnu+DZ4PjAg@mail.gmail.com>
<2968ccb6-21e0-2e29-29c8-1c0803fe55e8@gmail.com>
 by: o1bigtenor - Thu, 26 Oct 2023 12:34 UTC

On Wed, Oct 25, 2023 at 10:19 AM Michael Torrie via Python-list
<python-list@python.org> wrote:
>
> On 10/25/23 05:51, o1bigtenor via Python-list wrote:
> > Looks like I have another area to investigate. (grin!)
> > Any suggestions?
>
> Seems to me you're trying to run before you have learned to walk.
>
> Slow down, go to the beginning and just learn python, write some code,
> see if it runs. Go through the tutorial at
> https://docs.python.org/3/tutorial/index.html

Interesting - - - - ". . . see if it runs." - - - that's the issue!
When the code is accessing sensors there isn't an easy way to
check that the code is working until one has done the all of the
physical construction. If I'm trying to control a pulsation system
using square waves with distinct needs for timing etc I hadn't
seen any way of 'stepping through the code' (phrase you use later).

>
> Your first and most basic tool is the python interpreter. It will tell
> you when you try to run your code if you have syntax errors. It's true
> that some errors the linters will catch won't show up as syntax errors,
> but cross the bridge when you get to it. Once you have a basic grasp of
> Python syntax, you can begin using some of the tools Python has for
> organizing code: Functions and modules (eventually packages).
> Eventually when your logic is placed neatly into functions, you can then
> write other python programs that import those functions and feed
> different parameters to them and test that the output is what you
> expect. That is known as a test.
>
> Nothing wrong with geany as an editor. However, you might find the
> Python Idle IDE useful (it usually installs with Python), as it lets you
> work more interactively with your code, inspecting and interacting with
> live python objects in memory. It also integrates debugging
> functionality to let you step through your code one line at a time and
> watch variables and how they change.

I have been following this list for some time. Don't believe that I've ever
seen anything where anyone was referred to 'Idle'. In reading other user
group threads I have heard lots about java and its ide - - - don't remember,
again, any re: an ide for python.
Even in maker threads - - - say for arduino - - its 'use this cut and
paste method
of programming' with no mention of any kind of ide when it was microPython - -
although being a subset of python it Idle may not work with it.
>
> When you encounter isses with your code (syntax or logical) that you
> can't solve, you can come to the list, show your code and the full
> output of the interpreter that shows the complete error message and back
> trace and I think you'll get a lot of helpful responses.
> --

That was the plan.

My problem is that I'm needing to move quite quickly from 'hello, world' to
something quite a bit more complex. Most of the instruction stuff I've run
into assumes that one is programming only for the joy of learning to
program where I've got things I want to do and - - - sadly - - - they're
not sorta like the run of the mill stuff.

Oh well - - - I am working on things!

Thanks for the ideas and the assistance!

Regards

Re: Question(s)

<slrnujlncr.2f4.dan@djph.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dan...@djph.net (Dan Purgert)
Newsgroups: comp.lang.python
Subject: Re: Question(s)
Date: Thu, 26 Oct 2023 21:42:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <slrnujlncr.2f4.dan@djph.net>
References: <CAPpdf58WXyJs+Rd_GnbS-6dW8bPNt5DsojnVN5_ep+ebNx36Pw@mail.gmail.com>
<58b56dbe-646c-4a94-8102-ac2cf6efe233@tompassin.net>
<CAPpdf5_WVe07YVm-dZVV1mpZSWB6v4Z0itRsfYxYVdt8bWt0Ng@mail.gmail.com>
<da70b32a-28a3-4a7d-a403-53906cade994@tompassin.net>
<CAPTjJmoEfqBYrHh15X3hLqUAAZuTma5FrQyUFjFD8k659ObkEw@mail.gmail.com>
<CAPpdf59T8dYTwcWZS88xhDgnWpDK4MBW0Mss59_b3OuJ9cAkAg@mail.gmail.com>
<CAPTjJmqwsQetdY-s4Gyqt5Dv0NacbTLY_TdJuW5rA-w3RAmSuA@mail.gmail.com>
<CAPpdf58TP+CP8Bkj_bTm3Y=vrxBFLNMR43TjO3tRnu+DZ4PjAg@mail.gmail.com>
<2968ccb6-21e0-2e29-29c8-1c0803fe55e8@gmail.com>
<CAPpdf5-e=tcPtLdps+gjEjtA2dJn2GbxtAimaX9JTBqwnh9T-Q@mail.gmail.com>
<mailman.84.1698323705.3828.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 Oct 2023 21:42:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ef24213471b0aafda3a2fcc7274b251b";
logging-data="1972983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A44LMxApgVbAhUJbeg5PLjyEggoTOs/0="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:kJwykJRxulhSxSeemKaytGwnlEM=
 by: Dan Purgert - Thu, 26 Oct 2023 21:42 UTC

On 2023-10-26, o1bigtenor wrote:
> On Wed, Oct 25, 2023 at 10:19 AM Michael Torrie via Python-list
><python-list@python.org> wrote:
>>
>> On 10/25/23 05:51, o1bigtenor via Python-list wrote:
>> > Looks like I have another area to investigate. (grin!)
>> > Any suggestions?
>>
>> Seems to me you're trying to run before you have learned to walk.
>>
>> Slow down, go to the beginning and just learn python, write some code,
>> see if it runs. Go through the tutorial at
>> https://docs.python.org/3/tutorial/index.html
>
> Interesting - - - - ". . . see if it runs." - - - that's the issue!
> When the code is accessing sensors there isn't an easy way to
> check that the code is working until one has done the all of the
> physical construction. If I'm trying to control a pulsation system
> using square waves with distinct needs for timing etc I hadn't
> seen any way of 'stepping through the code' (phrase you use later).

You use a hardware debugger then ... and if you're talking hardware,
chances are you're also not talking Python (yes, yes, I know
"CircuitPython" is a thing, or was it MicroPython?)

> [...]
> Even in maker threads - - - say for arduino - - its 'use this cut and
> paste method of programming' with no mention of any kind of ide when
> it was microPython - - although being a subset of python it Idle may
> not work with it.

Bearing in mind, of course, that "Arduino" is basically "Programming for
dummies" level of stuff usually (i.e. people just getting their feet
wet). It's meant to be a relatively "easy" introduction for students /
hobbiests / non-programmers into the world of programming for
microcontrollers.

> [...]
> My problem is that I'm needing to move quite quickly from 'hello, world' to
> something quite a bit more complex. Most of the instruction stuff I've run
> into assumes that one is programming only for the joy of learning to
> program where I've got things I want to do and - - - sadly - - - they're
> not sorta like the run of the mill stuff.

Sounds like you've been reading instructables :)

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor