[IronPython] codecs module in Silverlight

Michael Foord fuzzyman at voidspace.org.uk
Tue Dec 15 11:22:44 CET 2009


On 15/12/2009 10:15, Lukas Cenovsky wrote:
> Michael Foord wrote:
>> On 15/12/2009 00:55, Lukas Cenovsky wrote:
>>> Hi all,
>>> I cannot import codecs module in Silverligh IronPython - it throws 
>>> NameError for lookup_error method. The reason is this method is not 
>>> in the _codecs module of Silverlight IronPython:
>>
>> Yeah, this is a problem that prevents you using simplejson in 
>> Silverlight as well. :-(
>>
>> Michael
> Yep - I found your message from last month this morning.
> The whole browser crashes when I try to import simplejson (after 
> adding lookup_error to _codecs).
> Have you hacked it somehow or do you use something else (Newtonsoft 
> Json.NET)?

Currently we're using an old version of simplejson. It's pretty horrible 
as it uses the old sre_* modules rather than re. It works fine but we'd 
like to switch to a C# JSON parser to reduce the import time.

Michael

>
> -- 
> -- Lukáš
>


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





More information about the Ironpython-users mailing list