<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>comp.lang.python Google Group</title>
  <link>http://groups.google.com/group/comp.lang.python</link>
  <description>The Python computer language.</description>
  <language>en</language>
  <item>
  <title>Re: Capturing output of os.system to a string</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/4a9c1d48ba92e550?show_docid=4a9c1d48ba92e550</link>
  <description>
  Thank you. I&#39;ll look at subprocess. &lt;br&gt; I have since found that commands will do it too, eg, &lt;br&gt; (status, txt) = commands.getstatusoutput(&#39;whoa mi&#39;) &lt;br&gt; or txt = commands.getoutput(&#39;whoami&#39;)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/4a9c1d48ba92e550?show_docid=4a9c1d48ba92e550</guid>
  <author>
  gabut...@acslink.net.au
  (gerry.butler)
  </author>
  <pubDate>Tue, 24 Nov 2009 02:11:08 UT
</pubDate>
  </item>
  <item>
  <title>Re: Any elegant way to construct the complete $k$-partite graph in Python?</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/2cdc437b37993421/e64c22592569a28f?show_docid=e64c22592569a28f</link>
  <description>
  Sorry, misread- to generate a k-partite graph, you&#39;ll need a bit &lt;br&gt; more legwork. Give me a bit and I&#39;ll add it to graphine. &lt;br&gt; Geremy Condra
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/2cdc437b37993421/e64c22592569a28f?show_docid=e64c22592569a28f</guid>
  <author>
  debat...@gmail.com
  (geremy condra)
  </author>
  <pubDate>Tue, 24 Nov 2009 02:10:37 UT
</pubDate>
  </item>
  <item>
  <title>Re: profiling differences using an extra function call</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/f62782ae0df1b296/8a5b072a92cb9ba6?show_docid=8a5b072a92cb9ba6</link>
  <description>
  That&#39;s because there is a function call overhead. &lt;br&gt; A very simple function body will (in terms of percentage) have larger &lt;br&gt; function overhead. With a slightly more complex function body, the body &lt;br&gt; will takes much more time than the function call overhead. &lt;br&gt; Look in the absolute numbers: 0.666 CPU seconds vs. 0.248 CPU seconds
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/f62782ae0df1b296/8a5b072a92cb9ba6?show_docid=8a5b072a92cb9ba6</guid>
  <author>
  lie.1...@gmail.com
  (Lie Ryan)
  </author>
  <pubDate>Tue, 24 Nov 2009 02:08:24 UT
</pubDate>
  </item>
  <item>
  <title>Re: Waiting for receiving data</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/37322eddc32f9f99?show_docid=37322eddc32f9f99</link>
  <description>
  Typo, edited for clarity: &lt;br&gt; That is: &amp;quot;..the thread can go *away* by itself after the default timeout &lt;br&gt; expires.&amp;quot; You don&#39;t need to explicitly kill it.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/37322eddc32f9f99?show_docid=37322eddc32f9f99</guid>
  <author>
  geraldwalk...@gmail.com
  (Gerald Walker)
  </author>
  <pubDate>Tue, 24 Nov 2009 02:06:05 UT
</pubDate>
  </item>
  <item>
  <title>Re: Any elegant way to construct the complete $k$-partite graph in Python?</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/2cdc437b37993421/d0e0fc9b4ea36018?show_docid=d0e0fc9b4ea36018</link>
  <description>
  On Mon, Nov 23, 2009 at 7:05 PM, Paul Miller &lt;br&gt; Graphine does this with the following: &lt;br&gt; from base import Graph &lt;br&gt; def K(n): &lt;br&gt; &amp;quot;&amp;quot;&amp;quot;Generates a completely connected undirected graph of size n. &lt;br&gt; The verticies are numbered [0, n). &lt;br&gt; The edges are named after the verticies they connect such that &lt;br&gt; an edge connected verticies 1 and 2 is named (1,2).
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/2cdc437b37993421/d0e0fc9b4ea36018?show_docid=d0e0fc9b4ea36018</guid>
  <author>
  debat...@gmail.com
  (geremy condra)
  </author>
  <pubDate>Tue, 24 Nov 2009 02:03:38 UT
</pubDate>
  </item>
  <item>
  <title>Re: Waiting for receiving data</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/099b8dd1650d005c?show_docid=099b8dd1650d005c</link>
  <description>
  Also, if you are using multiple threads to retrieve the xml source(s) &lt;br&gt; and any thread blocks due to network problems, the thread can go way by &lt;br&gt; itself after the default timeout expires.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/099b8dd1650d005c?show_docid=099b8dd1650d005c</guid>
  <author>
  geraldwalk...@gmail.com
  (Gerald Walker)
  </author>
  <pubDate>Tue, 24 Nov 2009 02:01:55 UT
</pubDate>
  </item>
  <item>
  <title>Re: More precise document on os.path.normpath()</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/808b8dae23796fb4?show_docid=808b8dae23796fb4</link>
  <description>
  Just file a bug report listing what part you find unclear and what you &lt;br&gt; suggest they put to clarify it.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/808b8dae23796fb4?show_docid=808b8dae23796fb4</guid>
  <author>
  benjamin.kap...@case.edu
  (Benjamin Kaplan)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:59:39 UT
</pubDate>
  </item>
  <item>
  <title>Re: Waiting for receiving data</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/0eb4fb482a5124bf?show_docid=0eb4fb482a5124bf</link>
  <description>
  import socket &lt;br&gt; from urllib2 import urlopen &lt;br&gt; socket.setdefaulttimeout(0.01) &lt;br&gt; xml_source = &amp;quot;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://mlb.mlb.com/partnerxml/gen/news/rss/mlb.xml&quot;&gt;[link]&lt;/a&gt;&amp;quot; &lt;br&gt; try: &lt;br&gt; data = urlopen(xml_source) &lt;br&gt; except urllib2.URLError, e: &lt;br&gt; print &#39;URLError = &#39; + str(e.reason)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/0eb4fb482a5124bf?show_docid=0eb4fb482a5124bf</guid>
  <author>
  geraldwalk...@gmail.com
  (Gerald Walker)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:53:23 UT
