I have my custom class that represents an object. I want to make that object compatible with "ast.literal_eval()"
How can I do that? I can add necessary method/code to my class if necessary.
You cannot. You will need to reimplement it from scratch, adding support for your class within it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With