0

I want to store the type in a string and then later be able to turn that string back into a usable type.

{"name": "Age", "type": "<class 'easylib.age.Age'>", "information": "{'birthdate': (2006, 12, 23)}"}

and then take the type part of that and convert it to an actual type that can be used later

I have tried to use the type(items["type"]) but all I get is str and need to be a easylib.age.Age type

Martin Evans
  • 45,791
  • 17
  • 81
  • 97

0 Answers0