[Qgis-developer] OpenLayers plugin release and Python API breaks

Matthias Kuhn matthias.kuhn at gmx.ch
Thu Jan 24 00:43:28 PST 2013


Hi Jürgen

On 01/24/2013 09:37 AM, Jürgen E. Fischer wrote:
> Hi Matthias,
>
> On Thu, 24. Jan 2013 at 08:59:47 +0100, Matthias Kuhn wrote:
>> The question is, where and when to communicate it to the developer:
>>   * The MessageLog (why not)
> Already done in f2029b4ec.
Nice.
How do I need to tag deprecated methods to trigger this?
>
> Python 2.7 disabled the deprecation warnings by default.  But the would have
> gone to stderr anyway (which is "invisible" for most users).
>
>> I would propose to add a QGS_DEPRECATED macro which could be placed in
>> any deprecated method which will take appropriate actions and
>> deprecation methods will appear in a standardized way.
> We (or better put Qt) already have that too (Q_DECL_DEPRECATED).  But there
> it's a compile time warning - and apparently not everyone builds with PEDANTIC
> enabled...
... and for python plugins there is no compile time ...
>
> Jürgen
>

Matthias


More information about the Qgis-developer mailing list