Set element attribute. Equivalent to attrib[key] = value, but some implementations may handle this a bit more efficiently. *key* is what attribute to set, and *value* is the attribute value to set it to.
(self, key, value)
| 345 | return self.attrib.get(key, default) |
| 346 | |
| 347 | def set(self, key, value): |
| 348 | """Set element attribute. |
| 349 | |
| 350 | Equivalent to attrib[key] = value, but some implementations may handle |
| 351 | this a bit more efficiently. *key* is what attribute to set, and |
| 352 | *value* is the attribute value to set it to. |
| 353 | |
| 354 | """ |
| 355 | self.attrib[key] = value |
| 356 | |
| 357 | def keys(self): |
| 358 | """Get list of attribute names. |
no outgoing calls