[Qgis-developer] SIP API Update
Nathan Woodrow
madmanwoo at gmail.com
Thu May 30 03:15:23 PDT 2013
The old way e.g toInt()[0] will not work anymore hence why we have to
update everything. The 1000 is a typo.
- Nathan
On Thu, May 30, 2013 at 7:07 PM, Jo <winfixit at gmail.com> wrote:
> 2013/5/30 Sandro Santilli <strk at keybit.net>
>
>> On Thu, May 30, 2013 at 04:12:15PM +1000, Nathan Woodrow wrote:
>>
>> > If you are not aware of what benefits the SIP API update will bring
>> here is
>> > a quick example:
>> >
>> > Before:
>> >
>> > >>> str(yourlineedit.text().toString())
>> > 'Hello World'
>> > >>> feature["column"].toInt()[0]
>> > 100
>> >
>> > After
>> >
>> > >>> yourlineedit.text()
>> > 'Hello World'
>> > >>> feature["column"]
>> > 1000
>> >
>> > It will make life for us and plugin authors a hell of a lot easier.
>>
>> Plugin authors want to maintain support for multiple qgis versions,
>> so changing an API is really only _more_ work, not _less_.
>>
>> Is there any facility to deal with that ?
>>
>
> Does the old way of doing it stop working? What I'm a bit worried about
> is that the result is 100 before and 1000 after, but I guess that's a typo?
>
> It seems the code will be cleaner and more concise, that's certainly a
> good thing.
>
> Jo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130530/ac7fa607/attachment.html>
More information about the Qgis-developer
mailing list