<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Enrico Bianchi:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Per curiosita`, perche` e` visto come un antipattern? Mi va bene anche un po' di letteratura</blockquote></div><br><div><div class="gmail_signature"><div class="gmail_extra">>>> class X(int): pass</div><div class="gmail_extra">>>> type(X()) == int</div><div class="gmail_extra">False</div><div class="gmail_extra">>>> isinstance(X(), int)</div><div class="gmail_extra">True</div><div><br></div><div>vedi: Liskov Substitution Principle</div></div></div>
</div></div>