importing non-module python files (intermediate) anthony explains #309

preview_player
Показать описание
today I show how to import non-modules in python -- either with invalid module names or files which aren't .py at all!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

"oh, he's talking about a submodule that is actually called machinery, huh" -me, just now

b_rk
Автор

Awesome work, Anthony. Maybe you can talk about Buffer? This is something I always had doubts. Once again, awesome work!!!

samborba
Автор

Do u have a video of how to create/impor ta c module for a python program?

talalkalai
Автор

__import__() accepting non valid identifier strings is not a bug, you would still have to assign the module object returned to a valid identifier to use it normally

dennisvlahos
Автор

i need to know how to import files from other folders in a project. i've been having a lot of trouble with this lately

supplychainoperationsresearch