Be sure to review our Idea Submission Guidelines for more information!
Submission GuidelinesWhen developing in Python using custom objects - you often use print( object) or str(object) to see what's in this object quickly.
For example
myDictionary = {
'CarType': 'Ford',
'Cost': 20000}
this defines a dictionary. If I want to quickly look into these to see what's there I can use:
print(myDictionary)
# gives {'Cost': 20000, 'CarType': 'Ford'}
str(myDictionary)
"{'Cost': 20000, 'CarType': 'Ford'}"
This is incredibly useful for debugging and to understand how these custom objects / classes work.
Please could you add an overload to the str() method to allow this kind of simple debugging and understanding for all the classes used in the Alteryx Python SDK (https://help.alteryx.com/20193/developer-help/sdks/build-custom-tools/python-engine-sdk/classes)
For example:
str(record_info_in) which is of type <class 'AlteryxPythonSDK.RecordInfo'>) gives you <AlteryxPythonSDK.RecordInfo object at 0x000001A2C48C3190> which is not very helpful.
Much more useful would be to flatten this into a string format or dictionary so that users can see what's in the RecordInfo object that they're working with to make delivery and debugging easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.