Return a list of all the values for the named field. These will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If
(self, name)
| 88 | |
| 89 | |
| 90 | def get_all(self, name): |
| 91 | """Return a list of all the values for the named field. |
| 92 | |
| 93 | These will be sorted in the order they appeared in the original header |
| 94 | list or were added to this instance, and may contain duplicates. Any |
| 95 | fields deleted and re-inserted are always appended to the header list. |
| 96 | If no fields exist with the given name, returns an empty list. |
| 97 | """ |
| 98 | name = self._convert_string_type(name.lower(), name=True) |
| 99 | return [kv[1] for kv in self._headers if kv[0].lower()==name] |
| 100 | |
| 101 | |
| 102 | def get(self,name,default=None): |