Re: [Python-Dev] PEP 575 (Unifying function/method classes) update
17 Jun
2018
17 Jun
'18
12:07 p.m.
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.
2111
Age (days ago)
2111
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jeroen Demeyer