Nov-30-2018, 05:05 PM
(This post was last modified: Nov-30-2018, 05:07 PM by Gribouillis.)
ichabod801 Wrote:In that case I want to distinguish between go never having been changed after a successful move (is True) and go having been changed but still evaluating as True (a non-empty list).In that case, I would define a specific explicit sentinel value
Unchanged = object() go = Unchanged while go: if go is Unchanged: ... else: ...