[Python-Dev] Accessing globals without dict lookup (original) (raw)

Skip Montanaro skip@pobox.com
Mon, 11 Feb 2002 08:26:46 -0600


Ping> But hey... in that case the cellptr is always two steps away from
Ping> the object.  So why not just use PyObject**s instead of cells?

I think it's because they aren't objects. You need to make the indirection explicit so that when some code does the equivalent of module.abs it realizes it needs to follow the chain.

Thanks for the great diagram, btw. I knew if I did something feeble it would get rewritten correctly.

Skip