two of pylab.py

Diez B. Roggisch deets at nospam.web.de
Tue May 9 05:27:11 EDT 2006


Gary Wessle wrote:

> Hi
> 
> I use debian/testing linux Linux debian/testing 2.6.15-1-686
> 
> I found some duplicate files in my system, I don't if the are both
> needed, should I delete one of the groups below and which one?


Do you have any problems related to pylab? Or are you concerned about disk
consumption?

> -rw-r--r-- 1 root root 80375 2006-01-24 00:28
> /usr/lib/python2.3/site-packages/matplotlib/pylab.py -rw-r--r-- 1 root
> root 96202 2006-05-07 13:44
> /usr/lib/python2.3/site-packages/matplotlib/pylab.pyc -rw-r--r-- 1 root
> root 96202 2006-05-07 13:45
> /usr/lib/python2.3/site-packages/matplotlib/pylab.pyo
> -rw-r--r-- 1 root root    31 2004-12-10 03:05
> /usr/lib/python2.3/site-packages/pylab.py
> -rw-r--r-- 1 root root   160 2006-05-07 13:44
> /usr/lib/python2.3/site-packages/pylab.pyc
> -rw-r--r-- 1 root root   160 2006-05-07 13:45
> /usr/lib/python2.3/site-packages/pylab.pyo
> 
> 
> my sys.path shows that /usr/lib/python2.3/site-packages/ is present.
> 
> ****************************************************************
> $cat /usr/lib/python2.3/site-packages/pylab.py
> from matplotlib.pylab import *
> ****************************************************************
> 
> This imports all names except those beginning with an underscore (_).

So it appears to be some sort of alias for matplotlib.pylab. And unless you
want to risk that other packages that rely on the import

import pylab

to fail, you should keep things as they are.

Diez



More information about the Python-list mailing list