peterhinch / micropython-samples

Assorted code ideas, unofficial MP FAQ, plus index to my other repositories.
MIT License
442 stars 91 forks source link

extend the feature __import__ #38

Open felinh opened 4 months ago

felinh commented 4 months ago

Hello Peter Thank you for your amazing work on microPython, it is a bible for me.

I have a question:

is it possible to extend the feature __import__(mymodule) but with the from for exemple:

from (mymodule) import (myFunction)

where mymodule and myFunction are string?

Thank you very much.

peterhinch commented 4 months ago

That is a good question. Unfortunately I don't know the answer.