[Python-Dev] optimizing non-local object access (original) (raw)
Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu, 9 Aug 2001 22:12:39 +0200
- Previous message: [Python-Dev] 2.2a1 patch from PyChecker
- Next message: [Python-Dev] Re: optimizing non-local object access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think we hook in at the tpgetattr(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
- Previous message: [Python-Dev] 2.2a1 patch from PyChecker
- Next message: [Python-Dev] Re: optimizing non-local object access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]