Larry Hastings added the comment:

I was thinking of a subclass of an existing class, both implemented in C.  
collections.Counter does that, but it uses _PyType_LookupId() which is in the 
limited API.

Would it be possible to achieve equivalent functionality by using 
_PyType_LookupId()?  If so, maybe instead of the proposed new function 
PyType_GetSlot, we should make _PyType_Lookup and _PyType_LookupId part of the 
public API.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17162>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to