The _______ file can control which modules are imported when 'from package import *' is invoked.
- import_rules.txt
- init.py
- main.py
- package_config.ini
The init.py file in a Python package can control which modules are imported when 'from package import *' is used. It allows you to define the package's public interface.
Loading...
Related Quiz
- How can you remove all items from a Python set?
- Which Python object can be used to create a simple context manager without defining a class?
- You are developing a web application where the front-end needs to continuously receive real-time updates from the Python back-end. Which technology would you use to implement this functionality?
- In Django, what is the name of the file used to define the URL patterns of an app?
- A ____ loop is used to iterate a block of code a specified number of times.