[issue16353] add function to os module for getting path to default shell

Chris Jerdonek report at bugs.python.org
Sat Nov 3 15:13:20 CET 2012


Chris Jerdonek added the comment:

+++ b/Lib/shutil.py	Sat Nov 03 13:32:05 2012 +0200
+
+def get_default_shell_path():

Why is the patch putting the function in the shutil module?  The function should go in the os module as the title and comments of this issue state.  shutil seems misplaced to me.

For example, the description of shutil in the docs is, "The shutil module offers a number of high-level operations on files and collections of files.  In particular, functions are provided which support file copying and removal."  In contrast, the description of the os module is, "This module provides a portable way of using operating system dependent functionality."  The default shell is operating system dependent functionality.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16353>
_______________________________________


More information about the Python-bugs-list mailing list