NotImplemented == NotImplemented
This commit is contained in:
parent
e39628bae1
commit
150a37f210
@ -154,6 +154,7 @@ int krk_valuesEqual(KrkValue a, KrkValue b) {
|
||||
switch (KRK_VAL_TYPE(a)) {
|
||||
case KRK_VAL_BOOLEAN: return a == b;
|
||||
case KRK_VAL_NONE: return 1; /* None always equals None */
|
||||
case KRK_VAL_NOTIMPL: return 1;
|
||||
case KRK_VAL_KWARGS: /* Equal if same number of args; may be useful for comparing sentinels (0) to arg lists. */
|
||||
case KRK_VAL_INTEGER: return a == b;
|
||||
case KRK_VAL_HANDLER: krk_runtimeError(vm.exceptions->valueError,"Invalid value"); return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user