def get_cities_by_name(self, name):
if name not in self.cities_by_names:<EOL><INDENT>if self.cities_items is None:<EOL><INDENT>self.cities_items = list(self.get_cities().items())<EOL><DEDENT>self.cities_by_names[name] = [dict({gid: city})<EOL>for gid, city in self.cities_items if city['<STR_LIT:name>'] == name]<EOL><DEDENT>return self.cities_by_names[name]<EOL>
Get a list of city dictionaries with the given name.

        City names cannot be used as keys, as they are not unique.