[Tutor] executing a function in a different file and class

Alan Gauld alan.gauld at blueyonder.co.uk
Sun Aug 22 10:42:27 CEST 2004

> Actually, it is possible to do something truly ugly here.  It
> injecting something into the __builtins__ dictionary.

Yes, but that is on a par with doing

#define private public
#include "yourclass.h"

in C++! It completely goes against what the language is trying
to save you from! Just pretend the possibility doesn't exist,
you'll be glad you did!

Alan G.

More information about the Tutor mailing list