</pubDate>
  </item>
  <item>
  <title>More precise document on os.path.normpath()</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/07d841228e3158ef?show_docid=07d841228e3158ef</link>
  <description>
  After I tried os.path.normpath(), it is clear that the function &lt;br&gt; doesn&#39;t return the trailing &#39;/&#39;, if the path is a directory. But this &lt;br&gt; fact is not documented. Should this be documented in future release of &lt;br&gt; python. &lt;br&gt; Also, I found the documentation of some functions in os.path are not &lt;br&gt; clear. I have to try them in order to understand them for corner
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/07d841228e3158ef?show_docid=07d841228e3158ef</guid>
  <author>
  pengyu...@gmail.com
  (Peng Yu)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:52:43 UT
</pubDate>
  </item>
  <item>
  <title>Re: Relative versus absolute paths on Windows</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/752fd9fe0638b49e?show_docid=752fd9fe0638b49e</link>
  <description>
  Given that it&#39;s documented to work that way, I&#39;ll agree that this is not &lt;br&gt; a bug -- however, that doesn&#39;t mean it&#39;s /right/. &lt;br&gt; From the documentation: &lt;br&gt; Join one or more path components *intelligently*. &lt;br&gt; To me, that means taking into account the bizarre in the MS world of &lt;br&gt; multiple roots on a system... I know I have looked at os.path.join a
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/752fd9fe0638b49e?show_docid=752fd9fe0638b49e</guid>
  <author>
  et...@stoneleaf.us
  (Ethan Furman)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:44:46 UT
</pubDate>
  </item>
  <item>
  <title>Re: UnicodeDecodeError? Argh! Nothing works! I&#39;m tired and hurting and...</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/72ea61bd64aa36fd/19c7afce6982d2aa?show_docid=19c7afce6982d2aa</link>
  <description>
  I believe this is the same as &lt;br&gt; write = sys.stdout.write &lt;br&gt; though you never use it that I see. &lt;br&gt; I presume you are expecting the line to be undecoded bytes, as with &lt;br&gt; open(f,&#39;rb&#39;). To be sure, add write(type(line)). &lt;br&gt; I do not understand why you are writing since you just wanted to look. &lt;br&gt; In any case, you open in text mode.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/72ea61bd64aa36fd/19c7afce6982d2aa?show_docid=19c7afce6982d2aa</guid>
  <author>
  tjre...@udel.edu
  (Terry Reedy)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:48:40 UT
</pubDate>
  </item>
  <item>
  <title>Re: Capturing output of os.system to a string</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/57fd5ada527cd294?show_docid=57fd5ada527cd294</link>
  <description>
  You can&#39;t with os.system; use subprocess module instead.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/57fd5ada527cd294?show_docid=57fd5ada527cd294</guid>
  <author>
  lie.1...@gmail.com
  (Lie Ryan)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:40:00 UT
</pubDate>
  </item>
  <item>
  <title>Capturing output of os.system to a string</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/a278c40fba864af8?show_docid=a278c40fba864af8</link>
  <description>
  How do I capture output to a string? For example, the output of &lt;br&gt; os.system(&#39;whoami&#39;). &lt;br&gt; I guess I need to redirect stdout, but I&#39;m a total beginner, and I &lt;br&gt; haven&#39;t been able to find out from the tutorials how to do this.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/a278c40fba864af8?show_docid=a278c40fba864af8</guid>
  <author>
  gabut...@acslink.net.au
  (gerry.butler)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:27:50 UT
</pubDate>
  </item>
  <item>
  <title>Re: Relative versus absolute paths on Windows</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/50925d9bf59fdf11?show_docid=50925d9bf59fdf11</link>
  <description>
  No, it&#39;s not a bug. Since \bar is an absolute path, all path segments &lt;br&gt; before the absolute path are ignored. This is documented at &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://docs.python.org/library/os.path.html#os.path.join&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; True &lt;br&gt; &#39;\\bar&#39; &lt;br&gt; Posixpath follows the same rules, too. &lt;br&gt; &#39;/var&#39; &lt;br&gt; &#39;../egg/var&#39; &lt;br&gt; Christian
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/50925d9bf59fdf11?show_docid=50925d9bf59fdf11</guid>
  <author>
  li...@cheimes.de
  (Christian Heimes)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:23:19 UT
</pubDate>
  </item>
  <item>
  <title>Re: Line-continuation &quot;Anti-Idiom&quot; and with statement</title>
  <link>http://groups.google.com/group/comp.lang.python/browse_thread/thread/495fe80611fbdd54/d3253fe1beb1730f?show_docid=d3253fe1beb1730f</link>
  <description>
  MRAB wrote: &lt;br&gt; Then a line ending with &#39;, &#39; would be different from one ending with &lt;br&gt; &#39;,&#39;, useless space and tabs at ends of lines were *always* ignored. Not &lt;br&gt; sure whether that would create problems though.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.python/browse_thread/thread/495fe80611fbdd54/d3253fe1beb1730f?show_docid=d3253fe1beb1730f</guid>
  <author>
  tjre...@udel.edu
  (Terry Reedy)
  </author>
  <pubDate>Tue, 24 Nov 2009 01:09:18 UT
</pubDate>
  </item>
  </channel>
</rss>
