[Python-ideas] Interest in seeing sh.py in the stdlib
tismer at stackless.com
Mon Oct 22 14:01:38 CEST 2012
On 22.10.12 13:52, Christian Tismer wrote:
> On 22.10.12 04:40, Andrew Moffat wrote:
>> The main criticism has been the cleverness of the dynamic lookups.
>> There is also the ability to use a Command object for more explicit
>> cmd = sh.Command("/some/command")
>> So you have the best of both worlds. If you like the idea of the
>> programs being attributes on the module, you can use the advertised
>> way, if you don't, you can use the more explicit way.
>> Windows support would be a little more difficult. It existed in an
>> old version of sh, when it was merely a wrapper around the subprocess
>> module. Now that sh.py no longer relies on the subprocess module and
>> does fork-exec itself (in order to get more flexible access to the
>> processes), Windows is currently unsupported. My current
>> understanding is that most of the value comes from the linux/OSX
>> folks, but Windows support is scheduled for the future.
> This is what I don't like:
> subprocess is not used, but you implement stuff yourself.
> Instead of bypassing subprocess I would improve subprocess
> and not duplicate the windows problem, which is most of the
> time _not_ easy to get right.
> Can you explain why you went this path?
Sorry, while we are at it:
The package name is a problem for me.
A two-character name for a package??
That is something that I would never do in the global package namespace.
It also is IMHO not nice to have such short names in PyPI.
Christian Tismer :^) <mailto:tismer at stackless.com>
Software Consulting : Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/
14482 Potsdam : PGP key -> http://pgp.uni-mainz.de
phone +49 173 24 18 776 fax +49 (30) 700143-0023
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas