pygambit.gambit.Outcome.label#

Outcome.label#

The text label associated with this outcome.

Changed in version 16.7.0: An outcome label must be nonempty and unique within the game; an empty or duplicate label now raises ValueError.

Changed in version 17.0.0: A label may now be any well-formed UTF-8 text, not just ASCII; it must still contain no control characters, and must not begin/end with whitespace or have two consecutive whitespace characters. “Whitespace” means any Unicode space separator (e.g. U+00A0 NO-BREAK SPACE), not just the ASCII space.