A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-August/016847.html below:

[Python-Dev] optimizing non-local object access

[Python-Dev] optimizing non-local object access [Python-Dev] optimizing non-local object accessMartin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu, 9 Aug 2001 22:12:39 +0200
> I think we hook in at the tp_getattr(o) level.  Module objects can
> detect rebindings there and do whatever bookkeeping is necessary to
> keep references to its name consistent.  I think this is the right
> approach for either technique we're discussing.

Would that catch changes like

math.__dict__['sin'] = math.cos

??

Regards,
Martin



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