[Python-3000] Abilities / Interfaces

Jim Jewett jimjjewett at gmail.com
Sun Nov 26 03:17:36 CET 2006


On 11/23/06, Dave Anderson <python3000 at davious.org> wrote:
> Interfaces
> ==========
> iter_interface = interface(iter)  # class-based interface
> file_open_close_inter = interface(file.open, file.close) # method interface

[ strings were also treated differently ]

Are you keying off the dot in the name, or the type of the named object?

SomeClass.name is typically a method, but may be a string, or even
another class.

-jJ


More information about the Python-3000 mailing list