[IronPython] v1.1.1: Problem loading assembly, I think
Barry Carr
barrycarr at ixian-software.com
Thu Feb 14 04:55:33 PST 2008
Hi,
After a little more experimentation and building on Dino's example, it looks like my __init__
method/constructor can see any outer scopes. If I add the import statement to the __init__ method
then the Regex class is found:
class SmartPadToDisplayIT:
"Description of Class"
print dir()
def __init__(self, srcFile, destFile):
from System.Text.RegularExpressions import Regex, RegexOptions
print dir()
self.template = []
self.sourceData = {}
self.srcFile = srcFile
self.destFile = destFile
self.TokenExpression = Regex("{(.+)}$", RegexOptions.Compiled)
print self.TokenExpression
...
Surely, this can't be right?
Cheers
Barry Carr
Barry Carr wrote:
> Hi Dino,
>
> Dino Viehland wrote:
>> Does this simple case work for you? It works for me on 1.0, 1.1, and 1.1.1:
>>
> Yes, it works fine.
>
> Cheers
> Barry Carr
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
More information about the Users
mailing list