[IronPython] Calling explicitly-implemented interface methods

Michael Foord fuzzyman at voidspace.org.uk
Sat May 1 01:00:15 CEST 2010


On 30/04/2010 23:58, Dino Viehland wrote:
> Michael wrote:
>    
>> On 30/04/2010 23:32, Dino Viehland wrote:
>>      
>>> Michael wrote:
>>>
>>>        
>>>> Hey all,
>>>>
>>>> I'm porting the dotnet-integration document that comes with IronPython
>>>> to Try Python. The following example doesn't work, because RegistryKey
>>>> isn't available on Silverlight. Can anyone suggest a good alternative of
>>>> an explicitly implemented interface method on a class in Silverlight?
>>>>
>>>>          
>>> One example might be Python file objects which also implement IDisposable.
>>>
>>>
>>>        
>> That would be a really inconvenient example to pick, since in Try Python
>> I patch __builtin__.file to be a custom type that reads / writes files
>> to local storage. :-)
>>
>> Can you think of anything else?
>>      
> It's kind of lame but Python lists explicitly implement IList.Remove.
>    

Cool - that will do nicely.

Thanks

Michael

> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>    


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.





More information about the Ironpython-users mailing list