Using set_rebind_proc(func) with a bound method

David Leonard david.leonard at
Wed Jun 6 14:33:55 CEST 2001

On Tue, 5 Jun 2001, f.glasner at typed thusly:

> the problem is to check whether a callable object is either a function object
> or a *bound* method object.

just callable will do for now.

passing an unbound method will still result in a runtime error when a rebind
is needed... which I think is fine, since we can't completely check for
all type errors there - we could end up falsly prohibiting or falsely
allowing cases that we never thought of.

good testing is still required, ie do coverage testing/analysis and
find your type mistakes that way.

David Leonard                           David.Leonard at
DSTC                                    Room:78-632  Ph:+61 7 336 58358
The University of Queensland  
QLD 4072  AUSTRALIA                     B73CD65FBEF4C089B79A8EBADF1A932F13EA0FC8

I put my chin on my knee, and looked for flaws in the soft grain of my
beige plastic monitor casing. - Julian Assange

More information about the python-ldap mailing list