importing a class thru a variable?
Aaron Brady
castironpi at gmail.com
Tue Oct 21 20:27:46 EDT 2008
On Oct 21, 6:07 pm, john <osbor... at gmail.com> wrote:
> Hi,
> This is probably a question of questionable sanity, due to the fact I
A question of questionable? Unacceptable. None of those, please.
Yes, __import__ will do dynamics.
Check your terminology. 'arguments that get passed to the class'
doesn't evaluate right; classes don't have arguments. You might mean
'import a module', but modules don't take arguments either. You might
mean 'import a factory function', which returns a class, which the
language can do, but it didn't sound like it.
More information about the Python-list
mailing list