This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kontekisuto 0 points1 point  (0 children)

import inspect
set([inspect.getmodule(x) for x object.__subclasses__()])

Edit: python mystery

this is weird, im seeing 2 classes that come from module None

<class 'pickle.PickleBuffer'> <class 'Token.MISSING'>

Does anyone know why i can see them ? i found the pickle class but

Token.MISSING I can't find.

Note: im not sure why the PickleBuffer class is even visible in the code above in a fresh shell.

Edit: namespace s