In a module residing inside a package, i have the need to use a function defined within the __init__.py of that package. how can i import the package within the
__init__.py
I'm not totally sure what the situation is, but this may solve your "different name" problem:
import __init__ as top top.some_function()
Or maybe?:
from __init__ import some_function some_function()