[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy
New submission from Yuriy Syrovetskiy : IPv4 operations may fail on IPv6 systems, and vice versa. So we have to create sockets with the proper address family. Maybe this behaviour could be incapsulated in socket object, but didn't find a good way to do it. No documentation changed, beca

[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: More correct description: IPv4 operations may fail on IPv6 systems, and vice versa; so we have to detect the proper address family before creating a socket. -- ___ Python tracker <http://bugs.python.

[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: On my computer, connect() on a UDP socket always finishes successfully. What's wrong? I tried that C example from man getaddrinfo(3). -- ___ Python tracker <http://bugs.python.org/is

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: Can the datagramHandler.host change during execution? If so, the address family of the socket can change. So, we should create a socket for every new message. Check my patch #2. Also I extended socket.create_connection to support UDP. -- Added

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: test_logging is not broken, but just fails. test test_logging failed -- Traceback (most recent call last): File "/home/cblp/my/cpython_default/Lib/test/test_logging.py", line 2903, in test_time self.assertEqual(f.formatTime(r), '1

[issue14902] test_logging failed

2012-05-24 Thread Yuriy Syrovetskiy
New submission from Yuriy Syrovetskiy : rev 152c78b94e41 test test_logging failed -- Traceback (most recent call last): File "/home/cblp/my/cpython_default/Lib/test/test_logging.py", line 2903, in test_time self.assertEqual(f.formatTime(r), '1993-04-21 08:03:00,123&#

[issue14902] test_logging failed

2012-05-24 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: My local timezone is Europe/Moscow, UTC+4, no daylight saving since 2011. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14902] test_logging failed

2012-07-03 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: @vinay.sajip My time.timezone is -14400. What is yours? -- ___ Python tracker <http://bugs.python.org/issue14902> ___ ___

[issue14902] test_logging failed

2012-07-03 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: And datetime.datetime.now().tzinfo is always None. -- ___ Python tracker <http://bugs.python.org/issue14902> ___ ___ Pytho