Re: Help: PYMALLOC_DBUG and PIL

2012-07-05 Thread tom z
Thanks Roman. of course, i use PYMALLOC_DEBUG with PYMALLOC. -- http://mail.python.org/mailman/listinfo/python-list

Help: PYMALLOC_DBUG and PIL

2012-07-04 Thread tom z
Hi~ all, I encounter a odd problem, when i compile Python with PYMALLOC_DEBUG, the PIL module can't work fine, it always make core-dump like this [Switching to Thread 182897301792 (LWP 16102)] 0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804 804 if ((pool

Help: python unicode

2011-02-17 Thread tom z
Hi all~ My script can't work.I've changed my defaultencoding from 'ascii' to 'utf-8',but Python also raises a 'UnicodeEncodeError' error. the error likes this: >>> s=u'La Pe\xf1a' >>>print s UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 5: ... And in my script, the