This is an archive of the discontinued LLVM Phabricator instance.

[Python] Implement truth testing for lldb.value
ClosedPublic

Authored by JDevlieghere on Sep 4 2019, 9:00 AM.

Details

Summary

Python 3 calls bool() instead of len() and lldb.value
only implemented the len method. This adds the bool() implementation.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Sep 4 2019, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2019, 9:00 AM
davide accepted this revision.Sep 4 2019, 11:09 AM
davide added a subscriber: davide.

LGTM

This revision is now accepted and ready to land.Sep 4 2019, 11:09 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2019, 11:58 AM