Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80899 > unrolled thread
| Started by | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| First post | 2014-11-16 15:36 -0500 |
| Last post | 2014-11-16 15:36 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How modules work in Python Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-16 15:36 -0500
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2014-11-16 15:36 -0500 |
| Subject | Re: How modules work in Python |
| Message-ID | <mailman.15897.1416170182.18130.python-list@python.org> |
On Sun, Nov 16, 2014 at 2:36 PM, Abdul Abdul <abdul.sw84@gmail.com> wrote:
> Hello,
>
> I'm new to Python, and just have a small question, and thought you might
> have an idea on it.
>
> I came across the following example that uses the Python Imaging Library
> (PIL):
>
> from PIL import Image
> img = Image.open('xyz.jpg')
>
> I know that PIL is a module. And, I think that Image is also a module,
> especially we are importing it.
>
> I also understood the Image,open() part, as it appears we are using the
> method open() from the Image module.
>
> My question is, where did PIL go here? Can a module have another module
> inside it?
>
> Thanks.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
You can learn what PIL has to offer by going into the python
interactive shell, and import PIL . Then type help(PIL) to learn what
it contains.
--
Joel Goldstick
http://joelgoldstick.com
Back to top | Article view | comp.lang.python
csiph-web