get_pragma_text(object_, id)#

Get the text of the pragma ID for an object.

  • Return an empty string if the pragma does not exist, assuming this is the default value.

  • Raise the TypeError exception when the pragma exists but is not textual.

See the pragma example.

Parameters:
object_suite.Object

Element to search for the pragma.

idstr

ID of the pragma.

Returns:
str

Text of the found pragma or "".