Ideas to optimize this getitem/eval call?

vk vminch at gmail.com
Sat Jan 3 06:17:37 CET 2009


What do you mean by 'fail'?
you have;

:: self.codes = {}

so

:: try:
::    return eval(self.codes[expr], self.globals, self.locals)

will always return an exception the first time (if this is what you're
referring to).



More information about the Python-list mailing list