import os.path error (was Re: [Pythonmac-SIG] W section)

Just van Rossum just@letterror.com
Mon, 12 Mar 2001 18:55:19 +0100


At 11:00 AM -0500 12-03-2001, Richard Blumberg wrote:
>FWIW...
>
>'import os.path' works the same on my Mac and on my webserver
>(running freeBSD, python v. 2.0). That is, it imports the os module,
>entire, including the path module contained within the os module. In
>other words, on both platforms, 'import os' and 'import os.path' seem
>to have identical results. Not quite what I'd have expected, but not
>inconsistent between platforms.

If I recall correctly, this was actually added as a feature quite a while
ago: os isn't _really_ a package, but some sort of hack (?) was added to
make it _looks_ like a package, exactly for the purpose that "import
os.path" works.

Just

. . . . .
new address:
  Hasselaersplein 7
  2013 GB Haarlem
T +31 23 5427754
F +31 23 5427217