[Python-3000] Binding builtin function to class (original) (raw)
Haoyu Bai divinekid at gmail.com
Mon Apr 28 12:41:33 CEST 2008
- Previous message: [Python-3000] Binding builtin function to class
- Next message: [Python-3000] Binding builtin function to class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Previous message: [Python-3000] Binding builtin function to class
- Next message: [Python-3000] Binding builtin function to class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]