[Python-Dev] Add __exports__ to modules

Skip Montanaro skip@mojam.com (Skip Montanaro)
Sat, 6 Jan 2001 08:40:30 -0600 (CST)


    Neil> I think you, Skip and Moshe are missing a big advantage of having
    Neil> the __exports__ mechanism.  It should allow some attribute access
    Neil> inside of modules to become faster (like LOAD_FAST for locals).  I
    Neil> think that optimization could be implemented without too much
    Neil> difficultly.

True enough, that hadn't occurred to me.  Knowing that now, I still don't
think consistency of the interface should suffer as a result of
under-the-covers performance gains.

Skip