In the 2.6 branch there is.  After importing clr there's an Overloads property 
on built-in functions (that's been there for a while).  In 2.6 off of the 
overloads object there is a Targets property which includes all of the CLR 
MethodBase objects.  You can check the IsFamily, IsFamilyOrAssembly, or 
IsFamilyAndAssembly properties.  IsFamily is protected, IsFamilyOrAssembly is 
C#'s protected internal - basically protected to you, IsFamilyAndAssembly is 
basically an internal method to you (I'm not sure what languages expose this, 
C# doesn't).

> -----Original Message-----
> From: [email protected] [mailto:users-
> [email protected]] On Behalf Of Kamil Dworakowski
> Sent: Saturday, March 07, 2009 12:35 PM
> To: [email protected]
> Subject: Re: [IronPython] dir returning protected members
> 
> Is there a way to check if it is a protected member or not?
> 
> On Mar 7, 7:49 pm, Dino Viehland <[email protected]> wrote:
> > This is the correct behavior.  We expose protected members as normal
> members that throw when the instance isn't a subclass defined in
> Python.  But they need to exist on the base class so that you can do
> things like super calls to them.
> >
> > > -----Original Message-----
> > > From: [email protected] [mailto:users-
> > > [email protected]] On Behalf Of Kamil Dworakowski
> > > Sent: Friday, March 06, 2009 3:05 AM
> > > To: [email protected]
> > > Subject: [IronPython] dir returning protected members
> >
> > > For my purpose this is bad that dir returns protected members, but
> I
> > > don't know if it is a bug. Is it a bug?
> > > _______________________________________________
> > > Users mailing list
> > > [email protected]
> > >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> >
> > _______________________________________________
> > Users mailing list
> >
> [email protected]http://lists.ironpython.com/listinfo.cgi/user
> s-ironpython.com
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to