Jan-30-2018, 09:20 AM
(This post was last modified: Jan-30-2018, 09:20 AM by Gribouillis.)
(Jan-30-2018, 09:07 AM)voltron Wrote: Is it possible to find class without knowing its name?If there is only a class definition in the string, the dict will contain only the keys '__builtins__' and 'YourClassName'.
If there are more objects in the dict, you can examine them with the inspect module to find the class.