Re: [Tutor] importing modules and packages

2011-10-31 Thread neubyr
On Mon, Oct 31, 2011 at 4:38 AM, Steven D'Aprano wrote: > neubyr wrote: >> >> Is it possible to tell whether import statement is importing a module >> or package?  I am going through some example code with some import >> statements - like 'import os, sys, time', 'import packed'. I know os, >> sys

Re: [Tutor] importing modules and packages

2011-10-31 Thread Steven D'Aprano
neubyr wrote: Is it possible to tell whether import statement is importing a module or package? I am going through some example code with some import statements - like 'import os, sys, time', 'import packed'. I know os, sys and time are (built-in) modules and 'packed' is a package here . But can

[Tutor] importing modules and packages

2011-10-30 Thread neubyr
Is it possible to tell whether import statement is importing a module or package? I am going through some example code with some import statements - like 'import os, sys, time', 'import packed'. I know os, sys and time are (built-in) modules and 'packed' is a package here . But can I determine whe