On Tue, Mar 31, 2009 at 11:25 PM, Guido van Rossum <guido at python.org> wrote: > Well hold on for a minute, I remember we used to have an exec > statement in a class body in the standard library, to define some file > methods in socket.py IIRC. FYI, collections.namedtuple is also implemented using exec. - Alexandre