Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Nick Coghlan
Guido van Rossum wrote: > > Also, there was discussion of this before: > http://mail.python.org/pipermail/python-dev/2005-January/050625.html > -- why didn't we decide to do it then? Skimming that thread, the issues seem to be: - worse error messages from explicit base class calls if you forge

Re: [Python-Dev] test_doctest failing

2007-11-24 Thread Brett Cannon
On Nov 24, 2007 1:57 PM, Titus Brown <[EMAIL PROTECTED]> wrote: > On Sat, Nov 24, 2007 at 10:23:06AM -0800, Guido van Rossum wrote: > -> On Nov 24, 2007 6:35 AM, <[EMAIL PROTECTED]> wrote: > -> > Thanks, Titus. Both the doctest and trace tests pass with your change. > -> > Checked back in. I did

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Greg Ewing
André Malo wrote: > * Greg Ewing wrote: > > > But you could just as well wrap > > it in a function that takes self and discards it, > > I always thought, that this is exactly what staticmethod does. Not quite -- staticmethod prevents a self from getting passed in the first place, so there's no

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Also, there was discussion of this before: | http://mail.python.org/pipermail/python-dev/2005-January/050625.html | -- why didn't we decide to do it then? 1. Nobody ran with it. 2. There was mild concern with breaki

Re: [Python-Dev] test_doctest failing

2007-11-24 Thread Titus Brown
On Sat, Nov 24, 2007 at 10:23:06AM -0800, Guido van Rossum wrote: -> On Nov 24, 2007 6:35 AM, <[EMAIL PROTECTED]> wrote: -> > Thanks, Titus. Both the doctest and trace tests pass with your change. -> > Checked back in. I didn't run the full test suite, as test_sqlite causes a -> > bus error on m

Re: [Python-Dev] test_doctest failing

2007-11-24 Thread Guido van Rossum
On Nov 24, 2007 6:35 AM, <[EMAIL PROTECTED]> wrote: > Thanks, Titus. Both the doctest and trace tests pass with your change. > Checked back in. I didn't run the full test suite, as test_sqlite causes a > bus error on my Mac which I've yet to investigate. It's easy though to run all tests *excep

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Phillip J. Eby
At 09:56 AM 11/24/2007 -0800, Guido van Rossum wrote: >Also, there was discussion of this before: >http://mail.python.org/pipermail/python-dev/2005-January/050625.html >-- why didn't we decide to do it then? http://mail.python.org/pipermail/python-dev/2005-January/051236.html There were also a fe

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread André Malo
* Greg Ewing wrote: > Phillip J. Eby wrote: > > class MoneyField(Field): > > # does need staticmethod because two_decimal_places > > # doesn't take a self > > converter = staticmethod(two_decimal_places) > > Okay, I see what you mean now. But you could just as well wrap > it in a funct

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Guido van Rossum
On Nov 23, 2007 11:10 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > > Index: Objects/funcobject.c > > === > > --- Objects/funcobject.c(revision 59154) > > +++ Objects/funcobject.c(worki

Re: [Python-Dev] test_doctest failing

2007-11-24 Thread skip
Titus> Skip, this set_trace rewrite fixes the problem in both 25-maint and Titus> trunk: ... Thanks, Titus. Both the doctest and trace tests pass with your change. Checked back in. I didn't run the full test suite, as test_sqlite causes a bus error on my Mac which I've yet to inves

Re: [Python-Dev] [python] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Thomas Lee
Michael Foord wrote: > Guido van Rossum wrote: > >> I'm asking a Py3k question on python-dev because I'd like to have >> opinions from people who haven't thought about Py3k much yet. Consider >> the following example: >> >> class C: >> def foo(self): pass >> >> C.foo(42) >> >> This cur

Re: [Python-Dev] Build Notes for building trunk with Visual Studio 2008 Express Edition

2007-11-24 Thread M.-A. Lemburg
On 2007-11-23 23:12, Paul Moore wrote: > On 23/11/2007, Christian Heimes <[EMAIL PROTECTED]> wrote: >> bsddb is automatically build by a build step. But you have to convert >> the project files in build_win32 to VS 2008 first. Simply open the >> solution file and let VS convert the projects. > > V

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-24 Thread Christian Heimes
Christian Heimes wrote: > Without support from the descriptor it's not possible to distinguish a > function from an unbound method any more. I like to add im_class to the > function object. I don't see negative side effects, do you? OK, forget that. Pretend I've never said it. I shouldn't submit i