Re: Determine if object is a Bound or Unbound method
- From: Paolino <paolo_veronelli@xxxxxxxxxx>
- Date: Thu, 28 Jul 2005 22:41:03 +0200
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
Thanks,
Farshid
Bound methods has an im_self attribute set to the instance binding them
Ciao
___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.beta.messenger.yahoo.com
.
- Follow-Ups:
- Re: Determine if object is a Bound or Unbound method
- From: Farshid Lashkari
- Re: Determine if object is a Bound or Unbound method
- References:
- Determine if object is a Bound or Unbound method
- From: Farshid Lashkari
- Determine if object is a Bound or Unbound method
- Prev by Date: Re: pySerial Windows write problem
- Next by Date: Re: To thread or not to thread
- Previous by thread: Determine if object is a Bound or Unbound method
- Next by thread: Re: Determine if object is a Bound or Unbound method
- Index(es):