On 2018-06-17 14:50, Ronald Oussoren wrote:
This looks interesting. Why did you add a tp_ccalloffset slot to the type with the actual information in instances instead of storing the information in a slot?
Think of built-in functions. Every built-in function is a different callable and calls a different C function. So it must be stored in the instances.
However, the case where all instances share a PyCCallDef is also possible: all instances would then simply have the same PyCCallDef pointer.
Jeroen. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com