[Zope] Styles of import in Zope (2 and 3)

Andreas Jung lists at zopyx.com
Sat Aug 30 09:05:38 EDT 2008



--On 30. August 2008 14:50:30 +0200 Marco Bizzarri 
<marco.bizzarri at gmail.com> wrote:

> Please, feel free to point me to The Fine Manual to read, if this has
> been answered and written many times.
>
> After reading the article "Importing Python Modules"
> (http://effbot.org/zone/import-confusion.htm), I had many doubts about
> the style to use in imports in Zope 2 and Zope 3.
>
> The article points to a style which should be:
>
> from package.subpackage import module
>
> and then use
>
> module.MyClass
>
> Is this the recomended style in Zope2/3 also?

PEP8 tells you:

<http://www.python.org/dev/peps/pep-0008/>

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080830/d6590ae5/attachment.bin 


More information about the Zope mailing list