[issue43262] "_weakrefset.py", line 56: IndexError: pop from empty list

2021-07-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43262] "_weakrefset.py", line 56: IndexError: pop from empty list

2021-02-18 Thread Jinghao Shi
n create_task task = tasks.Task(coro, loop=self, name=name) File ".../lib/python3.8/_weakrefset.py", line 83, in add self._commit_removals() File ".../lib/python3.8/_weakrefset.py", line 56, in _commit_removals discard(l.pop()) IndexError: pop from empty list ``` W

Re: IndexError: pop from empty list

2014-05-16 Thread Steven D'Aprano
On Thu, 15 May 2014 21:36:49 -0700, chris wrote: Any ideas about what this might mean? [jumping ahead] digital_data_set = (sample_bytes.pop(0) 8 | sample_bytes.pop(0)) IndexError: pop from empty list sample_bytes is an empty list. Or it could be a list with just a single sample. You try

Re: IndexError: pop from empty list

2014-05-16 Thread Peter Otten
ch...@freeranger.com wrote: No, that was pretty much what I was looking for. If anyone has an answer to the deeper question, that would be icing on the cake. What is interesting is that usually the traceback shows the line of code that I invoke which, deep inside a library I'm using, has

IndexError: pop from empty list

2014-05-15 Thread chris
117, in lambda lambda xbee,original: xbee._parse_samples(original['samples']) File /usr/local/lib/python2.7/dist-packages/xbee/base.py, line 357, in _parse_samples digital_data_set = (sample_bytes.pop(0) 8 | sample_bytes.pop(0)) IndexError: pop from empty list -- https

Re: IndexError: pop from empty list

2014-05-15 Thread Gary Herron
| sample_bytes.pop(0)) IndexError: pop from empty list The error means that sample_bytes is an empty list so calling pop is an error. Or were you asking something deeper, like *why* sample_bytes is an empty list? Gary Herron -- https://mail.python.org/mailman/listinfo/python-list

Re: IndexError: pop from empty list

2014-05-15 Thread chris
= (sample_bytes.pop(0) 8 | sample_bytes.pop(0)) IndexError: pop from empty list The error means that sample_bytes is an empty list so calling pop is an error. Or were you asking something deeper, like *why* sample_bytes is an empty list? Gary Herron -- https