On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> A.T.Hofkamp wrote:
>> On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>>> Now the real question : what if the object is not an instance of any of
>>> the types, but still support the expected interface ?
>>>
>> 
>> one possible answer: Use ZopeInterfaces
>> (and ask objects 'do you implement interface X' rather than 'are you type Y')
>> 
>> Not sure what options you have when dealing with builtin data types however.
>
> This was mostly a rethorical question...
>
And even for rethorical questions, Python already provides a solution.. :-)

Albert
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to