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/2001-August/017271.html below:

[Python-Dev] Customizing the binding of attributes

[Python-Dev] Customizing the binding of attributes [Python-Dev] Customizing the binding of attributesGuido van Rossum guido@python.org
Fri, 24 Aug 2001 10:04:43 -0400
> Guido van Rossum wrote:
> > In particular, classic classes can't define __get__ to the effect
> > above.
> 
> Why __get__() and __set__() and not get() and set()?

Because they're mapped to the dispatch slots tp_descr_get and
tp_descr_set.  (Note that PEP 252 has get() and set() in some places,
like the C API section.  This is a mistake.)

--Guido van Rossum (home page: http://www.python.org/~guido/)



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