I can\'t find a definitive answer for this. As far as I know, you can\'t have multiple __init__ functions in a Python class. So how do I solve this problem?
__init__
Use num_holes=None as a default, instead. Then check for whether num_holes is None, and if so, randomize. That's what I generally see, anyway.
num_holes=None
num_holes is None
More radically different construction methods may warrant a classmethod that returns an instance of cls.
cls