[issue3177] Add shutil.open

R. David Murray report at bugs.python.org
Mon Apr 23 16:12:58 CEST 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

Launch is far better than open for this, I think.  If someone can come up with an even better name, that would be good.  But I would not like to use open for this function, because it does not behave like other open functions.

The one exception I know of is webbrowser.  Webbrowser uses open, but the recommended way to call it is webbrowser.open(), which makes it clear you are opening it in the webbrowser (and opening the webbrowser if needed).  shutil.open would convey no such connotation, to my mind.  (Only windows does extension based application opening from the *shell* as far as I know.)

Perhaps 'wmopen' (for Window Manager Open)?

----------

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


More information about the Python-bugs-list mailing list