Change by Kirill Pinchuk :
--
keywords: +patch
pull_requests: +26344
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27890
___
Python tracker
<https://bugs.python.org/issu
New submission from Kirill Pinchuk :
Hi. I've been using this snippet for years and believe that it would be a nice
addition to pathlib's functionality.
Basically, it allows constructing path relative to the current file (instead of
cwd). Comes quite handy when you're work
Kirill Pinchuk added the comment:
Oh, sorry bad wording.
The current implementation has reconnection logic only for UNIX sockets
The patch adds reconnection logic for UDP/TCP sockets as well.
I've done it with minimal changes to the existing code to accomplish that. And
probably it c
Kirill Pinchuk added the comment:
UPD: right now it has reconnection logic for unixsocket but not for tcp/udp
--
___
Python tracker
<https://bugs.python.org/issue44
New submission from Kirill Pinchuk :
Probably we should make the behavior of SysLogHandler consistent with other
Socket handlers.
Right now SocketHandler and DatagramHandler implement such behavior:
1) on `close` set `self.socket = None`
2) when trying to send - make socket when it is None