Should it not be handled by a single import? i.e. import logging.
If I do not include import logging.config in my script, it gives:
AttributeError: ‘module’ object has no attribute ‘config’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
loggingis a package. Modules in packages aren’t imported until you (or something in your program) imports them. You don’t need bothimport loggingandimport logging.configthough: justimport logging.configwill make the nameloggingavailable already.