[Python-de] dynamische variablen generieren

Simon Pamies bipbap at gmx.de
Mon Sep 27 13:41:47 CEST 2004


On Monday 27 September 2004 13:33, Johannes Krauth wrote:
>
> ###########
> for f_name in f:
>     f_split=f_name.split(":")

eval(compile('%s=%s' % (f_split[0], f_split[1]), 'dummy', 'single'))

hth
-- 
Simon Pamiés (bipbap at gmx.de)
[archlinux 0.7, kernel 2.6.8.1, kmail 3.3]