Why are PIL and its Image module capitalized?

Question:

PEP8 standard is for modules to be lower-case

PIL being a top-level module in all caps isn’t so bad, but to name a module Image and then have a class in that module called Image seems unnecessarily confusing.

Why was it done this way?

Asked By: mavix

||

Answers:

PIL predates PEP8 by about 5 or 6 years

From the Pillow (the maintained fork) LICENSE:

The Python Imaging Library (PIL) is

    Copyright © 1997-2011 by Secret Labs AB
    Copyright © 1995-2011 by Fredrik Lundh

And PEP8:

PEP 8 – Style Guide for Python Code

Author:
    Guido van Rossum <guido at python.org>, Barry Warsaw <barry at python.org>, Nick Coghlan <ncoghlan at gmail.com>
Status:
    Active
Type:
    Process
Created:
    05-Jul-2001
Post-History:
    05-Jul-2001, 01-Aug-2013 
Answered By: Chris Wesseling