Parameter.coerce

Parameter.coerce#

Parameter.coerce()[source]#

Read a value of this entry from its wire text.

A stringlist accepts an option, or failing an exact match, an option index, and returns the option object.

Raises:

ValueError – If the text is not a value of this entry.