querystring = cgi.parse_qs(decrypted_qs)
self.response.out.write(querystring) #output: {'param2': ['v2'], 'param1': ['v1']}
self.response.out.write(querystring.param2) #AttributeError: 'dict' object has no attribute 'param2'
The original dict: {'param1': 'v1', 'param2': 'v2'}
So why isn’t the second one working, what’s the right way to access the values?
I’m running Python 2.5.2 on App Engine.
Python dicts don’t work like JavaScript dicts. You need to use it the same way you access elements in a list: