Re: [IronPython] Patching __import__ can break .NET attribute access

2009-03-07 Thread Dino Viehland
. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Friday, March 06, 2009 6:41 AM To: Discussion of IronPython Subject: [IronPython] Patching __import__ can break .NET attribute access Hello all

Re: [IronPython] Patching __import__ can break .NET attribute access

2009-03-07 Thread Dino Viehland
- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Saturday, March 07, 2009 11:51 AM To: Discussion of IronPython Subject: Re: [IronPython] Patching __import__ can break .NET attribute access Dino Viehland wrote: This one is technically by design. The python code which calls

[IronPython] Patching __import__ can break .NET attribute access

2009-03-06 Thread Michael Foord
Hello all, If you patch __builtin__.__import__, even with something that delegates to the real __import__, then accessing .NET attributes can break. Attached are two Python files, place them in the same directory and run: ipy first.py and get this error: Traceback (most recent call