[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-19 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > "import child_directory" Then it's certainly an effect of the "import lock": http://docs.python.org/library/threading.html#importing-in-threaded-code In your case, the first call to encode('utf8') indirectly imports utf8.py, while the import lock is he

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-17 Thread Piotr Maślanka
Piotr Maślanka added the comment: I ripped some stuff from the project I'm working on, undependencing it on any my libraries. Can someone with similar conf(Win7 x86-64, Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32) confirm this? Directory configuratio

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please attach a simple script reproducing the perceived problem. -- components: +Library (Lib) -None nosy: +pitrou ___ Python tracker ___ _

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-17 Thread Brian Curtin
Changes by Brian Curtin : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-16 Thread Piotr Maślanka
Piotr Maślanka added the comment: I runned it over again with code: print 'Acquiring lock' self.loglock.acquire() print 'Attempting to convert' if type(text) == unicode: text = text.encode('utf8', errors='strict') print 'Opening '+threadspecific with open(threadspecific, 'ab') as x: x.write(tex

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-16 Thread Piotr Maślanka
New submission from Piotr Maślanka : Python 2.7.1(x86 MSI), binary downloaded from python.org, hangs quite reliably. Code: with open(threadspecific, 'ab') as x: txt = unicode(str_or_unicode_parameter).encode('utf8') x.write(txt+'\r\n') However, it doesn't hang if I insert a print statement b