[IronPython] Ironpython attribute validation

Jeff Hardy jdhardy at gmail.com
Mon Jun 7 20:04:41 CEST 2010

On Mon, Jun 7, 2010 at 11:33 AM, Ashley Abraham <abrahams84 at gmail.com> wrote:
> is there any other module similar to Traits in IronPython which I can use to
> explicitly declare the attributes and to do type validation??

It looks like Traits itself isn't dependent on zipimport (it depends
on setuptools, which requires zipimport), so you should be able to get
away with putting an empty zipimport.py file somewhere on sys.path.
I've done this before to get things setuptools stuff working; as long
as it doesn't try to *use* zipimport, you're OK.

I don't know of anything else that works the same, but it should be
possible to make it work, if you can get IronClad to handle the C
portion of it (they don't have a pure Python version, *grumble

- Jeff

More information about the Ironpython-users mailing list