Removed base_index parameter in favour of explicit array handling

The `base_index` parameter is confusing and only works in a limited number
of cases. Having explicit functions to deal with those cases is preferred.
This commit is contained in:
Sybren A. Stüvel
2018-03-01 12:50:22 +01:00
parent 2c0cc6003d
commit f46e761f09
5 changed files with 126 additions and 17 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ class NoWriterImplemented(NotImplementedError):
class SegmentationFault(Exception):
"""Raised when a pointer to a non-existant datablock was dereferenced."""
def __init__(self, message: str, field_path, address: int):
def __init__(self, message: str, address: int, field_path=None):
super().__init__(message)
self.field_path = field_path
self.address = address
self.field_path = field_path