Jim Fulton wrote:
> On Feb 19, 2009, at 4:07 PM, Shane Hathaway wrote:
>
>   
>> You're saying that:
>>
>>     import zope.interface.Interface
>>
>>     class IFoo(zope.interface.Interface):
>>         ...
>>
>> is better than:
>>
>>     from zope.interface import Interface
>>
>>     class IFoo(Interface):
>>         ...
>>     
>
> 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):

     ...

Joachim
_______________________________________________
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