Python special methods use two underscores at the start and end; you need to name the initializer __init__
, not _init_
:
class PointsList():
def __init__(self):
self.listlist = [None]
Underscore characters are usually shown connecting up forming a longer line, but there are two underscores before init
, and two after.