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/2014-March/133317.html below:

[Python-Dev] Making proxy types easier to write and maintain

[Python-Dev] Making proxy types easier to write and maintain [Python-Dev] Making proxy types easier to write and maintainSteven D'Aprano steve at pearwood.info
Thu Mar 20 01:32:48 CET 2014
On Wed, Mar 19, 2014 at 11:01:39PM +0100, Antoine Pitrou wrote:
> On Thu, 20 Mar 2014 07:54:39 +1000
> Nick Coghlan <ncoghlan at gmail.com> wrote:
> > 
> > Graeme Dumpleton has also subsequently written a library to handle easier
> > creation of correct proxy types: https://pypi.python.org/pypi/wrapt
> 
> (is "Graeme" another spelling for "Graham"?)

Yes.


> > It isn't as simple as changing one lookup function though - abstract.c
> > reads the type slots directly, and those are already hairy performance
> > critical code paths (especially the binary operator type dispatch).
> 
> Oh indeed, you're right. I think my proposal is taking water.

Nevertheless, I would like to see a standard way to proxy dunder 
methods.


-- 
Steven
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