Re: for -- else: what was the motivation?

2022-10-14 Thread Rob Cliffe via Python-list
I too have occasionally used for ... else.  It does have its uses. But oh, how I wish it had been called something else more meaningful, whether 'nobreak' or whatever.  It used to really confuse me.  Now I've learned to mentally replace "else" by "if nobreak", it confuses me a bit less. Rob Cl

systemd Re: Find the path of a shell command

2022-10-14 Thread Weatherby,Gerard
Only the first one or two require more work. The rest are your copy-pastes from the last time you did one. Typically I only have to changed descriptions, the executable in the *service and the timing in the *timer. They’re lot more readable and flexible than the cronjobs. From: Python-list on

Re: Find the path of a shell command

2022-10-14 Thread Albert-Jan Roskam
On Oct 14, 2022 18:19, "Peter J. Holzer" wrote: On 2022-10-14 07:40:14 -0700, Dan Stromberg wrote: > Alternatively, you can "ps axfwwe" (on Linux) to see environment > variables, and check what the environment of cron (or similar) is.  It > is this environment (mostly) that

Re: Find the path of a shell command

2022-10-14 Thread Peter J. Holzer
On 2022-10-14 07:40:14 -0700, Dan Stromberg wrote: > Alternatively, you can "ps axfwwe" (on Linux) to see environment > variables, and check what the environment of cron (or similar) is. It > is this environment (mostly) that cronjobs will inherit. The simplest (and IMHO also most reliable) way t

Re: Find the path of a shell command

2022-10-14 Thread Dan Stromberg
On Wed, Oct 12, 2022 at 11:13 AM Paulo da Silva < p_d_a_s_i_l_v_a...@nonetnoaddress.pt> wrote: > Hi! > > The simple question: How do I find the full path of a shell command > (linux), i.e. how do I obtain the corresponding of, for example, > "type rm" in command line? > > The reason: > I have pyth

Re: What might suddenly provoke this poplib error?

2022-10-14 Thread Peter J. Holzer
[The OP has stated that the problem has been fixed. The following are generic comments about troubleshooting.] On 2022-10-14 11:31:56 +1300, dn wrote: > On 14/10/2022 01.47, Chris Green wrote: > >File "/usr/lib/python3.10/poplib.py", line 157, in _getresp > > raise error_proto(res