Re: Style for docstring

2022-04-25 Thread dn
On 26/04/2022 11.47, Rob Cliffe via Python-list wrote: > Well, de gustibus non est disputandum.  For me, the switch from the > imperative mode to the descriptive mode produces a mild cognitive > dissonance. Disagree! When coding, to whom?what are you talking? When writing documentation - same qu

Re: Style for docstring

2022-04-25 Thread Rob Cliffe via Python-list
Well, de gustibus non est disputandum.  For me, the switch from the imperative mode to the descriptive mode produces a mild cognitive dissonance. Best wishes Rob Cliffe On 25/04/2022 23:34, Cameron Simpson wrote: On 23Apr2022 03:26, Avi Gross wrote: We know some people using "professional" l

Re: Style for docstring

2022-04-25 Thread Mats Wichmann
On 4/25/22 16:34, Cameron Simpson wrote: > On 23Apr2022 03:26, Avi Gross wrote: >> We know some people using "professional" language make things shorteror >> talk from a point of view different than others and often in >> otherwise incomprehensible jargon. >> If a programmer is taking about the

Re: tail

2022-04-25 Thread dn
On 26/04/2022 10.54, Cameron Simpson wrote: > On 25Apr2022 08:08, DL Neil wrote: >> Thus, the observation that the OP may find that a serial, >> read-the-entire-file approach is faster is some situations (relatively >> short files). Conversely, with longer files, some sort of 'last chunk' >> appro

Re: tail

2022-04-25 Thread Cameron Simpson
On 25Apr2022 08:08, DL Neil wrote: >Thus, the observation that the OP may find that a serial, >read-the-entire-file approach is faster is some situations (relatively >short files). Conversely, with longer files, some sort of 'last chunk' >approach would be superior. If you make the chunk big enou

Re: Style for docstring

2022-04-25 Thread Cameron Simpson
On 23Apr2022 03:26, Avi Gross wrote: >We know some people using "professional" language make things shorteror >talk from a point of view different than others and often in >otherwise incomprehensible jargon. >If a programmer is taking about the algorithm that a function implements,  >then, yes,

Re: Verifying I installed Python correctly

2022-04-25 Thread Dennis Lee Bieber
On Mon, 25 Apr 2022 21:49:05 +0100, Barry declaimed the following: > > >> On 25 Apr 2022, at 21:14, Jack Dangler wrote: >> Have you tried >> >> python3 hello.py > >Will not work on windows. Python is always installed as python.exe and py.exe >only. > Microsoft Windows [Version 10.0.19044.164

Re: Verifying I installed Python correctly

2022-04-25 Thread Eryk Sun
On 4/25/22, Barry wrote: > >> On 25 Apr 2022, at 21:14, Jack Dangler wrote: > >> Have you tried >> >> python3 hello.py > > Will not work on windows. Python is always installed as python.exe and > py.exe only. Yes, except the app versions installed from the Microsoft Store do create appexec alias

Re: Verifying I installed Python correctly

2022-04-25 Thread Barry
> On 25 Apr 2022, at 21:14, Jack Dangler wrote: > >  >> On 4/24/22 13:59, Greg wrote: >> I am trying to get Hello World to appear under my directory. The files of >> >> *C:\Users\gd752>cd C:\google-python-exercises> python hello.py* >> *The system cannot find the path specified.* >> >> *C:\U

Re: Verifying I installed Python correctly

2022-04-25 Thread Jack Dangler
On 4/24/22 13:59, Greg wrote: I am trying to get Hello World to appear under my directory. The files of *C:\Users\gd752>cd C:\google-python-exercises> python hello.py* *The system cannot find the path specified.* *C:\Users\gd752>cd C:\google-python-exercises>* *The syntax of the command is in

Re: Verifying I installed Python correctly

2022-04-25 Thread Dennis Lee Bieber
tOn Sun, 24 Apr 2022 13:59:53 -0400, Greg declaimed the following: >I am trying to get Hello World to appear under my directory. The files of > >*C:\Users\gd752>cd C:\google-python-exercises> python hello.py* >*The system cannot find the path specified.* > >*C:\Users\gd752>cd C:\google-python-exe

Re: Verifying I installed Python correctly

2022-04-25 Thread Sunil KR via Python-list
cd C:\google-python-exercises> python hello.py this doesn't looks like a valid command. However, is it because a newline got swallowed by misformatting? For clarity, I am reproducing the correct version of the steps: cd /d  C:\google-python-exercises python hello.py The error is:  The system c

Re: Verifying I installed Python correctly

2022-04-25 Thread Barry
> On 25 Apr 2022, at 18:51, Greg wrote: > > I am trying to get Hello World to appear under my directory. The files of > > *C:\Users\gd752>cd C:\google-python-exercises> python hello.py* > *The system cannot find the path specified.* Use can use py instead of python as a command and it should

ANN: eGenix Antispam Bot for Telegram 0.3.0

2022-04-25 Thread eGenix Team
ANNOUNCING eGenix Antispam Bot for Telegram Version 0.3.0 A simple, yet effective bot implementation to address Telegram signup spam. This

Verifying I installed Python correctly

2022-04-25 Thread Greg
I am trying to get Hello World to appear under my directory. The files of *C:\Users\gd752>cd C:\google-python-exercises> python hello.py* *The system cannot find the path specified.* *C:\Users\gd752>cd C:\google-python-exercises>* *The syntax of the command is incorrect.* I installed version 3.1

Re: Receive a signal when waking or suspending?

2022-04-25 Thread Skip Montanaro
> https://duckduckgo.com/?t=ffab&q=python+up+time pointed-out the > "uptime — Cross-platform uptime library" > - TLDR; I'm not sure if "uptime" and "boot" relate only to a > 'cold-start' or if they include bringing the machine out of 'stand-by' > or 'hibernation' Yeah, that won't help. uptime(1) g

Re: Why no list as dict key?

2022-04-25 Thread Lars Liedtke
Thx, didn't see it that way yet. -- Lars Liedtke Software Entwickler Phone: Fax:+49 721 98993- E-mail: l...@solute.de solute GmbH Zeppelinstraße 15 76185 Karlsruhe Germany Marken der solute GmbH | brands of solute GmbH billiger.d

Re: Why no list as dict key?

2022-04-25 Thread Peter J. Holzer
On 2022-04-25 15:13:19 +0200, Lars Liedtke wrote: > May I stupidly ask, why one would want to use an iterable (even immutable) > as dict key? A string is also an immutable iterable, so this is probably even the most common case. As for more complex data structures: * Tuples or immutable dicts ar

Re: Why no list as dict key?

2022-04-25 Thread Lars Liedtke
May I stupidly ask, why one would want to use an iterable (even immutable) as dict key? I thought keys were meant to be something "singular". And yes you could also combine a string to be a key, and if you combine a string it would be somehow the same as a tuple. But anyways I still fail to se