[Qgis-developer] New Python API , "modernity" and Python 2.6.x

Richard Duivenvoorde rdmailings at duif.net
Sat Jun 15 03:08:39 PDT 2013


On 15-06-13 11:33, gene wrote:
> I know that one must be absolutely "modern" (using Python 2.7.x,  too bad for
> the others) but the master version of QGIS for Mac Os X is based on the
> standard Apple Python, and , unfortunately for me and others, in Snow
> Leopard (10.6) it is the version 2.6.

Mmm, 2.6 I would not call that modern. Better try to do a pull request 
to Apple (mmm, can not find there repo on Github) for 2.7 or 3.0 ;-)

But seriously, if (as a dev) you run a system with a 2.7 python 
yourself, it is just hard to keep up with all the little tricks you have 
to do just to be backwords compatible. You just do not see when it goes 
wrong in 2.6...

And agreed, your fix seems trivial, and I think that is the power of 
using OpenSource and Github. You can have a look into the source, and 
even better (in your case) fix it \o/

Please clone the QGIS repo in github:

https://github.com/qgis/Quantum-GIS/blob/master/python/console/console_output.py#L135

push your fix and then ask for a so called 'pull request'. If your fix 
does not have any by-effects for other (really modern) python versions, 
I think the devs are really happy to add it.

I'm happy to help you with the Github stuff, or if it is really too much 
fuss for you now, I can do this for you.

Regards,

Richard Duivenvoorde

ps the hill can be a little steep to add these little fixes for the 
first time, but QGIS get's only better by this.


More information about the Qgis-developer mailing list