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
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 so
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,
>
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 parti
> 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 ne
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 particularly appealing myself. The PEP
specifically states that it isn'
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 i
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 import
> like so:
>
> try:
> fr
On 2 oct, 16:36, "Ben Ford" <[EMAIL PROTECTED]> wrote:
> 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
They are in 2.6
--~--~-~--~~~---~--~~
You received this message because you are subscr
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
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
11 matches
Mail list logo