Opened 13 years ago

#3661 new Tasks

An exceptions puzzler:

Reported by: troy d. straszheim Owned by: troy d. straszheim
Milestone: Component: python USE GITHUB
Version: Severity: Not Applicable
Keywords: Cc:

Description

Scenario: From python I call wrapped c++ code. This c++ code calls a python function via a boost::python::object and attempts to extract a value from what is returned. This causes a throw, and the exception propagates back up to python. It is possible for 'stuff' to get called in a function like this:

def foo():

try:

return

except:

stuff()

I don't have all the details handy about what is happening on the C++ side, this is a 'note to self' to investigate and document a best practice.

Change History (0)

Note: See TracTickets for help on using tickets.