inheritance - Is there a better way to write this code to alter an object inheriting from `list` in python? -
In my reply, I am now thinking that there is a good way to improve the following code:
< Pre> Any idea how I can remove super (cycle, self) .__ init __ (...)
?
def insertextend (self, index, other , Reverse = fail): "" "Extend the cycle by inserting a frequency in the given position. "Reverse": reverse = other = reverse (other) self [index: index] = other
Comments
Post a Comment