On Oct 15, 5:53 pm, PoD <p...@internode.on.net> wrote: > data = { > 'Mobile': 'string', > 'context': '<malicious code>', > 'order': '7', > 'time': 'True'} > types={'Mobile':str,'context':str,'order':int,'time':bool} > > for k,v in data.items(): > data[k] = types[k](v)
Thanks for the tip, I didn't know you could do that. I ended up filtering the values the bulky way, but it gives me total control over what internet users feed my program. -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list