[Python-3000] Abilities / Interfaces

Steven Bethard steven.bethard at gmail.com
Wed Nov 22 19:08:20 CET 2006


On 11/22/06, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 09:42 AM 11/22/2006 -0700, Steven Bethard wrote:
> >Yeah, it certainly seems like in both this case and the string case,
> >there needs to be some shorthand for saying "implements all the basic
> >String/Number/whatever methods".
>
> But we are probably better off composing such a concept *from* the methods,
> rather than having the concept be merely a container *of* methods.

Yeah, I kinda assumed that the shorthand would be to define something like:

    IString = str.lower & str.upper & str.split & ...

But I'm still a little vague on how this supposed to be implemented.
This should definitely be elaborated in the PEP.

STeVe
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy


More information about the Python-3000 mailing list