[IronPython] First cut of an interactive IronPython Interpreter running in the browser

Michael Foord fuzzyman at voidspace.org.uk
Sun Jun 15 23:09:38 CEST 2008


2008/6/15 Jonathan Slenders <jonathan at slenders.be>:

> Good work, this looks useful. Maybe you also want to capture the 'tab'-key
> -- I hate spaces for indentation.
>
> Some bug I noticed, when calling stdout.write myself:


This bug - along with not handling syntax errors properly - should now be
fixed (both in SVN and the online demo).

Michael Foord



>
> Python 2.5.0 () on silverlight
>> The interactive browser interpreter by Michael Foord
>> >>> import sys
>> >>> sys.stdout.write('test')
>> test>>> print 'a'
>> ... print 'b'
>> ...
>>
>
> I guess it's also impossible to ever capture sys.__stdout__ or
> sys.__stderr__ in silverlight, apart from writing a IronPython host in c#.
>
>
> Jonathan
>
> 2008/6/15 Michael Foord <fuzzyman at voidspace.org.uk>:
>
>> Michael Foord wrote:
>>
>>> Well, I've finally converted my Silverlight interactive interpreter to
>>> work with Silverlight 2 Beta 2 - and it works!
>>>
>>>
>> Hmmm... damn. Still doesn't handle syntax errors properly. This may well
>> be the fault of my code though - I'll need to look into it.
>>
>> For non syntax-errors it seems to be working fine.
>>
>> If you really want to see the source you can get it from the xap file:
>>
>> http://www.voidspace.org.uk/ironpython/silverlight-console/
>>
>> I might start a google project to get an SVN repository for the code.
>>
>> Michael Foord
>>
>>
>>  http://www.voidspace.org.uk/ironpython/silverlight-console/console.html
>>>
>>> There's no download yet and I've only tested on Firefox 3 and Safari (but
>>> the Javascript works on both as far as I can tell - more work probably
>>> needed to get it working on FF 2 and IE).
>>>
>>> It also doesn't include much of the standard library yet either - but
>>> this could be great for tutorials and interactive documentation.
>>>
>>> Michael Foord
>>>
>>>
>>
>> --
>> http://www.ironpythoninaction.com/
>> http://www.theotherdelia.co.uk/
>> http://www.voidspace.org.uk/
>> http://www.ironpython.info/
>> http://www.resolverhacks.net/
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
http://www.ironpythoninaction.com/
http://www.theotherdelia.co.uk/
http://www.voidspace.org.uk/
http://www.ironpython.info/
http://www.resolverhacks.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080615/e5c55da7/attachment.html>


More information about the Ironpython-users mailing list