1 min read Edited on 10.04.2022 Contents The sentinel object pattern The sentinel object pattern never return None but a sentinel value (like -1 for string.find()) see this article