diff --git a/sparse_list.py b/sparse_list.py
index c7f6b56..e759c96 100644
--- a/sparse_list.py
+++ b/sparse_list.py
@@ -79,6 +79,9 @@ class SparseList(object):
         else:
             indices = (item, )
 
+        if not indices:
+            return
+
         offset = 0
 
         for k in sorted(self.elements.keys()):

Deleting an empty slice from a sparse list fails
```
sl = sparse_list.SparseList(xrange(5), None)
del sl[3:3]
```

throws `IndexError: range object index out of range` whereas it should just leave the list untouched.
diff --git a/test_sparse_list.py b/test_sparse_list.py
index d45461f..ff82f80 100755
--- a/test_sparse_list.py
+++ b/test_sparse_list.py
@@ -176,6 +176,11 @@ class TestSparseList(unittest.TestCase):
         del sl[::2]
         self.assertEqual([1, 3, 5], sl)
 
+    def test_empty_removal(self):
+        sl = sparse_list.SparseList(xrange(5), None)
+        del sl[3:3]
+        self.assertEqual([0, 1, 2, 3, 4], sl)
+
     def test_append(self):
         sl = sparse_list.SparseList(1, 0)
         sl.append(1)

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
six==1.17.0
-e git+https://github.com/johnsyweb/python_sparse_list.git@21a04541305b929dd8203c491c5d98d27f454e50#egg=sparse_list
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: python_sparse_list
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - nose==1.3.7
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/python_sparse_list

test_sparse_list.py::TestSparseList::test_empty_removal
test_sparse_list.py::TestSparseList::test_access_with_negative_index test_sparse_list.py::TestSparseList::test_access_with_negative_index_with_no_value test_sparse_list.py::TestSparseList::test_append test_sparse_list.py::TestSparseList::test_clone test_sparse_list.py::TestSparseList::test_concatenation test_sparse_list.py::TestSparseList::test_count_default_value test_sparse_list.py::TestSparseList::test_count_value test_sparse_list.py::TestSparseList::test_equality test_sparse_list.py::TestSparseList::test_extend test_sparse_list.py::TestSparseList::test_extended_slice test_sparse_list.py::TestSparseList::test_extended_slice_is_sparse_list test_sparse_list.py::TestSparseList::test_extended_slice_with_negative_stop test_sparse_list.py::TestSparseList::test_get_out_of_bounds test_sparse_list.py::TestSparseList::test_greater_than test_sparse_list.py::TestSparseList::test_in_place_concatenation test_sparse_list.py::TestSparseList::test_index_absent_default_value test_sparse_list.py::TestSparseList::test_index_absent_value test_sparse_list.py::TestSparseList::test_index_default_value test_sparse_list.py::TestSparseList::test_index_value test_sparse_list.py::TestSparseList::test_inequality_left_longer test_sparse_list.py::TestSparseList::test_inequality_same_length test_sparse_list.py::TestSparseList::test_init_default test_sparse_list.py::TestSparseList::test_init_no_default test_sparse_list.py::TestSparseList::test_init_non_zero test_sparse_list.py::TestSparseList::test_init_zero test_sparse_list.py::TestSparseList::test_initialisation_by_dict test_sparse_list.py::TestSparseList::test_initialisation_by_dict_with_non_numeric_key test_sparse_list.py::TestSparseList::test_initialisation_by_generator test_sparse_list.py::TestSparseList::test_initialisation_by_list test_sparse_list.py::TestSparseList::test_iteration_empty test_sparse_list.py::TestSparseList::test_iteration_populated test_sparse_list.py::TestSparseList::test_less_than test_sparse_list.py::TestSparseList::test_membership_absent test_sparse_list.py::TestSparseList::test_membership_present test_sparse_list.py::TestSparseList::test_missing_item_removal test_sparse_list.py::TestSparseList::test_multiply test_sparse_list.py::TestSparseList::test_multiply_in_place test_sparse_list.py::TestSparseList::test_pop_empty test_sparse_list.py::TestSparseList::test_pop_no_value test_sparse_list.py::TestSparseList::test_pop_value test_sparse_list.py::TestSparseList::test_present_item_removal test_sparse_list.py::TestSparseList::test_push_value test_sparse_list.py::TestSparseList::test_random_access_read_absent test_sparse_list.py::TestSparseList::test_random_access_read_present test_sparse_list.py::TestSparseList::test_random_access_write test_sparse_list.py::TestSparseList::test_remove_default_value_does_nothing test_sparse_list.py::TestSparseList::test_remove_non_value test_sparse_list.py::TestSparseList::test_remove_only_first_value test_sparse_list.py::TestSparseList::test_remove_value test_sparse_list.py::TestSparseList::test_reversed test_sparse_list.py::TestSparseList::test_set_out_of_bounds test_sparse_list.py::TestSparseList::test_set_slice_extends_past_end test_sparse_list.py::TestSparseList::test_set_slice_observes_stop test_sparse_list.py::TestSparseList::test_set_slice_resizes test_sparse_list.py::TestSparseList::test_set_slice_with_step test_sparse_list.py::TestSparseList::test_slice test_sparse_list.py::TestSparseList::test_slice_is_sparse_list test_sparse_list.py::TestSparseList::test_slice_list_size test_sparse_list.py::TestSparseList::test_slice_removal test_sparse_list.py::TestSparseList::test_slice_reversal_empty test_sparse_list.py::TestSparseList::test_slice_reversal_full test_sparse_list.py::TestSparseList::test_sorted test_sparse_list.py::TestSparseList::test_stepped_slice_removal test_sparse_list.py::TestSparseList::test_string_representations test_sparse_list.py::TestSparseList::test_unbounded_head_slice_removal test_sparse_list.py::TestSparseList::test_unbounded_tail_slice_removal
sparse_list.py
sparse_list.py