[Python-Dev] Strange segfault in Python threads and linux kernel 2.6

2005-01-18 Thread Donovan Baarda
G'day, I've Cc'ed this to zope-coders as it might affect other Zope developers and it had me stumped for ages. I couldn't find anything on it anywhere, so I figured it would be good to get something into google :-). We are developing a Zope2.7 application on Debian GNU/Linux that is using fop to

[Python-Dev] Patch review [ 684500 ] extending readline functionality

2005-01-18 Thread Michiel Jan Laurens de Hoon
Patch review [ 684500 ] (extending readline functionality) This patch is a duplicate of patch [ 675551 ] (extending readline functionality), which was first submitted against stable python version 2.2.2. After the resubmitted patch [ 684500 ] against Python 2.3a1 was accepted (Modules/readline.c

Re: [Python-Dev] a bunch of Patch reviews

2005-01-18 Thread Tim Peters
[Martin asks whether Irmen wants to be a tracker admin on SF] [Irmen de Jong] > That sounds very convenient, thanks. > Does the status of 'python project member' come with > certain expectations that must be complied with ? ;-) If you're using Python, you're already required to comply with all of

Re: [Python-Dev] a bunch of Patch reviews

2005-01-18 Thread Irmen de Jong
Martin, Irmen de Jong wrote: 1- I can't add new files to this tracker item. Should I open a new patch and refer to it? Depends on whether you want tracker admin access (i.e. become a SF python project member). If you do, you could attach patches to bug reports not written by you. That sounds ve

RE: [Python-Dev] Getting rid of unbound methods: patch available

2005-01-18 Thread Delaney, Timothy C (Timothy)
Guido van Rossum wrote: > [Timothy Delaney] >> If im_func were set to the class where the function was defined, I >> could definitely avoid the second part of the trawling (not sure >> about the first yet, since I need to get at the function object). > > Instead of waiting for unbound methods to

Re: [Python-Dev] a bunch of Patch reviews

2005-01-18 Thread Fred L. Drake, Jr.
Irmen de Jong wrote: > 3- Should the order of the chapters in the documentation >be preserved? I'd rather add spwd below pwd, but >this pushes the other unix modules "1 down"... On Tuesday 18 January 2005 17:17, Martin v. Löwis wrote: > You could make it a subsection (e.g. "spwd -- sha

Re: [Python-Dev] a bunch of Patch reviews

2005-01-18 Thread "Martin v. Löwis"
Irmen de Jong wrote: 1- I can't add new files to this tracker item. Should I open a new patch and refer to it? Depends on whether you want tracker admin access (i.e. become a SF python project member). If you do, you could attach patches to bug reports not written by you. 2- As shadow passwords

Re: [Python-Dev] a bunch of Patch reviews

2005-01-18 Thread Irmen de Jong
Irmen de Jong wrote: Hello I've looked at one bug and a bunch of patches and added a comment to them: [...] [ 579435 ] Shadow Password Support Module Would be nice to have, I recently just couldn't do the user authentication that I wanted: based on the users' unix passwords I'm almost done with com

Re: [Python-Dev] Exceptions *must*? be old-style classes?

2005-01-18 Thread Michael Hudson
Michael Hudson <[EMAIL PROTECTED]> writes: > I hope to have a new patch (which makes PyExc_Exception new-style, but > allows arbitrary old-style classes as exceptions) "soon". It may even > pass bits of "make test" :) Done: http://www.python.org/sf/1104669 It passed 'make test' apart from failu

Re: [Python-Dev] __str__ vs. __unicode__

2005-01-18 Thread M.-A. Lemburg
Walter Dörwald wrote: __str__ and __unicode__ seem to behave differently. A __str__ overwrite in a str subclass is used when calling str(), a __unicode__ overwrite in a unicode subclass is *not* used when calling unicode(): --- class str2(str): def __str__(self):

Re: [Python-Dev] Getting rid of unbound methods: patch available

2005-01-18 Thread Guido van Rossum
[me] > > I'm not sure I understand how basemethod is supposed to work; I can't > > find docs for it using Google (only three hits for the query mxTools > > basemethod). How does it depend on im_class? [Marc-Andre] > It uses im_class to find the class defining the (unbound) method: > > def basemet

Re: [Python-Dev] Getting rid of unbound methods: patch available

2005-01-18 Thread Guido van Rossum
[Timothy Delaney] > If im_func were set to the class where the function was defined, I could > definitely avoid the second part of the trawling (not sure about the > first yet, since I need to get at the function object). Instead of waiting for unbound methods to change their functionality, just c

Re: [Python-Dev] Exceptions *must*? be old-style classes?

2005-01-18 Thread Michael Hudson
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Guido van Rossum wrote: a) Is Exception to be new-style? >>> >>>Probably not in 2.5; Martin and others have suggested that this could >>>introduce instability for users' existing exception classes. >> Really? I thought that was eventually decided

[Python-Dev] Re: [Python-checkins] python/dist/src/Python ceval.c, 2.420, 2.421

2005-01-18 Thread Jeremy Hylton
On Tue, 18 Jan 2005 07:56:19 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/python/python/dist/src/Python > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4034/Python > > Modified Files: > ceval.c > Log Message: > Change the name of the macro used by --with

[Python-Dev] __str__ vs. __unicode__

2005-01-18 Thread Walter Dörwald
__str__ and __unicode__ seem to behave differently. A __str__ overwrite in a str subclass is used when calling str(), a __unicode__ overwrite in a unicode subclass is *not* used when calling unicode(): --- class str2(str): def __str__(self): return "foo" x =

Re: [Python-Dev] PEP 246: lossless and stateless

2005-01-18 Thread Phillip J. Eby
At 12:59 PM 1/18/05 +, Armin Rigo wrote: > How can we express your thoughts so that they fit into a narrative > describing how adapt() should and should not be used? I'm attaching a longer, hopefully easier reformulation... Well said! You've explained my "interface per use case" theory much be

Re: [Python-Dev] PEP 246: lossless and stateless

2005-01-18 Thread Armin Rigo
Hi Clark, On Fri, Jan 14, 2005 at 12:41:32PM -0500, Clark C. Evans wrote: > Imagine enhancing the stack-trace with additional information about > what adaptations were made; > > Traceback (most recent call last): >File "xxx", line 1, in foo > Adapting x to File >File

Re: [Python-Dev] Getting rid of unbound methods: patch available

2005-01-18 Thread M.-A. Lemburg
Guido van Rossum wrote: [Guido] Apart from the tests that were testing the behavior of im_class, I found only a single piece of code in the standard library that used im_class of an unbound method object (the clever test in the pyclbr test). Uses of im_self and im_func were more widespread. Given t

Re: [Python-Dev] Getting rid of unbound methods: patch available

2005-01-18 Thread Nick Coghlan
M.-A. Lemburg wrote: Nick Coghlan wrote: Guido van Rossum wrote: What do people think? (My main motivation for this, as stated before, is that it adds complexity without much benefit.) I'm in favour, since it removes the "an unbound method is almost like a bare function, only not quite as useful"