warnings module

I’m back to Python .)

In a script I’m hacking I do some multiplications between integers, these might cause overflow, but thats expected and, actually, is the base for a noise function.

The problem is that i get

warning: integer multiplication

continuously and this flooding output in BLender console slows down my script a lot

In the warnings module it looks like one can tell python (filterwarnings(‘ignore’)) to ignore warning messages, but I can’t get it to work in blendere

Python 2.2.2
Blender 2.27

Thanx in advance

Stefano