[gdal-dev] Commit r19248

Even Rouault even.rouault at mines-paris.org
Mon Mar 29 13:50:11 EDT 2010


Andrey,

r19248 introduce Python specific code in general .i files. The consequence is 
that it breaks the Perl bindings (see 
http://buildbot.osgeo.org:8500/builders/telascience-quick/builds/312/steps/perl-make/logs/stdio). 

It also breaks Python3 compatibility as PyString_FromStringAndSize and 
PyString_AsString aren't available (though this could be fixed easily by 
using PyBytes_FromStringAndSize and PyBytes_AsString with a #if 
PY_VERSION_HEX >= 0x03000000)

I think the new implementation should be done only inside a #if 
defined(SWIGPYTHON) I guess, and the old implementation preserved for other 
binding languages.

Best regards

Even


More information about the gdal-dev mailing list