<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 22.10.12 13:52, Christian Tismer
wrote:<br>
</div>
<blockquote cite="mid:50853397.5070304@stackless.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">On 22.10.12 04:40, Andrew Moffat
wrote:<br>
</div>
<blockquote
cite="mid:CADijH1WVtA-8tfZTXz0oksmV0dHgbq8iqp2mHiUtNUF2ZAokuQ@mail.gmail.com"
type="cite"><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">The
main criticism has been the cleverness of the dynamic lookups.
There is also the ability to use a Command object for more
explicit calls:</span>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">cmd
= sh.Command("/some/command")</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">cmd(arg)</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">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.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">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.</div>
<br>
</blockquote>
<br>
This is what I don't like:<br>
<br>
subprocess is not used, but you implement stuff yourself.<br>
Instead of bypassing subprocess I would improve subprocess<br>
and not duplicate the windows problem, which is most of the<br>
time _not_ easy to get right.<br>
<br>
Can you explain why you went this path?<br>
<br>
</blockquote>
<br>
Sorry, while we are at it:<br>
The package name is a problem for me.<br>
A two-character name for a package??<br>
That is something that I would never do in the global package
namespace.<br>
It also is IMHO not nice to have such short names in PyPI.<br>
<pre class="moz-signature" cols="72">--
Christian Tismer :^) <a class="moz-txt-link-rfc2396E" href="mailto:tismer@stackless.com"><mailto:tismer@stackless.com></a>
Software Consulting : Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121 : *Starship* <a class="moz-txt-link-freetext" href="http://starship.python.net/">http://starship.python.net/</a>
14482 Potsdam : PGP key -> <a class="moz-txt-link-freetext" href="http://pgp.uni-mainz.de">http://pgp.uni-mainz.de</a>
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? <a class="moz-txt-link-freetext" href="http://www.stackless.com/">http://www.stackless.com/</a></pre>
</body>
</html>