From: David L. <dav...@cs...> - 2001-06-06 02:36:23
|
On Tue, 5 Jun 2001, f.g...@fe... 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. d -- David Leonard Dav...@ds... DSTC Room:78-632 Ph:+61 7 336 58358 The University of Queensland http://www.dstc.edu.au/ 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 |