Named tuples looked like good juju in Raymond Hettinger's talk at pyconuk
too! not sure if they're in 2.6 or 3.0 though
Ben

2008/10/2 Marty Alchin <[EMAIL PROTECTED]>

>
> 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 import
> like so:
>
> try:
>    from collections import Sequence
> except ImportError:
>    # Fallback for Python 2.5
>    Sequence = type('Sequence', (object,), {})
>
> Django obviously works just fine without these at the moment, so
> there's no pressing need to do so, but if they catch on and 2.6+
> libraries start checking for them, it might be beneficial if some of
> our custom types, like QuerySets, inherited the appropriate classes.
>
> I'm not really in favor of using or not using them, but I'd just like
> to know if they're in the plan, in case I should add some notes in my
> ... documentation.
>
> -Gul
>
> >
>


-- 
Regards,
Ben Ford
[EMAIL PROTECTED]
+447792598685

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to