[IronPython] sys.stdin

Jake Bartlett jake at jakebartlett.com
Wed Sep 29 16:44:15 CEST 2004

I appears that sys hasn't been completely implemented.  For now you'll 
have to use the .net classes over the builtin Python classes:

For example

import sys
from System import *
print "foxpdll was here1"
sys.stdout.write("FoxPDLL was here2\n")
print Console.ReadLine()

Процышин Дмитрий wrote:

>has that
>import sys
>print "foxpdll was here1"
>sys.stdout.write("FoxPDLL was here2\n")
>print sys.stdin.readline()
>in Python23 worked
>but under ironpythonconsole error rised
>Unhandled Exception: IronPython.Objects.PythonAttributeError: type object 'IronPython.Modules.sys' has no attribute 'stdin'
>   at IronPython.Objects.Ops.GetAttr(Object o, String name)
>   at __main__.init() in E:\prog\IronPython-0.6\test.py:line 4
>   at IronPythonConsole.IronPython.DoFile(String[] args)
>   at IronPythonConsole.IronPython.Main(String[] args)
>in ironpython.dll hasnt find stdin at all
>users-ironpython.com mailing list
>users-ironpython.com at lists.ironpython.com

More information about the Ironpython-users mailing list