[Python] eval to import a module

Discussão em 'Python' iniciado por Stack, Novembro 20, 2024.

  1. Stack

    Stack Membro Participativo

    I can't import a module using the eval() function.

    So, I have a function where if I do import vfs_tests as v it works. However, the same import using eval() like eval('import vfs_tests as v') throws a syntax error.

    Why is this so?

    Continue reading...

Compartilhe esta Página