Python "object" as root object
Lalo Martins
lalo at exoweb.net
Sat May 28 06:19:02 BST 2005
On Fri, 2005-05-27 at 14:34 +0200, uws wrote:
> It's easy to have all classes in a
> module inherit from object by default (so you don't need to subclass object
> explicitly) by putting
>
> __metaclass__ = type
>
> somewhere at the start of the module body.
PLEASE DON'T DO THAT. "Explicit is better than implicit".
best,
Lalo Martins
--
My personal formula for efficiency is to arrange
problems in such a way that they solve each other.
--
http://www.exoweb.net/ mailto:lalo at exoweb.net
GNU: never give up freedom http://www.gnu.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20050528/cec3cef9/attachment.htm
More information about the bazaar
mailing list