Skip to content

Commit

Permalink
ENH: add comment, add missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilan Schnell committed Apr 10, 2012
1 parent 09dcb7c commit 036eb29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bitarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class frozenbitarray(_bitarray):
def __repr__(self):
return 'frozen' + _bitarray.__repr__(self)

# the following methods need to be made unavailable,
# as they may mutate the object

def append(self, item):
raise NotImplementedError

Expand All @@ -136,6 +139,9 @@ def bytereverse(self):
def extend(self, arg):
raise NotImplementedError

def _encode(self):
raise NotImplementedError

def fill(self):
raise NotImplementedError

Expand Down Expand Up @@ -190,7 +196,7 @@ def __ior__(self, other):
def __ixor__(self, other):
raise NotImplementedError

def __invert__(self, other):
def __invert__(self):
raise NotImplementedError


Expand Down

0 comments on commit 036eb29

Please sign in to comment.