Re: Python 2.6 abstract base classes

2008-10-03 Thread Steve Holden
Malcolm Tredinnick wrote: > On Thu, 2008-10-02 at 10:32 -0400, Marty Alchin wrote: > >> Looking over the new things in Python 2.6, I wonder if there are plans >> to inherit from any of the new abstract base classes in Django. It >> looks (to me) like it could be backwards-compatible, using an

Re: context-updating templatetags and ExtendsNode - some feedback ?

2008-10-03 Thread bruno desthuilliers
On 3 oct, 02:50, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2008-10-01 at 05:26 -0700, bruno desthuilliers wrote: > > Hi everybody, and first thanks to everyone involved in Django's > > developpement. > > > I recently discovered that when extending a base template, > > templatetags

Re: Python 2.6 abstract base classes

2008-10-03 Thread Kevin Teague
> Actually, I don't find it particularly appealing myself. The PEP > specifically states that it isn't intended to replace duck typing, so > I'm having trouble understanding the rationale in the first place. I > just wanted to make sure I knew now if there was any plan to support > them in the

Re: Python 2.6 abstract base classes

2008-10-03 Thread Malcolm Tredinnick
On Fri, 2008-10-03 at 07:40 -0400, Marty Alchin wrote: > On Fri, Oct 3, 2008 at 7:34 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > > Trendy might be superficially appealing, but I personally felt 2.6 would > > have been just as useful without the ABC backport. > > Actually, I don't find it

Re: Python 2.6 abstract base classes

2008-10-03 Thread Marty Alchin
On Fri, Oct 3, 2008 at 9:48 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Think "interfaces". Given that you wrote the file storage stuff and are > no doubt aware that we still have lots of fuzzy issues where something > may or may not be able to be used where a Python file object is used,

Re: Python 2.6 abstract base classes

2008-10-03 Thread Eduardo O. Padoan
On Fri, Oct 3, 2008 at 11:08 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > On Fri, Oct 3, 2008 at 9:48 PM, Malcolm Tredinnick > <[EMAIL PROTECTED]> wrote: >> Think "interfaces". Given that you wrote the file storage stuff and are >> no doubt aware that we still have lots of fuzzy issues where

Re: Python 2.6 abstract base classes

2008-10-03 Thread Marty Alchin
On Fri, Oct 3, 2008 at 10:39 PM, Eduardo O. Padoan <[EMAIL PROTECTED]> wrote: > IIRC, the file-ABCs are in the new `io` library. Ah, indeed. I was looking for something called "File" or similar, not IOBase. :) -Gul --~--~-~--~~~---~--~~ You received this message