Piotr Maślanka piotr.masla...@henrietta.com.pl 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
New submission from Piotr Maślanka piotr.masla...@henrietta.com.pl:
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
Piotr Maślanka piotr.masla...@henrietta.com.pl 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