Provide a way to lookup valid dict items

2012-12-03 Thread Ryan Stuart
Hi All, I recently discovered that there is no way in the Django template syntax to access all valid items of a dict. For example, as I understand it, it is impossible to access the only item of this dict: my_dict = {"_key": "value"} This is despite this dict being perfectly valid and not brea

Re: Provide a way to lookup valid dict items

2012-12-03 Thread Ryan Stuart
On Tuesday, 4 December 2012 14:25:22 UTC+10, Russell Keith-Magee wrote: > > > Now, I'll completely grant that the same "private" interpretation doesn't > apply to dictionary keys in the Python context, but: > > 1) From a Django template language perspective, there's no syntactic > difference b