Forwarded from Jakhongir Rakhmonov - IT
Updated my course. It now also teaches you how to write your own ORM:
https://mobile.twitter.com/testdrivenio/status/1366746063600762881
https://mobile.twitter.com/testdrivenio/status/1366746063600762881
Twitter
TestDriven.io
Building Your Own Python Web Framework - course updated! testdriven.io/courses/python… We added 4 new chapters on developing your own Object Relational Mapper (ORM) via Test-driven Development! by @rahmon0v #Python
#python
when we import a module(python file), python interpretator searches for that module name in sys.modules.
If it returns False, it will create a new module object and add to sys.modules and then code inside module is executed.
📌 Therefore, when we import the same module several times in one file, it is executed only once.
when we import a module(python file), python interpretator searches for that module name in sys.modules.
If it returns False, it will create a new module object and add to sys.modules and then code inside module is executed.
📌 Therefore, when we import the same module several times in one file, it is executed only once.