From 1b7e8b8147b15e4c8d39cf9c40595206c2585941 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 22 Apr 2024 11:45:32 +0300 Subject: [PATCH] fix stack --- mod_oop/3.9_10_stack_iter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_oop/3.9_10_stack_iter.py b/mod_oop/3.9_10_stack_iter.py index 0a9c719..a6555b8 100644 --- a/mod_oop/3.9_10_stack_iter.py +++ b/mod_oop/3.9_10_stack_iter.py @@ -120,7 +120,7 @@ class Stack: b, c = a, b if c: c.next = None - if b == self.top: + if b is self.top: self.top = None return b