Re: [IronPython] Odd tracebacks

2009-01-16 Thread Dino Viehland
Good places to look would be: ExceptionHelpers.UpdateStackTrace is where the frame should be remembered PythonOps.CreateTraceBack should be where we actually pull the current set of frames for exceptions and build up the stack trace ScriptingRuntimeHelpers.GetDynamicStackF

Re: [IronPython] Odd tracebacks

2009-01-16 Thread Dan Eloff
This extraneous stack trace seems to happen on every exception. I've confirmed that it's an IronPython problem, not silverlight. It only ever consists of these two, and the debugger confirms that they aren't called on the error path. at pairwise in game/utils\functions.py, line 46 at __getattr__ i

Re: [IronPython] Embedding Powershell and Write-Host

2009-01-16 Thread Stephen Ng
My VC .NET is apparently too old to do this :-(. But then I realized that I could get close enough by: 1. moving the main loop of my program from Powershell to Python 2. Rewriting Write-Host to stuff strings into a global: $global_log_messages = '' function Write-Host($s) { Set-Variable -Name

Re: [IronPython] Property information

2009-01-16 Thread Curt Hagenlocher
There is no one-to-one correspondence between Python types and CLR types. In fact, there really can't be (at least in the default case) because their respective types work totally differently. You'll need to use the ObjectOperations API to access your Python methods: engine.Operations.GetMember(ob

Re: [IronPython] os Module in programs compiled with pyc

2009-01-16 Thread Michael Foord
Renaud Durand wrote: Hi all, I have several issues but I will respect the 1 problem/1 thread rule. My exe file is in a folder with all required DLLs. When I'm trying to import the os module I get this: > Unhandled Exception: IronPython.Runtime.Exceptions.ImportException: No module named os

Re: [IronPython] os Module in programs compiled with pyc

2009-01-16 Thread Orestis Markou
The sys module is special as it's built-in, whereas os is just a python module. Try importing other modules such as shutil or unittest to see if the plain standard library works. IronPython doesn't compile the standard library for you - it ships with it as normal python source, when installed

[IronPython] os Module in programs compiled with pyc

2009-01-16 Thread Renaud Durand
Hi all, I have several issues but I will respect the 1 problem/1 thread rule. My exe file is in a folder with all required DLLs. When I'm trying to import the os module I get this: > Unhandled Exception: IronPython.Runtime.Exceptions.ImportException: No module named os It works fine with other

[IronPython] Property information

2009-01-16 Thread Stefan Glimberg
Hello, I am creating a Silverlight application using C# and underlying python classes. In the C# code, I would like to access information about any methods defined in the python code. The python classes inherit from my own C# classes, but the only type information availible is from the C# class, n

Re: [IronPython] Issues with System members when using pyc.py

2009-01-16 Thread Renaud Durand
Thanks a lot. The mailing list is working much better than the issue-tracker on CodePlex. I won't hesitate to report other issues that I'll notice. I already have an idea... 2009/1/15 Michael Foord > Dino Viehland wrote: > >> >> This is a bug – we're not adding references to mscorlib/System.dll