<?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/"
		>
<channel>
	<title>Comments for Joe Amenta&#039;s Blog</title>
	<atom:link href="http://www.startcodon.com/wordpress/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.startcodon.com/wordpress</link>
	<description>A Wordpress Blog about Stuff</description>
	<lastBuildDate>Sun, 15 Aug 2010 16:14:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Debugging on brain by anondev</title>
		<link>http://www.startcodon.com/wordpress/?p=366&#038;cpage=1#comment-1602</link>
		<dc:creator>anondev</dc:creator>
		<pubDate>Sun, 15 Aug 2010 16:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=366#comment-1602</guid>
		<description>I found! I had to rewrite (in my py3k code) &#039;someasciistring&#039; to b&#039;someasciistring&#039; and someunicodevar to str(someunicodevar).

Thx</description>
		<content:encoded><![CDATA[<p>I found! I had to rewrite (in my py3k code) &#8216;someasciistring&#8217; to b&#8217;someasciistring&#8217; and someunicodevar to str(someunicodevar).</p>
<p>Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debugging on brain by anondev</title>
		<link>http://www.startcodon.com/wordpress/?p=366&#038;cpage=1#comment-1601</link>
		<dc:creator>anondev</dc:creator>
		<pubDate>Sun, 15 Aug 2010 16:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=366#comment-1601</guid>
		<description>I forgot to say: i&#039;m using python2.7</description>
		<content:encoded><![CDATA[<p>I forgot to say: i&#8217;m using python2.7</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debugging on brain by anondev</title>
		<link>http://www.startcodon.com/wordpress/?p=366&#038;cpage=1#comment-1600</link>
		<dc:creator>anondev</dc:creator>
		<pubDate>Sun, 15 Aug 2010 15:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=366#comment-1600</guid>
		<description>Hi ! I&#039;m currently using your 3to2 script for a current project, this is helping me very much... I need python2.7 to use pyAMF which is not already ported to python3.

Is there any way to NOT &quot;translate&quot; some parts of my code ? I&#039;m using the struct module, and it doesn&#039;t like the string to unicode translation (&#039;...&#039; to u&#039;...&#039; I mean), because it needs real ascii string.

I don&#039;t have much time to read your code and understand it, because I&#039;m already crossing the deadline of my work, so I will correct by hand the wrong parts for the moment.

It gives me:
    ushort = Struct(u&#039;&lt;H&#039;)
TypeError: Struct() argument 1 must be string, not unicode

Thx for your work, and sorry for my english

PS: I cooked a cludgy module to make my code work under python2 with 2to3, to use it I add the line &quot;from compat import *&quot; at the beginning of my modules. Here it is:

compat.py
---
# Compatibility for Python 2 &amp; 3
# open (compat_open) and re.compile (compat_regexp)

import sys
import re

if sys.version_info[0] == 3:

    import builtins

    __builtin__ = builtins

    def open(filename, mode=&#039;r&#039;):
        return __builtin__.open(filename, mode, encoding=&#039;utf-8&#039;, newline=&#039;&#039;)

    def re_compile(pat, flags=None):
        if flags is not None: return re._compileorig(pat, flags)
        else: return re._compileorig(pat)

else:

    from future_builtins import *
    import codecs
    import __builtin__

    def open(filename, mode=&#039;r&#039;):
        return codecs.open(filename, mode, encoding=&#039;utf-8&#039;)

    def re_compile(pat, flags=0):
        return re._compileorig(pat, flags&#124;re.UNICODE)

#__builtin__.__open_orig = __builtin__.open
#__builtin__.open = _compat_open

re._compileorig = re.compile
re.compile = re_compile</description>
		<content:encoded><![CDATA[<p>Hi ! I&#8217;m currently using your 3to2 script for a current project, this is helping me very much&#8230; I need python2.7 to use pyAMF which is not already ported to python3.</p>
<p>Is there any way to NOT &#8220;translate&#8221; some parts of my code ? I&#8217;m using the struct module, and it doesn&#8217;t like the string to unicode translation (&#8216;&#8230;&#8217; to u&#8217;&#8230;&#8217; I mean), because it needs real ascii string.</p>
<p>I don&#8217;t have much time to read your code and understand it, because I&#8217;m already crossing the deadline of my work, so I will correct by hand the wrong parts for the moment.</p>
<p>It gives me:<br />
    ushort = Struct(u&#8217;&lt;H&#039;)<br />
TypeError: Struct() argument 1 must be string, not unicode</p>
<p>Thx for your work, and sorry for my english</p>
<p>PS: I cooked a cludgy module to make my code work under python2 with 2to3, to use it I add the line &quot;from compat import *&quot; at the beginning of my modules. Here it is:</p>
<p>compat.py<br />
&#8212;<br />
# Compatibility for Python 2 &amp; 3<br />
# open (compat_open) and re.compile (compat_regexp)</p>
<p>import sys<br />
import re</p>
<p>if sys.version_info[0] == 3:</p>
<p>    import builtins</p>
<p>    __builtin__ = builtins</p>
<p>    def open(filename, mode=&#039;r&#039;):<br />
        return __builtin__.open(filename, mode, encoding=&#039;utf-8&#039;, newline=&#039;&#039;)</p>
<p>    def re_compile(pat, flags=None):<br />
        if flags is not None: return re._compileorig(pat, flags)<br />
        else: return re._compileorig(pat)</p>
<p>else:</p>
<p>    from future_builtins import *<br />
    import codecs<br />
    import __builtin__</p>
<p>    def open(filename, mode=&#039;r&#039;):<br />
        return codecs.open(filename, mode, encoding=&#039;utf-8&#039;)</p>
<p>    def re_compile(pat, flags=0):<br />
        return re._compileorig(pat, flags|re.UNICODE)</p>
<p>#__builtin__.__open_orig = __builtin__.open<br />
#__builtin__.open = _compat_open</p>
<p>re._compileorig = re.compile<br />
re.compile = re_compile</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3to2: thoughts by ilaggoodly</title>
		<link>http://www.startcodon.com/wordpress/?p=242&#038;cpage=1#comment-905</link>
		<dc:creator>ilaggoodly</dc:creator>
		<pubDate>Thu, 25 Mar 2010 23:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=242#comment-905</guid>
		<description>The 3to2 lib at the python.org website http://pypi.python.org/pypi/3to2_31/0.1a3 has a bug in the startscript 3to2_31 where the version check if statement ends with a &quot; instead of a :

:)</description>
		<content:encoded><![CDATA[<p>The 3to2 lib at the python.org website <a href="http://pypi.python.org/pypi/3to2_31/0.1a3" rel="nofollow">http://pypi.python.org/pypi/3to2_31/0.1a3</a> has a bug in the startscript 3to2_31 where the version check if statement ends with a &#8221; instead of a :</p>
<p> <img src='http://www.startcodon.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3to2: thoughts by Douglas</title>
		<link>http://www.startcodon.com/wordpress/?p=242&#038;cpage=1#comment-803</link>
		<dc:creator>Douglas</dc:creator>
		<pubDate>Wed, 24 Feb 2010 19:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=242#comment-803</guid>
		<description>Thank you for working on this.  I started re-coding my program into 3.1.1 and now I find that I have nothing familiar to go to for databases (I just want a flat file database such as Kirbybase for 3.1.1 that I can actually see what the code did!, Buzzhug isnt viewable or editable directly).  I used Kirbybase for 2.4 and love it, sure wish Mr Kirby could continue with Kirbybase for the newest Python versions but he has moved on to different things (languages).  I still am hooked on the print being built in.  Eventually I will move onward in versions but got a taste at least for Python 3.1.1, but I still need to make the rest of my modules (some aren&#039;t even written yet) in 2.4 and have a complete version for 2.4 and a second one that will use the latest Python. Its really tedious having to search and replace prints everywhere so I am looking forward to using your 3to2, once it will fix the prints under 2.4.  If it never gets to 2.4 so be it.  At least someone recognizes this need!</description>
		<content:encoded><![CDATA[<p>Thank you for working on this.  I started re-coding my program into 3.1.1 and now I find that I have nothing familiar to go to for databases (I just want a flat file database such as Kirbybase for 3.1.1 that I can actually see what the code did!, Buzzhug isnt viewable or editable directly).  I used Kirbybase for 2.4 and love it, sure wish Mr Kirby could continue with Kirbybase for the newest Python versions but he has moved on to different things (languages).  I still am hooked on the print being built in.  Eventually I will move onward in versions but got a taste at least for Python 3.1.1, but I still need to make the rest of my modules (some aren&#8217;t even written yet) in 2.4 and have a complete version for 2.4 and a second one that will use the latest Python. Its really tedious having to search and replace prints everywhere so I am looking forward to using your 3to2, once it will fix the prints under 2.4.  If it never gets to 2.4 so be it.  At least someone recognizes this need!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Random Update by James William Pye</title>
		<link>http://www.startcodon.com/wordpress/?p=229&#038;cpage=1#comment-723</link>
		<dc:creator>James William Pye</dc:creator>
		<pubDate>Fri, 12 Feb 2010 06:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=229#comment-723</guid>
		<description>I&#039;m playing with it. =)

Feedback coming soon.</description>
		<content:encoded><![CDATA[<p>I&#8217;m playing with it. =)</p>
<p>Feedback coming soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Things 3to2 does not accept by bitbucket issues tracker &#171; AirBreather&#8217;s Blog</title>
		<link>http://www.startcodon.com/wordpress/?p=115&#038;cpage=1#comment-275</link>
		<dc:creator>bitbucket issues tracker &#171; AirBreather&#8217;s Blog</dc:creator>
		<pubDate>Wed, 21 Oct 2009 04:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=115#comment-275</guid>
		<description>[...] the process of moving all guidelines for &#8220;Things 3to2 does not accept&#8221; (from the post of the same name and from stuff I have accidentally left in my head) to the bitbucket issues tracker.  Some will be [...]</description>
		<content:encoded><![CDATA[<p>[...] the process of moving all guidelines for &#8220;Things 3to2 does not accept&#8221; (from the post of the same name and from stuff I have accidentally left in my head) to the bitbucket issues tracker.  Some will be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Addition to &#8220;things 3to2 can&#8217;t do yet&#8221; by AirBreather</title>
		<link>http://www.startcodon.com/wordpress/?p=176&#038;cpage=1#comment-191</link>
		<dc:creator>AirBreather</dc:creator>
		<pubDate>Mon, 28 Sep 2009 17:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=176#comment-191</guid>
		<description>Don,

The plan is to gently alter the surrounding namespace, not clobber it :-)

There is a specification outlined in the trunk, but the basic idea is this:
&lt;code&gt;a, b, c, *d, e, f, g, h = range(100)&lt;/code&gt;

fixes to

&lt;code&gt;_3to2list = list(range(100))
a, b, c, d, e, f, g, h = _3to2list[:3] + [_3to2list[3:-4]] + _3to2list[-4:]&lt;/code&gt;

and this:
&lt;code&gt;for a, b, c, *d, e, f in some_thing:
    do_stuff&lt;/code&gt;

fixes to

&lt;code&gt;for _3to2iter in some_thing:
    _3to2list = list(_3to2iter)
    a, b, c, d, e, f = _3to2list[:3] + [_3to2list[3:-2]] + _3to2list[-2:]
    do_stuff&lt;/code&gt;

Please, though, let me know if there are any cases where this fix would be incorrect!</description>
		<content:encoded><![CDATA[<p>Don,</p>
<p>The plan is to gently alter the surrounding namespace, not clobber it <img src='http://www.startcodon.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>There is a specification outlined in the trunk, but the basic idea is this:<br />
<code>a, b, c, *d, e, f, g, h = range(100)</code></p>
<p>fixes to</p>
<p><code>_3to2list = list(range(100))<br />
a, b, c, d, e, f, g, h = _3to2list[:3] + [_3to2list[3:-4]] + _3to2list[-4:]</code></p>
<p>and this:<br />
<code>for a, b, c, *d, e, f in some_thing:<br />
    do_stuff</code></p>
<p>fixes to</p>
<p><code>for _3to2iter in some_thing:<br />
    _3to2list = list(_3to2iter)<br />
    a, b, c, d, e, f = _3to2list[:3] + [_3to2list[3:-2]] + _3to2list[-2:]<br />
    do_stuff</code></p>
<p>Please, though, let me know if there are any cases where this fix would be incorrect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Addition to &#8220;things 3to2 can&#8217;t do yet&#8221; by Don Spaulding</title>
		<link>http://www.startcodon.com/wordpress/?p=176&#038;cpage=1#comment-190</link>
		<dc:creator>Don Spaulding</dc:creator>
		<pubDate>Mon, 28 Sep 2009 17:12:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=176#comment-190</guid>
		<description>Huzzah!  Thanks Ben!

Joe, thanks for picking this up.  I still wonder how you can syntactically fix the Py3 code to Py2 without clobbering the surrounding namespace.  But I&#039;ll stay tuned to find out ;-)</description>
		<content:encoded><![CDATA[<p>Huzzah!  Thanks Ben!</p>
<p>Joe, thanks for picking this up.  I still wonder how you can syntactically fix the Py3 code to Py2 without clobbering the surrounding namespace.  But I&#8217;ll stay tuned to find out <img src='http://www.startcodon.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Addition to &#8220;things 3to2 can&#8217;t do yet&#8221; by Benjamin Peterson</title>
		<link>http://www.startcodon.com/wordpress/?p=176&#038;cpage=1#comment-185</link>
		<dc:creator>Benjamin Peterson</dc:creator>
		<pubDate>Sun, 27 Sep 2009 03:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=176#comment-185</guid>
		<description>All is not lost! http://svn.python.org/view?view=rev&amp;revision=75081</description>
		<content:encoded><![CDATA[<p>All is not lost! <a href="http://svn.python.org/view?view=rev&amp;revision=75081" rel="nofollow">http://svn.python.org/view?view=rev&amp;revision=75081</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
