<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/comp.lang.python</id>
  <title type="text">comp.lang.python Google Group</title>
  <subtitle type="text">
  The Python computer language.
  </subtitle>
  <link href="/group/comp.lang.python/feed/atom_v1_0_msgs.xml" rel="self" title="comp.lang.python feed"/>
  <updated>2009-11-24T02:08:24Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Lie Ryan</name>
  <email>lie.1...@gmail.com</email>
  </author>
  <updated>2009-11-24T02:08:24Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/f62782ae0df1b296/8a5b072a92cb9ba6?show_docid=8a5b072a92cb9ba6</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/f62782ae0df1b296/8a5b072a92cb9ba6?show_docid=8a5b072a92cb9ba6"/>
  <title type="text">Re: profiling differences using an extra function call</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gerald Walker</name>
  <email>geraldwalk...@gmail.com</email>
  </author>
  <updated>2009-11-24T02:06:05Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/37322eddc32f9f99?show_docid=37322eddc32f9f99</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/37322eddc32f9f99?show_docid=37322eddc32f9f99"/>
  <title type="text">Re: Waiting for receiving data</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>geremy condra</name>
  <email>debat...@gmail.com</email>
  </author>
  <updated>2009-11-24T02:03:38Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/2cdc437b37993421/d0e0fc9b4ea36018?show_docid=d0e0fc9b4ea36018</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/2cdc437b37993421/d0e0fc9b4ea36018?show_docid=d0e0fc9b4ea36018"/>
  <title type="text">Re: Any elegant way to construct the complete $k$-partite graph in Python?</title>
  <summary type="html" xml:space="preserve">
  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).
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gerald Walker</name>
  <email>geraldwalk...@gmail.com</email>
  </author>
  <updated>2009-11-24T02:01:55Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/099b8dd1650d005c?show_docid=099b8dd1650d005c</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/099b8dd1650d005c?show_docid=099b8dd1650d005c"/>
  <title type="text">Re: Waiting for receiving data</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Benjamin Kaplan</name>
  <email>benjamin.kap...@case.edu</email>
  </author>
  <updated>2009-11-24T01:59:39Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/808b8dae23796fb4?show_docid=808b8dae23796fb4</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/808b8dae23796fb4?show_docid=808b8dae23796fb4"/>
  <title type="text">Re: More precise document on os.path.normpath()</title>
  <summary type="html" xml:space="preserve">
  Just file a bug report listing what part you find unclear and what you &lt;br&gt; suggest they put to clarify it.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gerald Walker</name>
  <email>geraldwalk...@gmail.com</email>
  </author>
  <updated>2009-11-24T01:53:23Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/0eb4fb482a5124bf?show_docid=0eb4fb482a5124bf</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/69bebdb8538d22b4/0eb4fb482a5124bf?show_docid=0eb4fb482a5124bf"/>
  <title type="text">Re: Waiting for receiving data</title>
  <summary type="html" xml:space="preserve">
  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)
  </summary>
  </entry>
  <entry>
  <author>
  <name>Peng Yu</name>
  <email>pengyu...@gmail.com</email>
  </author>
  <updated>2009-11-24T01:52:43Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/07d841228e3158ef?show_docid=07d841228e3158ef</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/91b9d01d52c667b0/07d841228e3158ef?show_docid=07d841228e3158ef"/>
  <title type="text">More precise document on os.path.normpath()</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ethan Furman</name>
  <email>et...@stoneleaf.us</email>
  </author>
  <updated>2009-11-24T01:44:46Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/752fd9fe0638b49e?show_docid=752fd9fe0638b49e</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/752fd9fe0638b49e?show_docid=752fd9fe0638b49e"/>
  <title type="text">Re: Relative versus absolute paths on Windows</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Terry Reedy</name>
  <email>tjre...@udel.edu</email>
  </author>
  <updated>2009-11-24T01:48:40Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/72ea61bd64aa36fd/19c7afce6982d2aa?show_docid=19c7afce6982d2aa</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/72ea61bd64aa36fd/19c7afce6982d2aa?show_docid=19c7afce6982d2aa"/>
  <title type="text">Re: UnicodeDecodeError? Argh! Nothing works! I&#39;m tired and hurting and...</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Lie Ryan</name>
  <email>lie.1...@gmail.com</email>
  </author>
  <updated>2009-11-24T01:40:00Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/57fd5ada527cd294?show_docid=57fd5ada527cd294</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/57fd5ada527cd294?show_docid=57fd5ada527cd294"/>
  <title type="text">Re: Capturing output of os.system to a string</title>
  <summary type="html" xml:space="preserve">
  You can&#39;t with os.system; use subprocess module instead.
  </summary>
  </entry>
  <entry>
  <author>
  <name>gerry.butler</name>
  <email>gabut...@acslink.net.au</email>
  </author>
  <updated>2009-11-24T01:27:50Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/a278c40fba864af8?show_docid=a278c40fba864af8</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/3f91b4c3c1ec0045/a278c40fba864af8?show_docid=a278c40fba864af8"/>
  <title type="text">Capturing output of os.system to a string</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Christian Heimes</name>
  <email>li...@cheimes.de</email>
  </author>
  <updated>2009-11-24T01:23:19Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/50925d9bf59fdf11?show_docid=50925d9bf59fdf11</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/21106d3bb69c5a49/50925d9bf59fdf11?show_docid=50925d9bf59fdf11"/>
  <title type="text">Re: Relative versus absolute paths on Windows</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Terry Reedy</name>
  <email>tjre...@udel.edu</email>
  </author>
  <updated>2009-11-24T01:09:18Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/495fe80611fbdd54/d3253fe1beb1730f?show_docid=d3253fe1beb1730f</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/495fe80611fbdd54/d3253fe1beb1730f?show_docid=d3253fe1beb1730f"/>
  <title type="text">Re: Line-continuation &quot;Anti-Idiom&quot; and with statement</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Terry Reedy</name>
  <email>tjre...@udel.edu</email>
  </author>
  <updated>2009-11-24T01:05:36Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/b5628c8836ffbd8c/3b0ad3f1b3a24d3f?show_docid=3b0ad3f1b3a24d3f</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/b5628c8836ffbd8c/3b0ad3f1b3a24d3f?show_docid=3b0ad3f1b3a24d3f"/>
  <title type="text">Re: Beginning Question about Python functions, parameters...</title>
  <summary type="html" xml:space="preserve">
  Hmmm, as I understood the code, either that should be ... &#39;last&#39;: {} ... &lt;br&gt; before the first store(), as you seem to be thinking below, or after the &lt;br&gt; first store(), &lt;br&gt; {&#39;middle&#39;: {&#39;Larry&#39;: [&#39;John Larry Smith&#39;], &lt;br&gt; &#39;last&#39;: {&#39;Smith&#39;: [&#39;John Larry Smith&#39;], &lt;br&gt; &#39;first&#39;: {&#39;John&#39; &amp;quot; [&#39;John Larry Smith&#39;]} &lt;br&gt; or the same with [[&#39;John&#39;,&#39;Larry&#39;,&#39;Smith&#39;]] for each entry (do not
  </summary>
  </entry>
  <entry>
  <author>
  <name>r</name>
  <email>rt8...@gmail.com</email>
  </author>
  <updated>2009-11-24T00:48:48Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/ab562aef7bc55c60/74fdb0618682cffe?show_docid=74fdb0618682cffe</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/ab562aef7bc55c60/74fdb0618682cffe?show_docid=74fdb0618682cffe"/>
  <title type="text">Re: Python &amp; OpenOffice Spreadsheets</title>
  <summary type="html" xml:space="preserve">
  I find the syntax far to complicated than it should be. Here is an &lt;br&gt; example just to insert some text.. &lt;br&gt; import uno &lt;br&gt; &amp;quot;&amp;quot;&amp;quot; Here is the sequence of things the lines do: &lt;br&gt; 1. Get the uno component context from the PyUNO runtime &lt;br&gt; 2. Create the UnoUrlResolver &lt;br&gt; 3. Get the central desktop object &lt;br&gt; 4. Declare the ServiceManager
  </summary>
  </entry>
</feed>
