Those who try out Python 2.5b1 and add Numeric might be annoyed by  
the warning message that Python issues when Numeric is imported the  
first time. This is due to the fact that Numeric lives inside a  
directory called "Numeric" without being a package - Numeric has been  
around for longer than packages in Python.

You can get rid of this warning by adding the following lines to  
sitecustomize.py:

import warnings
try:
     warnings.filterwarnings("ignore", category=ImportWarning)
except NameError:
     pass
del warnings

The try statement ensures that the code will work for older Python  
releases as well.

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen ät cnrs-orleans.fr
---------------------------------------------------------------------



All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to