if you want POSIX, import posix, not os

Greg Ewing greg.ewing at compaq.com
Wed Aug 18 00:05:41 CEST 1999


Charles G Waldman wrote:
> 
> I think it's good advice.  If you're not using features like
> "getpgrp", but more mundane things like "listdir", then

If you're not using "getpgrp", then you won't miss it
from the os module.

I agree with Dan in that the os module (or future generic 
replacement) should only contain portable functions. If 
you want a platform-specific function, you should have to 
import a platform-specific module.

Greg




More information about the Python-list mailing list