Status: Accepted Owner: pekka.klarck Labels: Type-Enhancement Target-2.1 Priority-Low
New issue 240 by pekka.klarck: Evaluate keyword should take libraries to import to its scope as optional argumet
http://code.google.com/p/robotframework/issues/detail?id=240 It's possible, but a bit awkward and really ugly, to use __import__ like: | ${res} = | Evaluate | __import__('math').ceil(${res}/2) | It would be nicer to have an optional argument that specifies what modules (separated with comma) to import like: | ${res} = | Evaluate | math.ceil(${res}/2) | math | We could also automatically import often used modules like os, sys and above math. Implementing this would be really simple since we can pass imported modules to eval as a namespace dictionary. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
