[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-10-04 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: Have nothing else to say on top of what iritkatriel discovered, a double-check would be needed, but may be a pointless speed up, if MemoryHandler is impossible to work without a `target`. Fixing the no-target error is more important. Actually

[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-08-05 Thread Kostis Anagnostopoulos
New submission from Kostis Anagnostopoulos : The `logging.handlers.MemoryHandler.flush()` method acquire the lock even if target has not been set, and the method is a noop: ``` def flush(self): # (Docstring skipped) self.acquire() try: if self.target

[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode

2019-08-09 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: > > BTW, i went back to my code and pasted what seemed to cure the problem, > added in commit 2b99cec in my PR. But i don't have much time to track if it really works. I hope it will help you resolve the issue. Best,

[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode

2019-08-09 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: Dear Sanyam, My apologies, it's been almost a year that i don't need the fix for this code, my app has been graciously decommissioned, and i don;t have any time for it. Best, Kostis On Fri, 9 Aug 2019 at 21:35, Sanyam Khurana wrote: > >

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2019-02-21 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: The problem of not fixing this (and just add a suggestion in the docs saying that the user may re-implement this method) is that frequently this call is hidden at the core of many networking libraries. So monkey-patching is needed instead, which

[issue26543] imaplib noop Debug

2017-05-08 Thread Kostis Anagnostopoulos
Changes by Kostis Anagnostopoulos <ankos...@gmail.com>: -- pull_requests: +1605 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26543] imaplib noop Debug

2017-05-08 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: That is a show-stopper, and the patch works fine. Should I submit a PR with a special test-case with debug >= 3 just for this? -- nosy: +ankostis ___ Python tracker <rep...@bugs.python.org&

[issue11245] Implementation of IMAP IDLE in imaplib?

2017-05-07 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: Before merging `imaplib2` please consider making proper use of the Python's standard `logging` module. -- nosy: +ankostis ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-05-03 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: Just to remind that as it stands now(b39d4b1c6) it contains no API changes at all, so it should be considered for merge into 3.6.x line. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-03-22 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: > This is a new feature, so we can only push it to 3.7. As it stands now(b39d4b1c6) it hardly contains any change - just in the case of multiple intermediate errors AND final failure, the exception raised is a bit different. AFAICS it wo

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-03-17 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: > When the list of errors is passed as a second argument to the exception, how > is it rendered? This is how my latest ec887c0c3 looks on Linux: >>> import socket >>> socket.create_connection(('localhost', 12345))

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-03-08 Thread Kostis Anagnostopoulos
New submission from Kostis Anagnostopoulos: ## Context The utility method `socket.create_connection()` currently works like that: 1. resolve the destination-address into one or more IP(v4 & v6) addresses; 2. loop on each IP address and stop to the 1st one to work; 3. if none works, re-r