Re: [Python-Dev] [Python-3000] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Guido van Rossum
Please use self.assertEqual() instead of self.failUnlessEqual() -- the assertEqual() form is much more common. Otherwise, good idea! On 7/11/07, Christian Heimes [EMAIL PROTECTED] wrote: Steven Bethard wrote: I'd probably go with something a little more restrictive, maybe:

Re: [Python-Dev] itertools addition: getitem()

2007-07-11 Thread Walter Dörwald
Giovanni Bajo wrote: On 09/07/2007 21.23, Walter Dörwald wrote: from ll.xist import parsers, xfind from ll.xist.ns import html e = parsers.parseURL(http://www.python.org;, tidy=True) print e.walknode(html.h2 xfind.hasclass(news))[-1] Google Adds Python Support to Google Calendar

Re: [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Thomas Heller
Christian Heimes schrieb: By the way the ctypes unit tests are causing a segfault on my machine: test_ctypes Warning: could not import ctypes.test.test_numbers: unpack requires a string argument of length 1 Segmentation fault Ubunutu 7.04 on i386 machine with an Intel P3. I can

Re: [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Guido van Rossum
On 7/11/07, Thomas Heller [EMAIL PROTECTED] wrote: Christian Heimes schrieb: By the way the ctypes unit tests are causing a segfault on my machine: test_ctypes Warning: could not import ctypes.test.test_numbers: unpack requires a string argument of length 1 Segmentation fault

[Python-Dev] SVN precommit hook

2007-07-11 Thread Thomas Wouters
I just got this traceback trying to do a rather large checkin: Transmitting file data

Re: [Python-Dev] SVN precommit hook

2007-07-11 Thread Thomas Wouters
On 7/11/07, Thomas Wouters [EMAIL PROTECTED] wrote: I just got this traceback trying to do a rather large checkin: Transmitting file data

Re: [Python-Dev] SVN precommit hook

2007-07-11 Thread Thomas Wouters
On 7/11/07, Thomas Wouters [EMAIL PROTECTED] wrote: libsvn._core.SubversionException: (Can't open file '/data/repos/projects/db/transactions/56255- 1.txn/props': Too many open files, 24) Fixed. The problem was that checkwhitespace.py wasn't closing the SVN streams it was reading. Added the

Re: [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Michael Foord
Guido van Rossum wrote: On 7/11/07, Thomas Heller [EMAIL PROTECTED] wrote: Christian Heimes schrieb: By the way the ctypes unit tests are causing a segfault on my machine: test_ctypes Warning: could not import ctypes.test.test_numbers: unpack requires a string argument of length 1

[Python-Dev] [PATCH] fixing 2.5.1 build with unicode and dynamic loading disabled

2007-07-11 Thread Alexander Neundorf
Hi, this is my first email to this list, I'm currently porting python to some platforms with limited capabilities and so I thought it would be a good idea to subscribe here. While doing the porting, I found two small problems in Python 2.5.1: If Py_USING_UNICODE is disabled, in Python/ast.c

Re: [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Chris McDonough
I have a very remedial question about how to fix test failures due to the side effects of string-unicode integration. The xmlrpc library uses explicit encoding to encode XML tag payloads to (almost always) utf8. Tag literals are not encoded. What would be the best way to mimic this behavior

Re: [Python-Dev] proposed attribute lookup optimization

2007-07-11 Thread Paul Pogonyshev
[I don't know why I didn't receive this mail, presumably spam filter at gmx.net sucks as always] Phillip J. Eby wrote: At 08:23 PM 7/8/2007 +0300, Paul Pogonyshev wrote: I would like to propose an optimization (I think so, anyway) for the way attributes are looked up. [...] [...] Again,

Re: [Python-Dev] [PATCH] fixing 2.5.1 build with unicode and dynamic loading disabled

2007-07-11 Thread Alexander Neundorf
On Wednesday 11 July 2007 15:01, Aahz wrote: On Wed, Jul 11, 2007, Alexander Neundorf wrote: A patch against 2.5.1 is attached. Patches to the list tend to get lost. Please post to SourceForge and then send the ID to python-dev. Done, it's #1752175 Alex

Re: [Python-Dev] SVN precommit hook

2007-07-11 Thread Martin v. Löwis
Fixed. The problem was that checkwhitespace.py wasn't closing the SVN streams it was reading. Added the 'svn_stream_close' call and my checkin got through. Should be safe to do massive checkins from now on ;-) Thanks for fixing it. Those of you having access to dinsdale, feel free to

Re: [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Guido van Rossum
On 7/11/07, Chris McDonough [EMAIL PROTECTED] wrote: I have a very remedial question about how to fix test failures due to the side effects of string-unicode integration. The xmlrpc library uses explicit encoding to encode XML tag payloads to (almost always) utf8. Tag literals are not

[Python-Dev] Subprocesses and SIGPIPE

2007-07-11 Thread Matthew Woodcraft
The documentation for the subprocess module says that it can be used as a replacement for shell pipelines, and gives an example. On *nix systems, cpython is set to ignore SIGPIPE, and this setting is inherited by child processes created by the subprocess module. This is nearly always not what you

Re: [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni

2007-07-11 Thread Steve Holden
Michael Foord wrote: Guido van Rossum wrote: On 7/11/07, Thomas Heller [EMAIL PROTECTED] wrote: Christian Heimes schrieb: By the way the ctypes unit tests are causing a segfault on my machine: test_ctypes Warning: could not import ctypes.test.test_numbers: unpack requires a string

[Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-11 Thread Andy C
(resending this now that I'm subscribed, not sure it made it through the moderation the first time) I'd like to request comments on this patch I submitted: https://sourceforge.net/tracker/index.php?func=detailaid=1739468group_id=5470atid=305470 There are many details given in the comments on

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-11 Thread Martin v. Löwis
Nick Coghlan has reviewed the patch and seems to think it's a good idea. Thomas Wouters also said he likes it, and I ran it by Guido earlier and he seemed to think the idea is good, although I don't think he has seen the implementation. See my comment: I must be missing the point of the