Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#4993 closed enhancement (fixed)

(Re)add support for custom error handlers in python bindings

Reported by: lpinner Owned by: hobu
Priority: normal Milestone: 1.10.0
Component: PythonBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

Based on a post from Frank on gdal-dev (almost ten years ago!), it looks like there used to be support to pass a python function to gdal.PushErrorHandler? in the old style hand rolled python bindings.

If possible, could you add support to pass a python callable (not just functions) to the new swig bindings?

Change History (2)

comment:1 Changed 6 years ago by Even Rouault

Milestone: 1.10.0
Resolution: fixed
Status: newclosed

r25663 swig/include/ swig/python/extensions/ swig/python/osgeo/ ../autotest/gcore/basic_test.py -m "Python bindings: make gdal.PushErrorHandler?() also accept a Python error handler function as an argument (#4993)"

comment:2 Changed 6 years ago by lpinner

Thanks!

Note: See TracTickets for help on using tickets.