Boost C++ Libraries: Ticket #4701: get_override() exception set https://svn.boost.org/trac10/ticket/4701 <p> In base::get_override() PyObject_GetAttrString() is used to retrieve the attribute. But this function set exception in python if attribute is not found. Given patch solves it by using PyObject_HasAttrString() first and only if attribute exist, use PyObject_GetAttrString() </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4701 Trac 1.4.3 trigves@… Fri, 01 Oct 2010 10:51:17 GMT attachment set https://svn.boost.org/trac10/ticket/4701 https://svn.boost.org/trac10/ticket/4701 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_python_get_override.patch</span> </li> </ul> Ticket Dave Abrahams Fri, 01 Oct 2010 15:37:57 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4701#comment:1 https://svn.boost.org/trac10/ticket/4701#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Can you please submit a minimal test example that demonstrates incorrect behavior, whose behavior is fixed by the patch? You can use libs/python/test/polymorphism2.* as an example on which to base your tests, or, better yet, submit a patch that modifies that test to reveal the problem you're trying to solve. </p> <p> Until then, closing as invalid, but hoping you'l come back with a test and re-open the ticket </p> Ticket trigves@… Mon, 04 Oct 2010 09:33:06 GMT <link>https://svn.boost.org/trac10/ticket/4701#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4701#comment:2</guid> <description> <p> I'm sorry it was my fault. </p> <p> I've tried to isolated the problem for the past 2 days and found out my virtual function wasn't "exported" (name mismatch) in class therefore get_override() couldn't find it. </p> <p> Trigve </p> </description> <category>Ticket</category> </item> </channel> </rss>