[Tutor] eval use (directly by interpreter vs with in a script)

Alan Gauld alan.gauld at btinternet.com
Tue Nov 4 19:54:07 CET 2014

On 04/11/14 16:11, Albert-Jan Roskam wrote:

> Hmm, I get 1900 occurrences of eval()

Try printing the filenames too. A lot of those will be
in Tkinter/Tix which uses tcl.eval() to execute the
underlying Tcl/Tk widget code. Also I suspect a lot of the 
'introspection' type modules that are not intended for
normal project use will use eval etc.

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list