Re: Determine if object is a Bound or Unbound method

2005-07-28 Thread Farshid Lashkari
Grazie! Paolino wrote: > Farshid Lashkari wrote: > >> Hi, >> >> I have an object and I want to check if it is a bound or unbound >> method, or neither. I tried using the types module, but it seems as >> though types.UnboundMethodType and types.MethodType are equal. How >> else can I determine

Re: Determine if object is a Bound or Unbound method

2005-07-28 Thread Paolino
Farshid Lashkari wrote: > Hi, > > I have an object and I want to check if it is a bound or unbound method, > or neither. I tried using the types module, but it seems as though > types.UnboundMethodType and types.MethodType are equal. How else can I > determine this? BTW, I'm using Python 2.3 >

Determine if object is a Bound or Unbound method

2005-07-28 Thread Farshid Lashkari
Hi, I have an object and I want to check if it is a bound or unbound method, or neither. I tried using the types module, but it seems as though types.UnboundMethodType and types.MethodType are equal. How else can I determine this? BTW, I'm using Python 2.3 Thanks, Farshid -- http://mail.pyth