-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkmew3YACgkQCJIWIbr9KYyjlgCdGFtjHDTCSywVjGjCIyhGnnGI
lGcAoM4V7EkwFBztQyM5TKF0zTAJDhBs
=zZIL
-----END PGP SIGNATURE-----
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to