[Python-3000] Binding builtin function to class

Haoyu Bai divinekid at gmail.com
Mon Apr 28 12:41:33 CEST 2008


Terry Reedy wrote:
> What is it that 'cannot work'?  My guess is that you are talking about the 
> fact that instances do not get bound as an argument to the first parameter 
> of a builtin.  

Yes, this is what I means. Sorry if my words confused you.

> 
> If *extension* function show a difference, perhaps SWIG needs revision for 
> 3.x.
> 

C extension functions are treated as same as builtins, so they are 
different from functions written in Python code. Am I right?

If I'm right, then how can we avoid the difference?



More information about the Python-3000 mailing list