Re: [IronPython] Bug: module ImportError exception not being raised

2006-04-11 Thread Dino Viehland
I've just got around to looking at this, and the repro isn't working for me on beta 5. I've created a.py and b.py: a.py: from b import BClass class AClass: pass b.py: from a import AClass class BClass: pass and then I get: IronPython 1.0.2280 (Beta) on .NET 2.0.50727.32 Copyright (

Re: [IronPython] Strange Embedding Questions

2006-04-11 Thread Dino Viehland
You should be able to set Multiselect on the FileOpenDialog to enable choosing of more than one file (although that may not be exactly what you’re wanting).   Unfortunately we don’t have a way to define the CommandMethod from Python because we don’t yet support static compilation & custom

[IronPython] Strange Embedding Questions

2006-04-11 Thread Tim Riley
I have an application that I am working on which basically will provide IronPython as a scripting language for AutoCAD. I have a command now that will allow me to select an external python file and run it in AutoCAD, manipulating objects and such. This works fine for testing purposes but in order t

Re: [IronPython] Adding a namespace to a python dll

2006-04-11 Thread Dino Viehland
Currently there's no way that you can do this. This comes back to the old static compilation problem which we don't yet support (we're a CLS consumer currently, not a CLS producer). If you'd like to interop w/ C# code the best way to do this today would be via interfaces or inheritance from cl

Re: [IronPython] re module

2006-04-11 Thread Dino Viehland
Thanks for the bug report, I've got it filed in our bug database. My guess is that we'll be able to get this fixed for beta 6. Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038) -Origin

[IronPython] Adding a namespace to a python dll

2006-04-11 Thread Anthony Tarlano
Hi, The question is whether anyone can tell me how to add a namespace to a PE file that was created from a python file using the PythonCompiler? I used the PythonCompiler from IronPython.Hosting to create a DLL assembly, but after adding a reference to the file and attempting to use the using nam

[IronPython] re module

2006-04-11 Thread Andrzej Krzywda
Hi, There seems to be a different behaviour in the re module... Python: >>> import re >>> re.match("a[bcd]*b", "abcbd").group(1) Traceback (most recent call last): File "", line 1, in ? IndexError: no such group Iron Python (Beta5): >>> import re >>> re.match("a[bcd]*b", "abcbd").group(1