On Sun, 2010-09-19 at 21:36 +0200, Ofnuts wrote:
> On 19/09/2010 20:44, Sven Neumann wrote:
> >
> > First of all, why are you using the PDB directly instead of using the
> > Python objects?
> Ignorance, defiance, and laziness. The doc for the Image class 
> (http://www.gimp.org/docs/python/index.html) has around 20 methods. 
> Compare to the number of gimp_image_* functions in the PDB (not speaking 
> of all the Python class methods/attributes vs the whole PDB)(*) For a 
> newcomer, it looks like using the Python classes isn't going to cut it, 
> since PDB functions will have to be used anyway, so why bother with two 
> ways of doing things?

Because the 20 methods that are available in the Image class cover about
95% of what people actually need. It's much more convenient and you can
of course still use methods from the pdb module.

Oh, and the docs you pointed at are hopelessly outdated and should
probably be taken off-line. You better refer to the help you get in the
Python console.


Gimp-developer mailing list

Reply via email to