5
Answers

difference between import modules

Hi

look at this two lines:

from datetime import timedelta #  = import class timedelta from module datetime => ok
from datetime.timedelta import * # = import eveything from class timedelta from module datetime =>error

Where Is the difference between both lines? I get the error import datetime.timedelta not resolved at the second line.

Thanks

V.

Answers (5)