[Gdal-dev] gdal NG python bindings and deprecation warning

Frank Warmerdam warmerdam at pobox.com
Wed Oct 17 17:56:58 EDT 2007


Howard,

I have altered the GDAL NG Python bindings to issue a deprecation warning
for the first import of a non-namespaced module only in a given session.
This is accomplished by reporting the warning through gdal.deprecation_warn()
and having that function maintain a global variable on the gdal module.

This was folks will see the deprecation warning, but won't be overwhelmed by
a flurry of warnings.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list