[IronPython] (no subject)

Chu Kevin redmoon17 at gmail.com
Mon May 23 12:15:28 CEST 2005


use 0.75,it can import most standard lib

2005/5/23, Jon Cosby <jon at jcosby.com>:
> Is there something preventing me from importing from the standard Python
> library in IronPython 0.6? I can import my own modules, but get a
> "NotImplementedException" when importing from the standard library.
> 
> Jon Cosby
> 
> >>> import sys
> >>> sys.path
> ['F:\\Projects\\IronPython\\bin', 'C:\\Python23\\Lib',
> 'F:\\Projects\\IronPython\\bin\\Projects']
> >>> import myscript
> >>> import os
> System.NotImplementedException: EmitDel: IronPython.AST.NameExpr
>   at IronPython.AST.Expr.EmitDel(CodeGen cg) in
> f:\Projects\IronPython\IronPython\AST\Expr.cs:line 42
>   at IronPython.AST.DelStmt.Emit(CodeGen cg) in
> f:\Projects\IronPython\IronPython\AST\Stmt.cs:line 681
>   at IronPython.AST.SuiteStmt.Emit(CodeGen cg) in
> f:\Projects\IronPython\IronPython\AST\Stmt.cs:line 65
>   at IronPython.AST.IfStmt.Emit(CodeGen cg) in
> f:\Projects\IronPython\IronPython\AST\Stmt.cs:line 117
>   at IronPython.AST.SuiteStmt.Emit(CodeGen cg) in
> f:\Projects\IronPython\IronPython\AST\Stmt.cs:line 65
>   at IronPython.AST.ModuleDef.Generate(String sourceFileName) in
> f:\Projects\IronPython\IronPython\AST\ModuleDef.cs:line 71
>   at IronPython.Objects.Importer.LoadFromSource(String fullName, String
> filename, List __path__) in
> f:\Projects\IronPython\IronPython\Objects\module.cs:line 260
>   at IronPython.Objects.Importer.LoadFromPath(String name, String
> fullName, List path) in
> f:\Projects\IronPython\IronPython\Objects\module.cs:line 246
>   at IronPython.Objects.Importer.LoadTop(String name) in
> f:\Projects\IronPython\IronPython\Objects\module.cs:line 210
>   at IronPython.Objects.Importer.ImportOne(String fullName, Boolean
> keepTop) in f:\Projects\IronPython\IronPython\Objects\module.cs:line
> 193
>   at IronPython.Objects.module.Import(String fullName, Boolean keepTop)
> in f:\Projects\IronPython\IronPython\Objects\module.cs:line 98
>   at IronPython.Objects.Ops.Import(module mod, String fullName) in
> f:\Projects\IronPython\IronPython\Objects\Ops.cs:line 1562
>   at input_3.Run(Frame frame)
>   at IronPythonConsole.IronPython.DoInteractive() in
> f:\Projects\IronPython\IronPythonConsole\IronPython.cs:line 193
> 
> _______________________________________________
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



More information about the Ironpython-users mailing list