[Zope] int's as keys for dictionaries
Ben Last (Zope)
zope at benlast.com
Wed May 26 02:54:11 EDT 2004
> Bryce Harrington
> > > <dtml-let d_test_parameter="{'1':'a', '2':'b'}">
> Yes, that is correct. The data structure has strings, but I need to
> access them using ints as keys. So I have to convert the ints into
> strings in order to retrieve the data.
So why not init with
d_test_parameter="{1:'a', 2:'b'}
...so that your keys are ints from the beginning?
ben
More information about the Zope
mailing list