I have a list of fields in this form
fields = [{\'name\':\'count\', \'label\':\'Count\'},{\'name\':\'type\', \'label\':\'Type\'}]
I\'d like
You can use a list comprehension:
>>> fields = [{'name':'count', 'label':'Count'},{'name':'type', 'label':'Type'}] >>> [f['name'] for f in fields] ['count', 'type']