-----BEGIN PGP SIGNED MESSAGE-----
On 20.02.2009 15:39 Uhr, Jim Fulton wrote:
> On Feb 20, 2009, at 7:48 AM, Joachim König wrote:
>>> 2. Depending on what code you might unearth, Interface could be
>>> either zope.interface.Interface, or the older version
>>> Interface.Interface. Package qualification makes this unambiguous.
>> if module qualification is enough and "from" discouraged one could
>> as well write:
>> import zope.interface as interface
>> class IFoo(interface.Interface):
> "as" is evil and should never be used except in the most extreme
> circumstances, if there even are any that extreme.
> We have recommended:
> from zope import interface, component
> and then not having to type "zope.", as you suggest above. I've come
> to dislike this because:
> - It doesn't buy that much, and
> - It's an odd case that has to be recognized.
I followed the whole thread with some amusement. There are too many
personal coding styles on the market which makes it impossible to
regulate all all and everything. At least this discussion about
about how to write imports properly appears esoteric to me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
org:ZOPYX Ltd. & Co. KG
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -