<s> import distutils <EOL> import distutils . log <EOL> print type ( distutils ) <EOL> print type ( distutils . log ) <EOL> import sys <EOL> print distutils . log == sys . modules [ '<STR_LIT>' ] <EOL> print '<STR_LIT>' in sys . modules <EOL> print distutils . log . __name__ <EOL> try : <EOL> import distutils . doesnt_exist <EOL> except ImportError , e : <EOL> print e <EOL> try : <EOL> import distutils7 . doesnt_exist <EOL> except ImportError , e : <EOL> print "<STR_LIT>" <EOL> import test_package <EOL> print hasattr ( test_package , '<STR_LIT>' ) <EOL> from test_package import import_target <EOL> print hasattr ( test_package , '<STR_LIT>' ) <EOL> import sys <EOL> print sys . modules [ '<STR_LIT>' ] . __name__ </s>
