Use the repr function to get the values used in the label. Document that repr is used for deciding what to show.