two of pylab.py

G

Gary Wessle

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?

-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 (_).

thanks
 
D

Diez B. Roggisch

Gary said:
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
 
J

John Hunter

site-packages/pylab.py is just there for convenience to import
matplotlib.pylab, since it is easier to type

rather than

You should leave all of the file as is, because code will assume both
are there.

JDH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top