Re: ping script

2022-02-27 Thread 황병희
Dear Barry, Barry Scott writes: >> [...] > This is correct python3.org is only setup for email. > Use the host and dig commands to check for yourself. It is very amazing! Thanks for explanation! > Compare > > $ host python.org > > with > > $ host pyth

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Barry
> On 27 Feb 2022, at 18:36, Philip Bloom via Python-list > wrote: > > Hello, > > First time mailing and looking for help/guidance. Hopefully not too in the > wrong place. > > We've had an app with logging to a /var/log for many years through > logging.sysloghandler. Recently, though, I no

Re: Timezone for datetime.date objects

2022-02-27 Thread Chris Angelico
On Mon, 28 Feb 2022 at 08:51, Cameron Simpson wrote: > > On 27Feb2022 11:16, Morten W. Petersen wrote: > >I was initially using the date object to get the right timespan, but > >then > >found that using the right timezone with that was a bit of a pain. So I > >went for the datetime object instea

Re: Timezone for datetime.date objects

2022-02-27 Thread Cameron Simpson
On 27Feb2022 11:16, Morten W. Petersen wrote: >I was initially using the date object to get the right timespan, but >then >found that using the right timezone with that was a bit of a pain. So I >went for the datetime object instead, specifying 0 on hour, minute and >second. > >What's the thinki

Re: One-liner to merge lists?

2022-02-27 Thread Peter Otten
On 27/02/2022 17:28, Chris Angelico wrote: On Mon, 28 Feb 2022 at 03:24, MRAB wrote: On 2022-02-27 08:51, Barry Scott wrote: On 22 Feb 2022, at 09:30, Chris Angelico wrote: On Tue, 22 Feb 2022 at 20:24, Frank Millman mailto:fr...@chagford.com>> wrote: Hi all I think this should be a s

Re: Aw: PYT - How can I subscribe to a topic in the mailing list?

2022-02-27 Thread Ethan Furman
On 2/21/22 3:19 AM, vanyp wrote: > The option to filter by topic is offered in the mailing list subscription customization page, although > no option list is given. Topics may have been a project that was never implemented. Topics are not currently enabled. I suspect for them to be useful, pe

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Dennis Lee Bieber
On Sun, 27 Feb 2022 14:17:39 -0500, Dennis Lee Bieber declaimed the following: APOLOGIES -- I thought I KILLED the draft message, not sent it... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.o

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Philip Bloom via Python-list
Thanks. Had tried it with no address, which defaults to ('localhost', '514') as well as address='/var/run/syslog' which had been working previously, and the doc recommends as: For example, on Linux it’s usually ‘/dev/log’ but on OS/X it’s ‘/var/run/syslog’. You’ll need to check your platform and u

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Dennis Lee Bieber
On Sun, 27 Feb 2022 08:34:21 -0800, Philip Bloom declaimed the following: > >sys_handler = SysLogHandler(address='/var/run/syslog') As I read the documentation, the address is supposed to be the NETWORK address of the machine to receive the log messages... https://docs.python.org/3/libr

Getting Syslog working on OSX Monterey

2022-02-27 Thread Philip Bloom via Python-list
Hello, First time mailing and looking for help/guidance. Hopefully not too in the wrong place. We've had an app with logging to a /var/log for many years through logging.sysloghandler. Recently, though, I noticed that it suddenly was getting no logs whatsoever over there and investigated, belie

Timezone for datetime.date objects

2022-02-27 Thread Morten W. Petersen
Hi. I'm working on a project where I need to query data for a given year, in the correct timezone. For accounting purposes. The code I worked on today is here, see also the version history: https://github.com/morphex/ethereum-classic-taxman/blob/main/generate_csv.py I was initially using the d

Re: One-liner to merge lists?

2022-02-27 Thread Chris Angelico
On Mon, 28 Feb 2022 at 03:24, MRAB wrote: > > On 2022-02-27 08:51, Barry Scott wrote: > > > > > >> On 22 Feb 2022, at 09:30, Chris Angelico wrote: > >> > >> On Tue, 22 Feb 2022 at 20:24, Frank Millman >> > wrote: > >>> > >>> Hi all > >>> > >>> I think this should be a

Re: One-liner to merge lists?

2022-02-27 Thread MRAB
On 2022-02-27 08:51, Barry Scott wrote: On 22 Feb 2022, at 09:30, Chris Angelico wrote: On Tue, 22 Feb 2022 at 20:24, Frank Millman mailto:fr...@chagford.com>> wrote: Hi all I think this should be a simple one-liner, but I cannot figure it out. I have a dictionary with a number of keys,

Re: ping script

2022-02-27 Thread Barry Scott
> On 27 Feb 2022, at 13:53, Byung-Hee HWANG wrote: > > simple ping check script with python3 (Python 3.9.2) > tested under Debian 11 Bullseye: > > soyeomul@penguin:~/gitlab/test$ ./fping.py localhost > ok > soyeomul@penguin:~/gitlab/test$ ./fping.py python.org > ok > soyeomul@penguin:~/gitlab

ping script

2022-02-27 Thread Byung-Hee HWANG
simple ping check script with python3 (Python 3.9.2) tested under Debian 11 Bullseye: soyeomul@penguin:~/gitlab/test$ ./fping.py localhost ok soyeomul@penguin:~/gitlab/test$ ./fping.py python.org ok soyeomul@penguin:~/gitlab/test$ ./fping.py python3.org python3.org: No address associated with host

Re: One-liner to merge lists?

2022-02-27 Thread Barry Scott
> On 22 Feb 2022, at 09:30, Chris Angelico wrote: > > On Tue, 22 Feb 2022 at 20:24, Frank Millman > wrote: >> >> Hi all >> >> I think this should be a simple one-liner, but I cannot figure it out. >> >> I have a dictionary with a number of keys, where each value