[Zope] int's as keys for dictionaries

Paul Winkler pw_lists at slinkp.com
Tue May 25 21:40:50 EDT 2004


On Tue, May 25, 2004 at 06:15:09PM -0700, Bryce Harrington wrote:
> I'm running into an issue I don't understand when using ints as keys in
> hashes.
> 
> 
> <dtml-let d_test_parameter="{'1':'a', '2':'b'}">

You're using strings as hashes, not ints.
{'1':'a'} is not {1: 'a'}.


-- 

Paul Winkler
http://www.slinkp.com



More information about the Zope mailing list