From fb62a57a52034e0f8eef1981ce44a161275726c9 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Sun, 28 Apr 2019 21:14:40 +0200 Subject: [PATCH] Enumerate is too risky - it exhausts iterators and will show changes when sets change order --- pysnooper/variables.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pysnooper/variables.py b/pysnooper/variables.py index f224024..4fab949 100644 --- a/pysnooper/variables.py +++ b/pysnooper/variables.py @@ -82,14 +82,3 @@ class Indices(Keys): result = deepcopy(self) result._slice = item return result - - -class Enumerate(Variable): - def _keys(self, main_value): - return enumerate(main_value) - - def _format_key(self, key): - return '<{}>'.format(key[0]) - - def _get_value(self, main_value, key): - return key[1]