In Java, we just put a shitload of class files in a folder (package com.exmaple.shitload) and import com.example.shitload.* to import them all.
In Python, import com.example.shitload or from com.example.shitload import * doesn't work. If there is this __init__.py having __all__ = [shit1, shit2, ..., shit999] inside the shitload folder, then from com.example.shitload import * works, but I have to write a script just to create that __init__.py file.
Is there any way to make it just work like Java?
In Python, import com.example.shitload or from com.example.shitload import * doesn't work. If there is this __init__.py having __all__ = [shit1, shit2, ..., shit999] inside the shitload folder, then from com.example.shitload import * works, but I have to write a script just to create that __init__.py file.
Is there any way to make it just work like Java?