<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Recent Python annoyances</title>
	<atom:link href="http://rdist.root.org/2008/11/04/recent-python-annoyances/feed/" rel="self" type="application/rss+xml" />
	<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/</link>
	<description>Embedded security, crypto, software protection</description>
	<lastBuildDate>Mon, 08 Mar 2010 21:19:29 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rob</title>
		<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/#comment-4838</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 14 Nov 2008 19:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.wordpress.com/?p=237#comment-4838</guid>
		<description>The object assignment behavior isn&#039;t wrong, just your understanding of it is.  An assignment assigns a name to an object and does nothing else.  IOW, assignments only modify the namespace, not the objects.   See this interpreter example:


Python 2.3.4 (#1, Jan  9 2007, 16:40:18) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; list=[&#039;foo&#039;,&#039;bar&#039;,&#039;baz&#039;]
&gt;&gt;&gt; id(list)
-1209562580
&gt;&gt;&gt; a=list
&gt;&gt;&gt; id(a)
-1209562580
&gt;&gt;&gt; list=[&#039;banf&#039;,&#039;frob&#039;,&#039;frobnitz&#039;]
&gt;&gt;&gt; id(list)
-1209562324
&gt;&gt;&gt; id(a)
-1209562580
&gt;&gt;&gt; print a
[&#039;foo&#039;, &#039;bar&#039;, &#039;baz&#039;]


That should be very enlightening.</description>
		<content:encoded><![CDATA[<p>The object assignment behavior isn&#8217;t wrong, just your understanding of it is.  An assignment assigns a name to an object and does nothing else.  IOW, assignments only modify the namespace, not the objects.   See this interpreter example:</p>
<p>Python 2.3.4 (#1, Jan  9 2007, 16:40:18)<br />
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; list=['foo','bar','baz']<br />
&gt;&gt;&gt; id(list)<br />
-1209562580<br />
&gt;&gt;&gt; a=list<br />
&gt;&gt;&gt; id(a)<br />
-1209562580<br />
&gt;&gt;&gt; list=['banf','frob','frobnitz']<br />
&gt;&gt;&gt; id(list)<br />
-1209562324<br />
&gt;&gt;&gt; id(a)<br />
-1209562580<br />
&gt;&gt;&gt; print a<br />
['foo', 'bar', 'baz']</p>
<p>That should be very enlightening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Lawson</title>
		<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/#comment-4835</link>
		<dc:creator>Nate Lawson</dc:creator>
		<pubDate>Tue, 11 Nov 2008 04:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.wordpress.com/?p=237#comment-4835</guid>
		<description>thenewsh, you may be right but these are the ones that bit me recently.  It&#039;s ok to call me lame.  :)</description>
		<content:encoded><![CDATA[<p>thenewsh, you may be right but these are the ones that bit me recently.  It&#8217;s ok to call me lame.  :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newsham</title>
		<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/#comment-4829</link>
		<dc:creator>newsham</dc:creator>
		<pubDate>Sat, 08 Nov 2008 00:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.wordpress.com/?p=237#comment-4829</guid>
		<description>I dont see what the problem with #1 is.  Python is pretty clear about all variables being references to data and certain data being mutable and other data being immutable.
Similarly for #2 -- these are two unrelated APIs (which can occasionally do the same thing).  One joins an iterable of strings.  The other joins a variable number of arguments.
The XML libraries leave much to be desired.  But, hey, it&#039;s XML :)  Even when done right, it sucks.
I think there are more important python deficiencies that you can complain about :)</description>
		<content:encoded><![CDATA[<p>I dont see what the problem with #1 is.  Python is pretty clear about all variables being references to data and certain data being mutable and other data being immutable.<br />
Similarly for #2 &#8212; these are two unrelated APIs (which can occasionally do the same thing).  One joins an iterable of strings.  The other joins a variable number of arguments.<br />
The XML libraries leave much to be desired.  But, hey, it&#8217;s XML :)  Even when done right, it sucks.<br />
I think there are more important python deficiencies that you can complain about :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Lawson</title>
		<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/#comment-4828</link>
		<dc:creator>Nate Lawson</dc:creator>
		<pubDate>Thu, 06 Nov 2008 02:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.wordpress.com/?p=237#comment-4828</guid>
		<description>Eugene, that&#039;s a good improvement.  I&#039;m looking forward to 3.x cleaning things up more in all areas.</description>
		<content:encoded><![CDATA[<p>Eugene, that&#8217;s a good improvement.  I&#8217;m looking forward to 3.x cleaning things up more in all areas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/#comment-4827</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 05 Nov 2008 19:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.wordpress.com/?p=237#comment-4827</guid>
		<description>Years ago, I read a great explanation of the Python assignment model. This was not it: http://effbot.org/zone/python-objects.htm. But, once you grok that assignment binds a name to an object and nothing more, it all comes together.

I&#039;m really happy that they&#039;re fixing the exception-catching syntax in 3.0.</description>
		<content:encoded><![CDATA[<p>Years ago, I read a great explanation of the Python assignment model. This was not it: <a href="http://effbot.org/zone/python-objects.htm" rel="nofollow">http://effbot.org/zone/python-objects.htm</a>. But, once you grok that assignment binds a name to an object and nothing more, it all comes together.</p>
<p>I&#8217;m really happy that they&#8217;re fixing the exception-catching syntax in 3.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene Kogan</title>
		<link>http://rdist.root.org/2008/11/04/recent-python-annoyances/#comment-4826</link>
		<dc:creator>Eugene Kogan</dc:creator>
		<pubDate>Wed, 05 Nov 2008 18:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.wordpress.com/?p=237#comment-4826</guid>
		<description>Those are valid points, but the multiple exceptions issue is addressed in 3.0 (with 2.6 accepting both forms).

&quot;This error happens because the use of the comma here is ambiguous: does it indicate two different nodes in the parse tree, or a single node that’s a tuple? Python 3.0 makes this unambiguous by replacing the comma with the word “as”.:

http://docs.python.org/dev/whatsnew/2.6.html#pep-3110-exception-handling-changes</description>
		<content:encoded><![CDATA[<p>Those are valid points, but the multiple exceptions issue is addressed in 3.0 (with 2.6 accepting both forms).</p>
<p>&#8220;This error happens because the use of the comma here is ambiguous: does it indicate two different nodes in the parse tree, or a single node that’s a tuple? Python 3.0 makes this unambiguous by replacing the comma with the word “as”.:</p>
<p><a href="http://docs.python.org/dev/whatsnew/2.6.html#pep-3110-exception-handling-changes" rel="nofollow">http://docs.python.org/dev/whatsnew/2.6.html#pep-3110-exception-handling-changes</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
