1
Vote

Make PythonHiddenAttribute public

description

I'm writing a C# application that can be extended via IronPython scripts. These scripts can access a library of .NET classes I wrote in C#.
 
Those classes have some public methods and properties that I would like to hide from the IronPython scripts, so that a script can't call them. Looking at the IronPython source code, I noticed the PythonHidden attribute in IronPython.Runtime that seems to do just that. However, that attribute is internal, so there is no way for me to use it in my own classes.
 
Is there a reason for PythonHiddenAttribute being internal? Can it be made public? Or is there another way to hide members from IronPython that I just missed?

comments

jdhardy wrote Aug 28, 2012 at 3:13 PM

I didn't even realize it was internal, and I see no reason to keep it that way.