[Python-Dev] can we stop pretending _PyTyple_Lookup is internal?

2005-03-14 Thread Michael Hudson
It's needed to implement things that behave like instance methods, for instance, and I notice that at at least some point in the past Zope3 has used the function with a note attached saying Guido says this is OK. Also, the context is that I want to submit a patch to PyObjC using the function, and

Re: [Python-Dev] can we stop pretending _PyTyple_Lookup is internal?

2005-03-14 Thread Armin Rigo
Hi Michael, ... _PyType_Lookup ... There has been discussions about copy_reg.py and at least one other place in the standard library that needs this; it is an essential part of the descriptor model of new-style classes. In my opinion it should be made part not only of the official C API but

Re: [Python-Dev] can we stop pretending _PyTyple_Lookup is internal?

2005-03-14 Thread Michael Hudson
Armin Rigo [EMAIL PROTECTED] writes: Hi Michael, ... _PyType_Lookup ... There has been discussions about copy_reg.py and at least one other place in the standard library that needs this; it is an essential part of the descriptor model of new-style classes. In my opinion it should be made

Re: [Python-Dev] can we stop pretending _PyTyple_Lookup is internal?

2005-03-14 Thread Ronald Oussoren
On 14-mrt-05, at 14:26, Michael Hudson wrote: Armin Rigo [EMAIL PROTECTED] writes: Hi Michael, ... _PyType_Lookup ... There has been discussions about copy_reg.py and at least one other place in the standard library that needs this; it is an essential part of the descriptor model of new-style