Interfaces (Was: Progress on missing features?)

Dinu Gherman dinu at reportlab.com
Wed Aug 15 11:03:46 EDT 2001


On Tue, 14 Aug 2001 22:25:22 +0200, "Alex Martelli"
<aleaxit at yahoo.com> wrote:

>"Dinu Gherman" <dinu at reportlab.com> wrote in message
>news:3b794800.115888839 at news.t-online.de...
>> Hi,
>>
>> given the recent burst of new features in Python I do wonder
>> what happend to those that are missing from Python for a
>> long while now? I'm listing here only these:
>>
>>   - interfaces
>>   - class methods
>>   - type indicators (opt.)
>>
>> Being aware of the class/type unification announced for
>> before Python 3000, I'm not listing this one above.
>
>Class methods are part of Python 2.2 alpha, which you can
>download and try out.  Regarding typing issues, Guido very
>recently mentioned that the types SIG is active for a few
>weeks a year, mostly spent recalling where they were last
>time, so, while eventually optional declarations may be
>slated to appear, it may be best not to hold one's breath
>while waiting.
>
>On interfaces, see:
>http://python.sourceforge.net/peps/pep-0245.html
>regarding syntax issues -- status is draft, and Python
>version is said to be 2.2;
>http://python.sourceforge.net/peps/pep-0246.html
>regarding 'protocol adaptation' -- same status and
>version.
>I have no idea exactly what that 'version' means in
>the PEP's -- e.g., iterators (PEP 234), which emerge
>with Python 2.2, are described in the PEP as having
>Python version of 2.1.
>
>Alex


Thanks, Alex! Now let's pass this on to Michel, then...

Hi Michel,

I've been reading your PEP 245 now and this fits very
much what I'd expect Python interfaces to look like.
What is the state of the art with it? 

The Wiki supposed to discuss this is pretty inactive 
isn't it? And what is the relationship to PEP 246 for 
which I have not seen any place to discuss it?

Thanks,

Dinu


-- 
Dinu C. Gherman
dinu at reportlab dot com
http://www.reportlab.com
................................................................
"The only possible values [for quality] are 'excellent' and 'in-
sanely excellent', depending on whether lives are at stake or 
not. Otherwise you don't enjoy your work, you don't work well, 
and the project goes down the drain." 
                    (Kent Beck, "Extreme Programming Explained")



More information about the Python-list mailing list