package inheritance in python -


is there way package inheritance in python i.e. package has modules mod1, mod2 , other subpackages. package b should inherit modules , subpackages such should possible import b.mod1.

i have gone through package inheritance section in following link http://peak.telecommunity.com/doc/src/peak/config/modules.html, unable import peak.api. have tried importing modules of parent package in __init__ file of child package, did not help.

# package b __init__.py import mod1, mod2, modn 

and that's need.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -