A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-June/095512.html below:

[Python-Dev] Relative package imports

[Python-Dev] Relative package imports [Python-Dev] Relative package importsFredrik Lundh fredrik at pythonware.com
Mon Jun 21 14:41:27 CEST 1999
Mark Hammond wrote:
> * Why arent Zope/PIL capable of being used as packages.

PIL can be used as a package ("from PIL import Image"), assuming
that it's installed under a directory in your path.  there's one pro-
blem in 1.0b1, though: you have to explicitly import the file format
handlers you need:

import PIL.JpegImagePlugin
import PIL.PngImagePlugin

this has been fixed in 1.0 final.

> * If they are (as I understand to be the case) why do people choose not to
> use them as such, or why do the authors not recommend this?

inertia, and compatibility concerns.  we've decided that all
official material related to PIL 1.0 will use the old syntax (and
all 1.X releases will be possible to install using the PIL.pth
approach).  too many users out there...

now, PIL 2.0 is a completely different thing...

> * Is there a deficiency in the package scheme that makes it hard to use?

not that I'm aware...

</F>



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4