mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 10:15:11 +00:00
Enumerate is too risky - it exhausts iterators and will show changes when sets change order
This commit is contained in:
parent
56d3389500
commit
fb62a57a52
1 changed files with 0 additions and 11 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue