DomF wrote: >> > I'm not allowed to use eval or exec. >> >> - write to a file >> - load the file as module :-) > > This made me laugh out loud after reading all the heavy duty parsing > options, is that bad? It's just like eval and exec in that it allows to execute untrusted code. Peter