<?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>Thu, 02 Feb 2012 18:03:33 +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 Things 3to2 does not accept by Jake Deleon</title>
		<link>http://www.startcodon.com/wordpress/?p=115&#038;cpage=1#comment-8806</link>
		<dc:creator>Jake Deleon</dc:creator>
		<pubDate>Thu, 02 Feb 2012 18:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=115#comment-8806</guid>
		<description>&lt;strong&gt;Jake Deleon...&lt;/strong&gt;

wow, awesome blog article. Keep writing....</description>
		<content:encoded><![CDATA[<p><strong>Jake Deleon&#8230;</strong></p>
<p>wow, awesome blog article. Keep writing&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Things 3to2 does not accept by pihentagy</title>
		<link>http://www.startcodon.com/wordpress/?p=115&#038;cpage=1#comment-4096</link>
		<dc:creator>pihentagy</dc:creator>
		<pubDate>Wed, 09 Feb 2011 17:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=115#comment-4096</guid>
		<description>Hi!

Is is possible to add some quick-options to convert code to 2.x newest style (based on current interpreter), using all possible __future__ imports (so no str, byte, newstyle, and print for 2.7)?</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Is is possible to add some quick-options to convert code to 2.x newest style (based on current interpreter), using all possible __future__ imports (so no str, byte, newstyle, and print for 2.7)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3to2 1.0 Released! by Fernando Correia</title>
		<link>http://www.startcodon.com/wordpress/?p=373&#038;cpage=1#comment-2242</link>
		<dc:creator>Fernando Correia</dc:creator>
		<pubDate>Fri, 29 Oct 2010 18:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=373#comment-2242</guid>
		<description>This is a very interesting concept. If I understand correctly what you mean, people could develop in Python 3 and use this tool to keep a Python 2 version in sync. I hope that helps speed up adoption of Python 3. Congratulations for your work!</description>
		<content:encoded><![CDATA[<p>This is a very interesting concept. If I understand correctly what you mean, people could develop in Python 3 and use this tool to keep a Python 2 version in sync. I hope that helps speed up adoption of Python 3. Congratulations for your work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3to2 1.0 Released! by andrew cooke</title>
		<link>http://www.startcodon.com/wordpress/?p=373&#038;cpage=1#comment-2241</link>
		<dc:creator>andrew cooke</dc:creator>
		<pubDate>Fri, 29 Oct 2010 18:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=373#comment-2241</guid>
		<description>sweet (also, thanks for the info on the 2to3 grammar, which actually means I don&#039;t need this! :o)</description>
		<content:encoded><![CDATA[<p>sweet (also, thanks for the info on the 2to3 grammar, which actually means I don&#8217;t need this! <img src='http://www.startcodon.com/wordpress/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3to2 1.0 Released! by AirBreather</title>
		<link>http://www.startcodon.com/wordpress/?p=373&#038;cpage=1#comment-2239</link>
		<dc:creator>AirBreather</dc:creator>
		<pubDate>Fri, 29 Oct 2010 12:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=373#comment-2239</guid>
		<description>It uses lib2to3&#039;s fixer mechanism as a dependency; the lib2to3 grammar is a hybrid of Python 2 and Python 3, so the primary work of lib3to2 is the new fixers/rewriters.

It&#039;s released under Apache License 2.0.</description>
		<content:encoded><![CDATA[<p>It uses lib2to3&#8242;s fixer mechanism as a dependency; the lib2to3 grammar is a hybrid of Python 2 and Python 3, so the primary work of lib3to2 is the new fixers/rewriters.</p>
<p>It&#8217;s released under Apache License 2.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3to2 1.0 Released! by andrew cooke</title>
		<link>http://www.startcodon.com/wordpress/?p=373&#038;cpage=1#comment-2238</link>
		<dc:creator>andrew cooke</dc:creator>
		<pubDate>Fri, 29 Oct 2010 11:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=373#comment-2238</guid>
		<description>neat.  is this based on lib2to3 (did you just modify the grammar and add new rewriters, or is did you also implement new support code)?  also, what&#039;s the licence?  thanks!  andrew</description>
		<content:encoded><![CDATA[<p>neat.  is this based on lib2to3 (did you just modify the grammar and add new rewriters, or is did you also implement new support code)?  also, what&#8217;s the licence?  thanks!  andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Still planning on more testing for a 1.0 release by Pete Fein</title>
		<link>http://www.startcodon.com/wordpress/?p=371&#038;cpage=1#comment-2098</link>
		<dc:creator>Pete Fein</dc:creator>
		<pubDate>Wed, 20 Oct 2010 19:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.startcodon.com/wordpress/?p=371#comment-2098</guid>
		<description>Just a bit of encouragement - I&#039;m currently working on a package (http:/twiggy.wearpants.org) written for 2.7.  I&#039;d really like to do future development in 3.x (mainly because of saner unicode support), but I want users before the world ends in 2012. ;-)  The decision depends in part on how well 3to2 works, and when.

Please don&#039;t take this as pressure - as someone who&#039;s been on sabbatical from work and coding for most of the last year, I respect your &quot;you time&quot;.</description>
		<content:encoded><![CDATA[<p>Just a bit of encouragement &#8211; I&#8217;m currently working on a package (http:/twiggy.wearpants.org) written for 2.7.  I&#8217;d really like to do future development in 3.x (mainly because of saner unicode support), but I want users before the world ends in 2012. <img src='http://www.startcodon.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   The decision depends in part on how well 3to2 works, and when.</p>
<p>Please don&#8217;t take this as pressure &#8211; as someone who&#8217;s been on sabbatical from work and coding for most of the last year, I respect your &#8220;you time&#8221;.</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-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>
</channel>
</rss>

