CmdrKrool
Joined 15 years ago
Joined 15 years ago
BaseEstimator.__init__(self, **kwargs)
ServingMixin.__init__(self, **kwargs)
If one wants to inherit from multiple classes then they should be responsible for specifying the details of how that happens. Why should a base class be expected to add boilerplate just in case some external consumer comes along and wants to use it in some unforeseeable context?That super() has a "method resolution order" seems like a fudge. Now 'super' doesn't necessarily mean 'superclass' anymore at the point of use. Am I missing some other hypothetical situation in which super()'s MRO brings more value for the price of having to know about this extra, implicit behaviour?
And what's funny is that in the example given, the first base class not calling super() leads to the bad consequence that the other base class doesn't get to set some internal state (self.mode). Yet in the next section, "When to use a Mixin", it advises: "A mixin is a class that [...] does not contain state"
* Gints Zilbalodis, who is 30 years old, is the youngest director to win the Oscar for best animated feature.
* Flow is the first fully-European produced and funded film to win the feture animation Oscar.
* Flow is the first dialogue-less film to win the feature animation Oscar.
* Flow, made for under $4 million, is by far the lowest-budget film to ever win the category.
It also says the winner of the animated short category, In the Shadow of the Cypress, was unexpected since the Iranian filmmakers couldn't do any of the usual in-person campaigning of Academy voters due to visa problems.
[1] https://www.cartoonbrew.com/awards/underdogs-win-latvias-flo...
(It right-shifts by 4 instead of 2.)
Could do with 3 more stages ;P