[Python-Dev] Distutils using apply

Moshe Zadka m@moshez.org
5 May 2003 06:40:51 -0000


[Trimming CC list]

On 05 May 2003, martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) wrote:

> This isn't trivial: the warnings module is not available in Python
> 1.5.2.

Yes it is (trivial, not in 1.5.2)

try:
    import warnings
except ImportError:
    pass
else:
    ...disable warnings...

Thanks,
Moshe 
-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/