Re: [IronPython] Issues with Silly Module Tricks

2007-11-28 Thread Jeff Hardy
unfortunately it's going to > take a little time. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Hardy > Sent: Tuesday, November 27, 2007 7:40 PM > To: Discussion of IronPython > Subject: [IronPython

Re: [IronPython] Issues with Silly Module Tricks

2007-11-28 Thread Dino Viehland
ut unfortunately it's going to take a little time. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Hardy Sent: Tuesday, November 27, 2007 7:40 PM To: Discussion of IronPython Subject: [IronPython] Issues with Silly Module Tricks Hi,

[IronPython] Issues with Silly Module Tricks

2007-11-27 Thread Jeff Hardy
Hi, The following code is adapted from the Pygments library: automod_test.py import types class _automodule(types.ModuleType): """Automatically import lexers.""" def __getattr__(self, name): return "blah" import sys oldmod = sys.modules['automod_test'] newmod = _automodule('auto