PEP 532: tweak name in example

This commit is contained in:
Nick Coghlan 2016-11-03 16:00:50 +10:00
parent 8f095cf8c0
commit 8191dab630
1 changed files with 2 additions and 2 deletions

View File

@ -536,9 +536,9 @@ Unlike PEPs 505 and 531, this proposal readily handles custom sentinel objects::
class defined(types.CircuitBreaker):
MISSING = object()
def __init__(self, value):
super().__init__(self, value is not self.MISSING, not_defined)
super().__init__(self, value is not self.MISSING, undefined)
class not_defined(types.CircuitBreaker):
class undefined(types.CircuitBreaker):
def __init__(self, value):
super().__init__(self, value is defined.MISSING, defined)