[IronPython] codecs module in Silverlight

Michael Foord fuzzyman at voidspace.org.uk
Tue Dec 15 12:48:51 CET 2009

On 15/12/2009 11:36, Lukas Cenovsky wrote:
> Michael Foord wrote:
>> 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
> Yes - the import time is quite an issue. I checked the issue tracker 
> and I did not see any opened issue for pyc.py supporting Silverlight 
> so I have added one. Please vote:
> http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25680

Voted. Our current app shows the login screen and then does the imports 
in the background (using parallel imports code) whilst the login screen 
is showing.


> -- 
> -- Lukáš


More information about the Ironpython-users mailing list