[Tutor] 'source' in python or preloading variables

Alan Gauld alan.gauld at btinternet.com
Sun Oct 28 16:37:26 CET 2007


"John" <washakie at gmail.com> wrote 

> But won't if fail since the variabls in the file are not quoted?

No the quoting is only necessary if you use eval/exec.
The quotes prevent the interpreter from treating them as 
variable names. 

If you read the values from the file they are already strings, 
no need for quoting.

Alan G



More information about the Tutor mailing list