<?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-13T04:10:29Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>r</name>
  <email>rt8...@gmail.com</email>
  </author>
  <updated>2009-11-13T04:10:29Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/55e7578903747dc4/49b505cd7f7a8b80?show_docid=49b505cd7f7a8b80</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/55e7578903747dc4/49b505cd7f7a8b80?show_docid=49b505cd7f7a8b80"/>
  <title type="text">Re: New syntax for blocks</title>
  <summary type="html" xml:space="preserve">
  On Nov 12, 7:44 pm, Steven D&#39;Aprano &amp;lt;st...@REMOVE-THIS- &lt;br&gt; cybersource.com.au&amp;gt; wrote &lt;br&gt; OK, what *if* the variable would only be valid in *that* block and &lt;br&gt; *that* block only! My first idea was to have the variable avaiable in &lt;br&gt; the local scope (if that is correct terminology?) so if the &lt;br&gt; conditional was in global space the value would be available in global
  </summary>
  </entry>
  <entry>
  <author>
  <name>hetchkay</name>
  <email>hetch...@gmail.com</email>
  </author>
  <updated>2009-11-13T04:07:15Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/5e26cf89f2704ec4/552390479b985b1d?show_docid=552390479b985b1d</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/5e26cf89f2704ec4/552390479b985b1d?show_docid=552390479b985b1d"/>
  <title type="text">2.6 and sys.exit()</title>
  <summary type="html" xml:space="preserve">
  Hello, &lt;br&gt; I have the following in exit.py: &lt;br&gt; import sys &lt;br&gt; sys.exit(0) &lt;br&gt; I now try &#39;python -i exit.py&#39;: &lt;br&gt; In 2.5, the script exits as I would expect. &lt;br&gt; In 2.6, the following error is printed: &lt;br&gt; Traceback (most recent call last): &lt;br&gt; File &amp;quot;exit.py&amp;quot;, line 2, in &amp;lt;module&amp;gt; &lt;br&gt; sys.exit(0) &lt;br&gt; SystemExit: 0 &lt;br&gt; I couldn&#39;t find anything related to this in &amp;quot;What&#39;s new in 2.6&amp;quot;.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ryan Kelly</name>
  <email>r...@rfk.id.au</email>
  </author>
  <updated>2009-11-13T03:39:54Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/fe629cf525abb530/0d4e628cac856fc0?show_docid=0d4e628cac856fc0</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/fe629cf525abb530/0d4e628cac856fc0?show_docid=0d4e628cac856fc0"/>
  <title type="text">Re: ANN: esky 0.2.1</title>
  <summary type="html" xml:space="preserve">
  Not sure if it&#39;s officially supported, but I do most of my development &lt;br&gt; on Python 2.6 and bbfreeze hasn&#39;t given me any problems as yet. &lt;br&gt; Cheers, &lt;br&gt; Ryan
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave Angel</name>
  <email>da...@ieee.org</email>
  </author>
  <updated>2009-11-13T03:33:38Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/ea057930df2f5114/fb557f30bf3041a9?show_docid=fb557f30bf3041a9</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/ea057930df2f5114/fb557f30bf3041a9?show_docid=fb557f30bf3041a9"/>
  <title type="text">Re: python parser overridden by pymol</title>
  <summary type="html" xml:space="preserve">
  As I said before, I don&#39;t know pymol. But if that is the package name, &lt;br&gt; then Robert is certainly right. You need to read the docs on pymol to &lt;br&gt; see what they require. For example, it&#39;s surprising they require a &lt;br&gt; separate PYMOL_PATH environment variable, since they can find their own &lt;br&gt; directory path with the __file__ attribute of one of the modules.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Aahz</name>
  <email>a...@pythoncraft.com</email>
  </author>
  <updated>2009-11-13T03:19:55Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/fe629cf525abb530/2d8007678b31cc29?show_docid=2d8007678b31cc29</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/fe629cf525abb530/2d8007678b31cc29?show_docid=2d8007678b31cc29"/>
  <title type="text">Re: ANN: esky 0.2.1</title>
  <summary type="html" xml:space="preserve">
  In article &amp;lt;mailman.23.1257600051.2873.py thon-l...@python.org&amp;gt;, &lt;br&gt; Recently I was looking into distribution mechanisms, and I passed over &lt;br&gt; bbfreeze because I saw no indication that Python 2.6 was supported. &lt;br&gt; Kind of a bummer because esky looks pretty cool.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Peter Nilsson</name>
  <email>ai...@acay.com.au</email>
  </author>
  <updated>2009-11-13T03:13:18Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/d55388b0fdd9ed2f/7d2569393bb80294?show_docid=7d2569393bb80294</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/d55388b0fdd9ed2f/7d2569393bb80294?show_docid=7d2569393bb80294"/>
  <title type="text">Re: Does turtle graphics have the wrong associations?</title>
  <summary type="html" xml:space="preserve">
  [I&#39;ll be honest and say that I merely glanced at the two &lt;br&gt; pdf files.] &lt;br&gt; Who is your target audience? The opening Getting Started &lt;br&gt; paragraph would probably put off many beginners right from &lt;br&gt; the get go! You&#39;re talking about a &#39;first language&#39; but &lt;br&gt; throwing &#39;syntax&#39;, &#39;windows&#39;, &#39;graphics&#39;, &#39;networking&#39;, &lt;br&gt; &#39;file and database access&#39; and &#39;standard libraries&#39; at them.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Steven D&#39;Aprano</name>
  <email>st...@remove-this-cybersource.com.au</email>
  </author>
  <updated>2009-11-13T03:12:52Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/8b0b40155786506c?show_docid=8b0b40155786506c</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/8b0b40155786506c?show_docid=8b0b40155786506c"/>
  <title type="text">Re: Writing an emulator in python - implementation questions (for performance)</title>
  <summary type="html" xml:space="preserve">
  It&#39;s easy enough to test: &lt;br&gt; 0.32850909233093262 &lt;br&gt; 0.54839301109313965 &lt;br&gt; The shift and mask are a little faster on my machine, but that&#39;s &lt;br&gt; certainly what I would call a micro-optimization. Unless the divmod call &lt;br&gt; is the bottleneck in your code -- and it almost certainly won&#39;t be -- I &lt;br&gt; don&#39;t think it&#39;s worth the obfuscation to use shift/mask. What should be
  </summary>
  </entry>
  <entry>
  <author>
  <name>Paul Rubin</name>
  <email></email>
  </author>
  <updated>2009-11-13T03:08:39Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/c1c4a8fe741c689a/f307fc98907fc790?show_docid=f307fc98907fc790</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/c1c4a8fe741c689a/f307fc98907fc790?show_docid=f307fc98907fc790"/>
  <title type="text">Re: Python &amp; Go</title>
  <summary type="html" xml:space="preserve">
  It looks like a not-so-interesting C follow-on, but the article doesn&#39;t &lt;br&gt; describe any of the parallelism stuff. &lt;br&gt; Nah, exceptions are an ugly effect that gets in the way of &lt;br&gt; parallelism. Haskell handles lookups through its type system; dealing &lt;br&gt; with lookup errors (say by chaining the Maybe type) is clean and
  </summary>
  </entry>
  <entry>
  <author>
  <name>Steven D&#39;Aprano</name>
  <email>st...@remove-this-cybersource.com.au</email>
  </author>
  <updated>2009-11-13T03:00:16Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/338d871e555efd1e?show_docid=338d871e555efd1e</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/338d871e555efd1e?show_docid=338d871e555efd1e"/>
  <title type="text">Re: Writing an emulator in python - implementation questions (for performance)</title>
  <summary type="html" xml:space="preserve">
  I don&#39;t know about that... &lt;br&gt; Python on a 2GHz processor (which is more or less entry-level for desktop &lt;br&gt; PCs these days), emulating something which used to run at 2.5MHz? Even if &lt;br&gt; the Python code does 1000 times more work, the modern processor is nearly &lt;br&gt; 1000 times faster, so your Python code won&#39;t be much slower than the
  </summary>
  </entry>
  <entry>
  <author>
  <name>Steven D&#39;Aprano</name>
  <email>st...@remove-this-cybersource.com.au</email>
  </author>
  <updated>2009-11-13T02:50:33Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/ceef2ae6b4472b61/0e020f547a4068c1?show_docid=0e020f547a4068c1</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/ceef2ae6b4472b61/0e020f547a4068c1?show_docid=0e020f547a4068c1"/>
  <title type="text">Re: python simply not scaleable enough for google?</title>
  <summary type="html" xml:space="preserve">
  Quite slow to do what? Quite slow compared to what? &lt;br&gt; I think you&#39;ll find using CPython to sort a list of ten million integers &lt;br&gt; will be quite a bit faster than using bubblesort written in C, no matter &lt;br&gt; how efficient the C compiler. &lt;br&gt; And why are we limiting ourselves to integers representable by the native
  </summary>
  </entry>
  <entry>
  <author>
  <name>greg</name>
  <email>g...@cosc.canterbury.ac.nz</email>
  </author>
  <updated>2009-11-13T02:36:42Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/d31c277c325268e6/ca50d3e01d472771?show_docid=ca50d3e01d472771</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/d31c277c325268e6/ca50d3e01d472771?show_docid=ca50d3e01d472771"/>
  <title type="text">Re: #define (from C) in Python</title>
  <summary type="html" xml:space="preserve">
  Or use a different preprocessor, such as m4, that &lt;br&gt; doesn&#39;t clash with the # character.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Robert Kern</name>
  <email>robert.k...@gmail.com</email>
  </author>
  <updated>2009-11-13T02:32:32Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/ea057930df2f5114/495916ce8ccac991?show_docid=495916ce8ccac991</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/ea057930df2f5114/495916ce8ccac991?show_docid=495916ce8ccac991"/>
  <title type="text">Re: python parser overridden by pymol</title>
  <summary type="html" xml:space="preserve">
  No, do not do this. Add /usr/lib/pymodules/python2.5/ to your $PYTHONPATH, *not* &lt;br&gt; /usr/lib/pymodules/python2.5/p ymol/. You will continue to run into problems if &lt;br&gt; you do it this way. You are not supposed to put the directory *of* the package &lt;br&gt; onto sys.path but rather the directory that *contains* the package directory.
  </summary>
  </entry>
  <entry>
  <author>
  <name>greg</name>
  <email>g...@cosc.canterbury.ac.nz</email>
  </author>
  <updated>2009-11-13T02:33:53Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/31b740a228db1f19?show_docid=31b740a228db1f19</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/31b740a228db1f19?show_docid=31b740a228db1f19"/>
  <title type="text">Re: Writing an emulator in python - implementation questions (for performance)</title>
  <summary type="html" xml:space="preserve">
  Not necessarily, because it involves a function call, &lt;br&gt; and constructing and deconstructing a result tuple. &lt;br&gt; If you time them, you may well find that the explicit &lt;br&gt; shift and mask operations turn out to be faster. &lt;br&gt; That also goes for any of the other things being &lt;br&gt; discussed here. Especially if you&#39;re used to C, one&#39;s
  </summary>
  </entry>
  <entry>
  <author>
  <name>greg</name>
  <email>g...@cosc.canterbury.ac.nz</email>
  </author>
  <updated>2009-11-13T02:29:03Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/05bbd4aeb730381e?show_docid=05bbd4aeb730381e</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/60f4405265c6628a/05bbd4aeb730381e?show_docid=05bbd4aeb730381e"/>
  <title type="text">Re: Writing an emulator in python - implementation questions (for performance)</title>
  <summary type="html" xml:space="preserve">
  But keep in mind that named &amp;quot;constants&amp;quot; at the module level &lt;br&gt; are really global variables, and therefore incur a dictionary &lt;br&gt; lookup every time they&#39;re used. &lt;br&gt; For maximum speed, nothing beats writing the numeric literals &lt;br&gt; directly into the code, unfortunately. &lt;br&gt; Generally, I think you&#39;re going to have quite a battle on
  </summary>
  </entry>
  <entry>
  <author>
  <name>MRAB</name>
  <email>pyt...@mrabarnett.plus.com</email>
  </author>
  <updated>2009-11-13T02:22:26Z</updated>
  <id>http://groups.google.com/group/comp.lang.python/browse_thread/thread/ecf11d78b161c93b/463a48fe05f2ceff?show_docid=463a48fe05f2ceff</id>
  <link href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/ecf11d78b161c93b/463a48fe05f2ceff?show_docid=463a48fe05f2ceff"/>
  <title type="text">Re: python with echo</title>
  <summary type="html" xml:space="preserve">
  You want to be able to distinguish between a child process terminating &lt;br&gt; with an exit status, and failing to run a child process for some reason.
  </summary>
  </entry>
</feed>
