Avatar of LuckyLucks
LuckyLucks

asked on 

converting return from type() function in python to string

Hi

i have a return type from the type() function in python. I would like to convert this to string? is it possible and how?

something that would look like this:
<type 'A'>.tostring()

The __sr__ and __repr__ don't exist in class A.
Python

Avatar of undefined
Last Comment
pepr

8/22/2022 - Mon