Boost C++ Libraries: Ticket #3356: operator! does not check for errors https://svn.boost.org/trac10/ticket/3356 <p> operator! (as well as the bool conversion operator) call PyObject_IsTrue, and convert the result to a boolean, even though the result may be an error (e.g., -1). </p> <p> Here is a fix. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3356 Trac 1.4.3 Stefan Seefeld Wed, 19 Aug 2009 14:55:54 GMT attachment set https://svn.boost.org/trac10/ticket/3356 https://svn.boost.org/trac10/ticket/3356 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch</span> </li> </ul> Ticket Ralf W. Grosse-Kunstleve Sat, 22 Aug 2009 00:22:03 GMT status changed; cc, resolution set https://svn.boost.org/trac10/ticket/3356#comment:1 https://svn.boost.org/trac10/ticket/3356#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">rwgk@…</span> added </li> <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">fixed</span> </li> </ul> <p> I've checked in a similar patch as svn trunk rev. 55708. The differences are to use the throw_error_already_set() function and to stay a close as possible to the original code (avoid == 1). I'll ask Beman for permission to merge the change into the release branch. Ralf </p> Ticket Ralf W. Grosse-Kunstleve Sun, 23 Aug 2009 21:24:05 GMT <link>https://svn.boost.org/trac10/ticket/3356#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3356#comment:2</guid> <description> <p> For the records: svn rev. 55742 merges the patch into the release branch. </p> </description> <category>Ticket</category> </item> </channel> </rss>