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-April/153120.html below:

[Python-Dev] PEP 573 -- Module State Access from C Extension Methods

[Python-Dev] PEP 573 -- Module State Access from C Extension Methods [Python-Dev] PEP 573 -- Module State Access from C Extension MethodsNick Coghlan ncoghlan at gmail.com
Thu Apr 26 10:37:55 EDT 2018
On 26 April 2018 at 04:46, Jeroen Demeyer <J.Demeyer at ugent.be> wrote:
> On 2018-04-25 20:33, Petr Viktorin wrote:
>>
>> Perhaps "m_objclass" could point to the module in this case
>
>
> That was exactly my idea also today. Instead of treating m_objclass as the
> defining class, we should generalize it to be the "parent" of the function:
> either the class or the module.

PEP 487 refers to this as the "owner" of a descriptor (See the
"__set_name__" example implementation in
https://www.python.org/dev/peps/pep-0487/#trait-descriptors ).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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