Hacker News new | ask | show | jobs
by reinhardt 5499 days ago

  def __init__(self, shapename, **kwds):
is not better written; it allows shapename to be passed positionally which makes cooperative inheritance fragile.
1 comments

The version that I was rewriting:

  def __init__(self, shapename=None, **kwds):
also allows that.