Open tzot opened 12 years ago
I assume this is categorized as list compatibility.
list compatibility
class CustomList(list): def __div__(self, count): return 5 >>> l= CustomList() >>> l/1 5 class CustomBlist(blist.blist): def __div__(self, count): return 4 >>> l= CustomBlist() >>> l/1 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for /: 'CustomBlist' and 'int'
Sorry for the bad code formatting, I probably misinterpreted the instructions in GitHub Flavored Markdown.
I assume this is categorized as
list compatibility
.