abusing __builtins__

Thomas Wouters thomas at xs4all.net
Sun Feb 25 18:16:54 EST 2001


On Sun, Feb 25, 2001 at 06:08:35PM -0500, Tim Peters wrote:

> People other than you will be unable to understand your code regardless,
> because GlobalVariable will look to them like an unbound variable (i.e.,
> nobody else uses this trick, so nobody else will recognize the usage
> pattern).

Actually, Mailman used this trick for a while. Not in any release, though,
and Barry removed the ugly hack a week or two ago. Not sure if it was
originally Barry's idea, or just part of the internationalization patch he
accepted.

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list