This is an archive of the discontinued LLVM Phabricator instance.

Add PythonBoolean type to PythonDataObjects
ClosedPublic

Authored by tatyana-krasnukha on Feb 6 2019, 6:38 AM.

Details

Summary

When reading some settings from a Python script, getting a boolean option via StructuredData::Object::GetAsBoolean fails unexpectedly: PyBool_Type values fall to PythonInteger (and StructuredData::Integer as well). This patch adds PythonBoolean type to make GetAsBoolean working for Python.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2019, 6:38 AM
zturner accepted this revision.Feb 15 2019, 1:07 PM
This revision is now accepted and ready to land.Feb 15 2019, 1:07 PM
This revision was automatically updated to reflect the committed changes.