Determine if object is a Bound or Unbound method
- From: Farshid Lashkari <lashkariNO@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 19:07:17 GMT
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 .
- Follow-Ups:
- Re: Determine if object is a Bound or Unbound method
- From: Paolino
- Re: Determine if object is a Bound or Unbound method
- Prev by Date: Re: On fighting fire with fire...
- Next by Date: Ten Essential Development Practices
- Previous by thread: Adding code and methods to a class dynamically
- Next by thread: Re: Determine if object is a Bound or Unbound method
- Index(es):
Relevant Pages
|