Chapter 11. Generated Print Methods

Table of Contents

Generated Python print_value Method Format and Calling Parameters
Generated Python __str__ Method Format and Calling Parameters

The -print or -genprint option causes printing methods to be generated. These functions can be used to print the contents of variables of generated types. The printing methods are generated in each of the generated Python classes that encapsulate multiple members.