You can read this article: Why is python single threaded
You can also read more about memory management in Python.
- Whole content at once.
- Read it line by line. This is very important as you cannot read very large files at once.
- Normal Mode
- Append Mode. Also understand about file descriptors.
Task 3: Try to write a program that makes parallel call to github api to get the details of repo and then merge them to create a database in a file.
Use threading library to create the above program.
You can read this article for more: Threads in python