Comment

Comment by mehrdadn

This should help: what should the following code output?

  class B(object):
    def __init__(self):
      self.y = 2

  class C(A, B):
    pass

  print(C().y)
parent mehrdadn 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton