[Python-ideas] Interest in seeing sh.py in the stdlib

Benjamin Peterson benjamin at python.org
Sun Oct 21 16:03:11 CEST 2012


Antoine Pitrou <solipsis at ...> writes:
> That said, I do find the "fancy wrapper" part somewhat pretty.

One thing that's not very pretty about it is the need to use "-" prefixed
parameters to get special behavior. It might be nicer if the command was an
object and you called special methods on it to get special behavior. Ex:

wget.background("example.com")
sudo.context("extra", "args")

Benjamin






More information about the Python-ideas mailing list