<div dir="auto">+1 for dropping the old way</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 5, 2020, 7:59 AM Kai Mühlbauer <<a href="mailto:kai.muehlbauer@uni-bonn.de">kai.muehlbauer@uni-bonn.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm using GDAL since 2012 and one of the first things I've read is this:<br>
<br>
<a href="https://trac.osgeo.org/gdal/wiki/GdalOgrInPython" rel="noreferrer noreferrer" target="_blank">https://trac.osgeo.org/gdal/wiki/GdalOgrInPython</a><br>
<br>
The first mention of the deprecation of this import was added 13 years <br>
ago. To quote from there:<br>
<br>
"<br>
Additionally, there are five compatibility modules that are included but <br>
provide notices to state that they are deprecated and will be going <br>
away. If you are using GDAL 1.5 bindings, you should update your imports <br>
to utilize the usage above, but the following will work until at least <br>
GDAL 2.0.<br>
"<br>
<br>
Not sure, if it's worth the effort to reinstate that behaviour. People <br>
would have to move on anyway, sooner or later. Just my 2c.<br>
<br>
Huge thanks to Even and all the other people involved with GDAL and <br>
OSGEO for providing such great tools!<br>
<br>
Cheers,<br>
Kai<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Am 05.11.20 um 15:39 schrieb Even Rouault:<br>
> Hi,<br>
> <br>
> As noted in <a href="https://github.com/OSGeo/gdal/issues/3149" rel="noreferrer noreferrer" target="_blank">https://github.com/OSGeo/gdal/issues/3149</a>, the old way of<br>
> importing the Python bindings with "import gdal" instead of "from osgeo import<br>
> gdal" was accidentally broken in 3.2.0 . The old way has been officially<br>
> deprecated for many years.<br>
> <br>
> Any opinion if we should just acknowledge that removal by updating 3.2 NEWS or<br>
> restore back the old import way (per PR <a href="https://github.com/OSGeo/gdal/pull/" rel="noreferrer noreferrer" target="_blank">https://github.com/OSGeo/gdal/pull/</a><br>
> 3150) for 3.2.1 ? (whatever we do, at least people using 3.2.0 would be<br>
> impacted)<br>
> <br>
> Even<br>
> <br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div>