From: Konrad H. <kon...@la...> - 2006-06-22 10:40:21
|
Those who try out Python 2.5b1 and add Numeric might be annoyed by =20 the warning message that Python issues when Numeric is imported the =20 first time. This is due to the fact that Numeric lives inside a =20 directory called "Numeric" without being a package - Numeric has been =20= around for longer than packages in Python. You can get rid of this warning by adding the following lines to =20 sitecustomize.py: import warnings try: warnings.filterwarnings("ignore", category=3DImportWarning) except NameError: pass del warnings The try statement ensures that the code will work for older Python =20 releases as well. Konrad. -- --------------------------------------------------------------------- Konrad Hinsen Centre de Biophysique Mol=E9culaire, CNRS Orl=E9ans Synchrotron Soleil - Division Exp=E9riences Saint Aubin - BP 48 91192 Gif sur Yvette Cedex, France Tel. +33-1 69 35 97 15 E-Mail: hinsen =E4t cnrs-orleans.fr --------------------------------------------------------------------- |