def get_noncopyable(self, a, b): # Keep a reference: this is going to throw an exception self.nc = m.NonCopyable(a, b) return self.nc
def get_noncopyable(self, a, b): # Constructs and returns a new instance: nc = m.NonCopyable(a * a, b * b) return nc