Re: [Python-Dev] Can/should built-in functions get __get__?

2008-09-05 Thread Terry Reedy
Christian Heimes wrote: Terry Reedy wrote: One of the nice features of 3.0 is that differences between classes defined in C and Python (other than speed) are mostly erased or hidden from the view of a Python programmer. However, there are still sometimes surprising and quite visible

Re: [Python-Dev] Can/should built-in functions get __get__?

2008-09-05 Thread Fredrik Lundh
Terry Reedy wrote: In particular, built-in functions, in spite of of being labeled 'builtin_function_or_method', are not usable as methods because they lack the __get__ method needed to bind function to instance. They're not usable as Python-level instance methods, but they're definitely

[Python-Dev] Can/should built-in functions get __get__?

2008-09-04 Thread Terry Reedy
One of the nice features of 3.0 is that differences between classes defined in C and Python (other than speed) are mostly erased or hidden from the view of a Python programmer. However, there are still sometimes surprising and quite visible differences between 'functions' written in C and

Re: [Python-Dev] Can/should built-in functions get __get__?

2008-09-04 Thread Christian Heimes
Terry Reedy wrote: One of the nice features of 3.0 is that differences between classes defined in C and Python (other than speed) are mostly erased or hidden from the view of a Python programmer. However, there are still sometimes surprising and quite visible differences between 'functions'