P
P
pcdesign2016-01-29 16:16:22
Python
pcdesign, 2016-01-29 16:16:22

How to get a list of loadable classes?

from models import db, User, News, Rek, Usekv, Firent, Drur,  Exge, Plt, Bi, DrtRu, Mal

How to get a list of loadable classes.
Well, in this case it's a list: [db, User, News, Rek, Usekv, Firent, Drur, Exge, Plt, Bi, DrtRu, Mal]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vov Vov, 2016-01-29
@balamut108

How about the inspect module?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question