Author giampaolo.rodola
Recipients denilsonsa, giampaolo.rodola, pitrou, zbysz
Date 2011-12-16.15:50:35
SpamBayes Score 6.62864e-12
Marked as misclassified No
Message-id <1324050636.09.0.425598992157.issue13609@psf.upfronthosting.co.za>
In-reply-to
Content
> The docstring for shutil says: Utility functions for copying and 
> archiving files and directory trees. So it doesn't seem to fit at all.

Well... shutil should stand for "shell utilities" and it already contains stuff which is not strictly related to file/directory direct operations (see shutil.disk_usage and upcoming shutil.which).

But maybe you're right... I don't know...
My point is that a function which attempts different fallbacks (ask OS -> ask os.environ -> return (None, None) / raise exception) sounds more like an utility function rather than something belonging to os module, where you tipically see 1-to-1 interfaces for the underlying system functions.
History
Date User Action Args
2011-12-16 15:50:36giampaolo.rodolasetrecipients: + giampaolo.rodola, pitrou, zbysz, denilsonsa
2011-12-16 15:50:36giampaolo.rodolasetmessageid: <1324050636.09.0.425598992157.issue13609@psf.upfronthosting.co.za>
2011-12-16 15:50:35giampaolo.rodolalinkissue13609 messages
2011-12-16 15:50:35giampaolo.rodolacreate