Lawrence D'Oliveiro a écrit : > In message <[EMAIL PROTECTED]>, Steven D'Aprano wrote: > >> What does type(os.path) return when you try it? > > It returns the type of the value contained in that variable, of course:
Certainly not. You're confusing Python with C. In Python, 'variables' are *not* labels for memory locations containing values. Period > >>> import os > >>> os.path = 3 > >>> type(os.path) > <type 'int'> > > See, it's just a variable, like any other. This is bad faith. >>> import os >>> type(os.path) <type 'module'> See, this is a name bound to an object, like any other. -- http://mail.python.org/mailman/listinfo/python-list