Dynamic classes

  • Thread starter Steven Johnston
  • Start date
S

Steven Johnston

Hi,

Sorry to mail this list (not sure how big it is) but I have a problem with
python and was wondering if you may be able to help.

I have a package that people can add classes to (just copy a class to that
folder)

But now I would like to create an instance of the classes based on a set of
rules (depending on the __init__ signature)

So my question is: Is there a way of finding out what the signature of a
class is dynamically without trying to create an instance , and without
writing a text parser to read the file?


Many thanks in advance
Steven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,662
Latest member
sxarexu

Latest Threads

Top