[Ironpython-users] How can IronPython access a public static value defined in C#?

Jeff Hardy jdhardy at gmail.com
Mon Jun 20 17:57:02 CEST 2011


On Mon, Jun 20, 2011 at 5:16 AM, Doug Blank <doug.blank at gmail.com> wrote:
> Yes, indeed. So, my question is: how to get a "public static property"
> to be dynamically included with "from x import *"? You can't mark it
> readonly, right? And it doesn't seem possible without enumerating the
> static items myself and creating __all__. Perhaps a special DLR
> method/setting could be added?

Could you open an issue on CodePlex and attach a self-contained
reproduction (the .cs, and a .py file showing what you expect to
happen)? It could very well be a bug, or a decision that needs to be
revisited.

- Jeff


More information about the Ironpython-users mailing list