Re: [Python-3000] Combined configparse + optparse (interest?)

2007-12-11 Thread Fred Drake
On Dec 10, 2007, at 8:09 PM, Neal Becker wrote: > Can python learn from c++? Maybe sometimes. I think the design of > boost::program_options is a pretty example. Nice, overall, but the devil is in the details, as always. I didn't see anything in the documentation about how unrecognized values

Re: [Python-3000] Method descriptors

2007-12-11 Thread Guido van Rossum
On Dec 11, 2007 6:10 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On Dec 11, 2007 1:50 AM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> > > wrote: > > > > > CFunction does not define descr_get - why? > > > > I don't see why we should bother. > > I put forward a possible

Re: [Python-3000] Method descriptors

2007-12-11 Thread Greg Ewing
Guido van Rossum wrote: > On Dec 11, 2007 1:50 AM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > > > CFunction does not define descr_get - why? > > I don't see why we should bother. I put forward a possible reason recently -- so that Pyrex-defined functions could be used as methods with

Re: [Python-3000] Method descriptors

2007-12-11 Thread Guido van Rossum
On Dec 11, 2007 1:50 AM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > I'm not convinced that Python on its own needs it. Perhaps Python > already distinguishes function-like objects from others rigorously > enough that they should care about being descriptors themselves. Right. The use c

Re: [Python-3000] Method descriptors

2007-12-11 Thread Christian Heimes
Marcin ‘Qrczak’ Kowalczyk wrote: > Below is what I have, after some cleaning and renaming. Needs more > cleaning to plug it into Python modules and conform to Python coding > standards. http://bugs.python.org/issue1587 I've added \t to the formatting, changed the name slightly and filled a bunch o

Re: [Python-3000] Method descriptors

2007-12-11 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 11-12-2007, Wt o godzinie 01:32 +0100, Christian Heimes pisze: > Marcin, can you come up with a patch? Below is what I have, after some cleaning and renaming. Needs more cleaning to plug it into Python modules and conform to Python coding standards. I'm not convinced that Python on its own