New submission from Ed Catmur :
Context: CentOS 7.8.2003, Python 3.8 from SCL. localhost has IPv4 and IPv6
bindings, IPv6 first:
$ python -c "import
socket;print(socket.getaddrinfo('localhost',0,type=socket.SOCK_STREAM))"
[(, , 6, '', ('::1',
New submission from Ed Catmur :
If a logging.FileHandler is configured with mode='w', or if logging.basicConfig
is called with filemode='w' (as suggested by the Basic Logging Tutorial
https://docs.python.org/3/howto/logging.html#logging-basic-tutorial)
and if some code