Re: [Python-Dev] should i put this on the bug tracker ?

2006-08-08 Thread Hye-Shik Chang
On 8/8/06, Bart Thate [EMAIL PROTECTED] wrote: hello python-dev, the following code hangs on FreeBSD 6.1-STABLE, Python 2.5b3 (r25b3:51041, Aug 5 2006, 20:46:57) Python 2.5 now uses system scope threads in FreeBSD just like in other platforms. So python may behave different for corner

Re: [Python-Dev] Google Summer of Code proposal: New class for work with binary trees AVL and RB as with the standard dictionary.

2006-04-24 Thread Hye-Shik Chang
On 4/25/06, Josiah Carlson [EMAIL PROTECTED] wrote: There exists various C and Python implementations of both AVL and Red-Black trees. For users of Python who want to use AVL and/or Red-Black trees, I would urge them to use the Python implementations. In the case of *needing* the speed of a

Re: [Python-Dev] Stream codecs and _multibytecodec

2006-04-20 Thread Hye-Shik Chang
On 4/21/06, Thomas Wouters [EMAIL PROTECTED] wrote: While merging the trunk changes into the p3yk branch, I discovered what I think is a bug in the stream codecs. It's easily reproduced in the trunk: in Lib/codecs.py, make the 'Codec' class new-style. Then, suddenly, test_codecs will crash

[Python-Dev] Inconsistency in 2.4.3 for __repr__() returning unicode

2006-03-26 Thread Hye-Shik Chang
We got an inconsistency for __repr__() returning unicode as reported in http://python.org/sf/1459029 : class s1: def __repr__(self): return '\\n' class s2: def __repr__(self): return u'\\n' print repr(s1()), repr(s2()) Until 2.4.2: \n \n 2.4.3: \n \\n \\n looks bit

Re: [Python-Dev] checkin r43015

2006-03-13 Thread Hye-Shik Chang
On 3/14/06, Jeff Epler [EMAIL PROTECTED] wrote: After the recent discussion about Coverity, I took a look at one of the checkins made, apparently based on output from their tool.

Re: [Python-Dev] Stateful codecs [Was: str object going in Py3K]

2006-02-19 Thread Hye-Shik Chang
On 2/19/06, Walter Dörwald [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Walter Dörwald wrote: Anyway, I've started implementing a patch that just adds codecs.StatefulEncoder/codecs.StatefulDecoder. UTF8, UTF8-Sig, UTF-16, UTF-16-LE and UTF-16-BE are already working. Nice :-)

Re: [Python-Dev] any support for a methodcaller HOF?

2006-02-03 Thread Hye-Shik Chang
On 2/4/06, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Fri, 3 Feb 2006 07:00:26 -0800, Alex Martelli [EMAIL PROTECTED] wrote: I understand your worry re the syntax issue. So what about Michael Hudson's placeholder class idea, where X[1] returns the callable that will do x[1] when

[Python-Dev] ctypes patch (was: (libffi) Re: Copyright issue)

2006-02-02 Thread Hye-Shik Chang
On 1/30/06, Martin v. Löwis [EMAIL PROTECTED] wrote: Hye-Shik Chang wrote: I did some work to make ctypes+libffi compacter and liberal. http://openlook.org/svnpublic/ctypes-compactffi/ (svn) I removed sources/gcc and put sources/libffi copied from gcc 4.0.2. And removed all automake

Re: [Python-Dev] (libffi) Re: Copyright issue

2006-01-30 Thread Hye-Shik Chang
On 1/30/06, Martin v. Löwis [EMAIL PROTECTED] wrote: Well done! Would you like to derive a Python patch from that? Yup. I'll do. On 1/30/06, Thomas Heller [EMAIL PROTECTED] wrote: That's great! Would you like to integrate these changes into to ctypes CVS repository yourself? I indend to do

Re: [Python-Dev] (libffi) Re: Copyright issue

2006-01-29 Thread Hye-Shik Chang
On 1/28/06, Martin v. Löwis [EMAIL PROTECTED] wrote: Thomas Heller wrote: Can anyone of the python-dev core team comment: can we live with the GPL licensed aclocal.m4 file, in the source distribution and in SVN? My understanding that doing so would be in violation of section 2b) of the

