A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-March/052186.html below:

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

[Python-Dev] can we stop pretending _PyTyple_Lookup is internal? [Python-Dev] can we stop pretending _PyTyple_Lookup is internal?Ronald Oussoren ronaldoussoren at mac.com
Tue Mar 15 08:03:22 CET 2005
On 14-mrt-05, at 14:26, Michael Hudson wrote:

> Armin Rigo <arigo at tunes.org> 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 part
>> not only of the official C API but the Python one too, e.g. as a 
>> method of
>> 'type' instances:  type(x).lookup('name')
>
> Yes, this would be good too.  The patch should be trivial; I guess a
> little work is required to ensure b/w compat, but not very much
> really.

It should IMHO be possible to override that method, the _PyType_Lookup 
copy in
PyObjC that you mentioned earlier is slightly modified to deal with 
Objective-C
categories.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2105 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20050315/543695c9/smime-0001.bin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4