Jonathan Slenders wrote:
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:

    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#.

Ha! Nice bug find.

No - try the prints without first writing to stdout directly... :-)

Michael



Jonathan

2008/6/15 Michael Foord <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:

    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
    [email protected] <mailto:[email protected]>
    http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
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/

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to