Turning off warnings

Paulo Pinto paulo.pinto at cern.ch
Mon Dec 1 15:29:56 CET 2003


I need to generate a temporary name for a
file and pass it as argument to a shell

Now when I use os.tempnam() or os.tmpnam()
I get a runtime warning about security issues.

I am well aware of them, but in the context of
this application I really don't need to care
about it.

Is there any way to turn the message off?


More information about the Python-list mailing list