Re: [gdal-dev] exceptions in bindings

2008-07-26 Thread Ari Jolma
Howard Butler kirjoitti: I'm not positive, but I think the rationale for this is in the Python case where we are using return codes rather than exceptions, the user needs to control the ability of when the CPL error reset happens. If a user were to forget to call the reset due to an error i

Re: [gdal-dev] exceptions in bindings

2008-07-24 Thread Howard Butler
On Jul 24, 2008, at 2:31 AM, Ari Jolma wrote: Hobu, Still looking at the GetHistogram binding, one thing that puzzles me is the CPLErrorReset call. It is there and it is also in all the Operations.i bindings. In Perl that leads to it being called twice (which probably does no harm), beca

[gdal-dev] exceptions in bindings

2008-07-24 Thread Ari Jolma
Hobu, Still looking at the GetHistogram binding, one thing that puzzles me is the CPLErrorReset call. It is there and it is also in all the Operations.i bindings. In Perl that leads to it being called twice (which probably does no harm), because all methods are wrapped by cpl_exceptions.i wit