hidden built-in module
gigs
gigs at hi.t-com.hr
Wed Mar 5 08:39:19 EST 2008
koara wrote:
> Hello, is there a way to access a module that is hidden because
> another module (of the same name) is found first?
>
> More specifically, i have my own logging.py module, and inside this
> module, depending on how initialization goes, i may want to do 'from
> logging import *' from the built-in logging.
>
> I hope my description was clear, cheers.
>
> I am using python2.4.
you can add your own logging module in extra directory that have __init__.py and
import it like: from extradirectory.logging import *
and builtin: from logging import *
More information about the Python-list
mailing list