Re: [Python-Dev] ElementTree - Why not part of the core? (fwd)

2005-12-12 Thread Hye-Shik Chang
On 12/12/05, Fredrik Lundh [EMAIL PROTECTED] wrote: Fredrik Lundh wrote: just one question: where do you want [to put] the vendor checkins ? I'm using a flat kits namespace in my own repositories, e.g. anyone has a better name? anyone ? I think contrib is somewhat conventional for

[Python-Dev] LXR site for Python CVS

2005-10-21 Thread Hye-Shik Chang
Hi, I just set up a LXR instance for Python CVS for my personal use: http://pxr.openlook.org/pxr/ If you find it useful, feel free to use the site. :) The source files will be updated twice a day. Hye-Shik ___ Python-Dev mailing list

Re: [Python-Dev] test_cmd_line failure on Kubuntu 5.10 with GCC 4.0

2005-10-08 Thread Hye-Shik Chang
On 10/8/05, Nick Coghlan [EMAIL PROTECTED] wrote: Anyone else seeing any problems with test_cmd_line? I've got a few failures in test_cmd_line on Kubuntu 5.10 with GCC 4.0 relating to a missing \n line ending. Same problem here. (FreeBSD 6.0 with GCC 3.4.4) In my short inspection,

Re: [Python-Dev] Unicode charmap decoders slow

2005-10-06 Thread Hye-Shik Chang
On 10/6/05, M.-A. Lemburg [EMAIL PROTECTED] wrote: Hye-Shik Chang wrote: (encoding, fastmap codec) % ./python Lib/timeit.py -s s='a'*53*1024; e='iso8859_10_fc'; u=unicode(s, e) u.encode(e) 1000 loops, best of 3: 536 usec per loop (encoding, utf-8 codec) % ./python Lib/timeit.py

Re: [Python-Dev] Unicode charmap decoders slow

2005-10-05 Thread Hye-Shik Chang
On 10/5/05, M.-A. Lemburg [EMAIL PROTECTED] wrote: Of course, a C version could use the same approach as the unicodedatabase module: that of compressed lookup tables... http://aggregate.org/TechPub/lcpc2002.pdf genccodec.py anyone ? I had written a test codec for single byte

Re: [Python-Dev] Unicode charmap decoders slow

2005-10-05 Thread Hye-Shik Chang
On 10/6/05, M.-A. Lemburg [EMAIL PROTECTED] wrote: Hye-Shik, could you please provide some timeit figures for the fastmap encoding ? (before applying Walter's patch, charmap decoder) % ./python Lib/timeit.py -s s='a'*53*1024; e='iso8859_10'; u=unicode(s, e) s.decode(e) 100 loops, best of 3:

Re: [Python-Dev] Python code.interact() and UTF-8 locale

2005-09-13 Thread Hye-Shik Chang
On 9/11/05, Victor STINNER [EMAIL PROTECTED] wrote: Hi, I found a bug in Python interactive command line (program python alone: looks to be code.interact() function in code.py). With UTF-8 locale, the command ué returns u'\xc3\xa9' and not u'\xE9' . Remember: the french e with acute is

Re: [Python-Dev] Python code.interact() and UTF-8 locale

2005-09-13 Thread Hye-Shik Chang
On 9/13/05, Hye-Shik Chang [EMAIL PROTECTED] wrote: On 9/11/05, Victor STINNER [EMAIL PROTECTED] wrote: I found a bug in Python interactive command line (program python alone: looks to be code.interact() function in code.py). With UTF-8 locale, the command ué returns u'\xc3\xa9

Re: [Python-Dev] Shorthand for lambda

2005-03-24 Thread Hye-Shik Chang
On Wed, 23 Mar 2005 10:33:53 -0600 (CST), Ka-Ping Yee [EMAIL PROTECTED] wrote: Hey folks, from placeholder import _ numbers = [5, 9, 56, 34, 1, 24, 37, 89] filter(_ 30, numbers) [5, 9, 1, 24] map(_ + 10, numbers) [15, 19, 66, 44, 11, 34, 47, 99] Look