Re: [IronPython] Distinguishing DLR object from CLR object

2008-01-30 Thread Curt Hagenlocher
On Jan 30, 2008 3:31 PM, Dino Viehland <[EMAIL PROTECTED]> wrote: > > If by "DLR object" you mean an object which has dynamic behavior beyond just > it's type you can check to see if it implements IDynamicObject. But there > really isn't anything considered to be a "DLR object". Yes. I wasn't ver

Re: [IronPython] Distinguishing DLR object from CLR object

2008-01-30 Thread Dino Viehland
. From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Curt Hagenlocher [EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 3:15 PM To: Discussion of IronPython Subject: [IronPython] Distinguishing DLR object from CLR object Is there a straightforward and reliable

[IronPython] Distinguishing DLR object from CLR object

2008-01-30 Thread Curt Hagenlocher
Is there a straightforward and reliable way from within IronPython to tell if a particular object is a "CLR object' or a "DLR object"? I can make a guess for just IronPython by saying isPythonObject = clr.GetClrType(type(obj)).FullName.startswith('IronPython') but this is both ugly and unreliabl