[issue15570] email.header.decode_header parses differently

2012-08-06 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov: The following script --- import email.header print(email.header.decode_header(foo =?windows-1251?Q?bar?=)) --- produces [(b'foo', None), (b'bar', 'windows-1251')] in Python 3.2 but [(b'foo ', None), (b'bar', 'windows-1251')] in Python 3.3.0b1

[issue15534] xmlrpc escaping breaks on unicode \u043c

2012-08-02 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov: For the following script import xmlrpc.client; from xmlrpc.client import escape text = ...\u043c.. print(escape(text)) Python 3.3.0b1 produces ...ь..lt;... whereas Python 3.2 ...ь

[issue15524] Dict items() ordering varies across interpreter invocations

2012-08-01 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov: The following line prints different things each time you run it: python3 -c print(', '.join({ '1': '2', '3': '4' }.keys())) The output is either 1, 3 or 3, 1. Is such indeterministic behavior intentional ? Using Python 3.3.0b1 (default, Aug 1 2012, 06

[issue14648] Attempt to format ascii and non-ascii strings together fails with ... UCS2 ...

2012-04-23 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov dmi...@targeted.org: Using Python 3.3.0a2 (default, Apr 1 2012, 19:34:58) [MSC v.1500 64 bit (AMD64)] on win32. This line of code {0:s}{1:s}.format(ABC, \u0410\u0411\u0412) results in SystemError: Cannot copy UCS2 characters into a string of ascii

[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov dmi...@targeted.org: If you request Event.wait(x), the call consistently returns in less than x seconds. Sample: - from threading import Event from time import time e = Event() before = time() e.wait

[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Dmitry Dvoinikov
Dmitry Dvoinikov dmi...@targeted.org added the comment: You are right, sorry. It's Windows XP Prof, Python 3.2a2. The differences in OS may be the cause, but the problem doesn't appear in 3.1 on the same machine. -- ___ Python tracker rep

[issue4171] SSL handshake fails after TCP connection in getpeername()

2010-05-08 Thread Dmitry Dvoinikov
Dmitry Dvoinikov dmi...@targeted.org added the comment: Checked out and built revision 80956 of py3k against OpenSSL 0.9.8n. Here is the banner: Python 3.2a0 (py3k:80956, May 8 2010, 11:31:45) [MSC v.1500 32 bit (Intel)] on win32 Now, the breaking script appears not to be breaking any more

[issue4171] SSL handshake fails after TCP connection in getpeername()

2010-05-07 Thread Dmitry Dvoinikov
Dmitry Dvoinikov dmi...@targeted.org added the comment: Well, I'm sorry to bring this up again, but the problem persists with Python 3.1.2 (x86, Windows XP). The difference with the test script behaviour is that now it doesn't break every time. Perhaps this is the reason I said the problem

[issue4171] SSL handshake fails after TCP connection in getpeername()

2010-04-25 Thread Dmitry Dvoinikov
Dmitry Dvoinikov dmi...@targeted.org added the comment: The problem does not reproduce in 3.1.1 nor in 3.1.2 (either x86 or x64). Antoine Pitrou пишет: Antoine Pitrou pit...@free.fr added the comment: What happens if you remove the call to settimeout()? Also, it would be nice if you could

[issue4171] SSL handshake fails after TCP connection in getpeername()

2008-11-09 Thread Dmitry Dvoinikov
Dmitry Dvoinikov [EMAIL PROTECTED] added the comment: 1.py == test.py obviously :) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4171 ___ ___ Python-bugs-list

[issue4171] SSL handshake fails after TCP connection in getpeername()

2008-11-09 Thread Dmitry Dvoinikov
Dmitry Dvoinikov [EMAIL PROTECTED] added the comment: Same thing on Python 3.0rc2: C:\TEMPpython test.py worked so far Traceback (most recent call last): File 1.py, line 23, in module test_handshake(address, False) File 1.py, line 17, in test_handshake ssl.do_handshake() File C

[issue4171] SSL handshake fails after TCP connection in getpeername()

2008-10-22 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: If I connect a TCP socket s using regular s.connect(), then wrap it using ssl.wrap_socket(s) and call do_handshake on the resulting SSL socket, handshake fails in ssl.py:320 with AttributeError: 'NoneType' object has no attribute

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2008-10-21 Thread Dmitry Dvoinikov
Changes by Dmitry Dvoinikov [EMAIL PROTECTED]: -- nosy: +ddvoinikov ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3890 ___ ___ Python-bugs-list mailing

[issue3613] base64.encodestring does not actually accept strings

2008-08-20 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: This quote from base64.py: --- bytes_types = (bytes, bytearray) # Types acceptable as binary data ... def encodestring(s): Encode a string into multiple lines of base-64 data. Argument and return value are bytes

[issue3614] typo in xmlrpc.client

2008-08-20 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: In xmlrpc.client:1204: --- headers = {} if extra_headers: for key, val in extra_headers: header[key] = val --- shouldn't it read --- headers[key] = val ^ --- ? Otherwise it bails out with --- NameError

[issue2833] __exit__ silences the active exception

2008-05-12 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: If a context manager is used within exception handling block, the active exception is silenced after the context block completes and __exit__ exits. try: raise Exception(foo) except: with SomeContextManager(): pass

[issue2832] Line numbers reported by extract_stack are offset by the #-*- encoding line

2008-05-11 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: Stack trace information extracted with traceback.extract_stack is incorrect in that the #-*- line causes double counting. For example: #comment from traceback import extract_stack print(this is line, extract_stack()[-1][1]) prints