<div dir="ltr">Hm. I've never been a fan of that. EIBTI and such...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 10:53 AM, Barry Warsaw <span dir="ltr"><<a href="mailto:barry@python.org" target="_blank">barry@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Oct 21, 2014, at 10:13 AM, Guido van Rossum wrote:<br>
<br>
>For new code, and whenever you have an opportunity to refactor old code,<br>
>you should use new-style classes, by inheriting your class from object (or<br>
>from another class that inherits from object).<br>
<br>
</span>One nice way to do this module-globally is to set:<br>
<br>
__metaclass__ = type<br>
<br>
at the top of your file. Then when you're ready to drop Python 2, it's an<br>
easy clean up.<br>
<br>
Cheers,<br>
-Barry<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div>