A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-June/153914.html below:

[Python-Dev] PEP 575 (Unifying function/method classes) update

[Python-Dev] PEP 575 (Unifying function/method classes) update [Python-Dev] PEP 575 (Unifying function/method classes) updateJeroen Demeyer J.Demeyer at UGent.be
Sun Jun 17 13:07:34 EDT 2018
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.

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