Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env python3.8
import sys
from inject_blame import inject_blame
from traceback import print_exception
sys.excepthook = print_exception
from easypy.collections import ListCollection
lc = ListCollection()
Traceback (most recent call last):
File "./", line 11, in <module>
File "/home/ofer/Sources/easypy/easypy/", line 481, in pop_some
sample_size = self._choose_sampling_size(minimum, maximum) ### edited 1427d ago by in 13e1da3b
File "/home/ofer/Sources/easypy/easypy/", line 423, in _choose_sampling_size
return random.randint(minimum, maximum) ### edited 1427d ago by in 13e1da3b
File "/usr/lib/python3.8/", line 248, in randint
return self.randrange(a, b+1)
File "/usr/lib/python3.8/", line 226, in randrange
raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (1, 1, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment