2to3 status, repositories and HACKING guide
Hi, Currently 2to3 page at http://wiki.python.org/moin/2to3 lists http://svn.python.org/view/sandbox/trunk/2to3 as a repository for 2to3 tool. There is also an outdated repository at http://hg.python.org/ and the page says that the code is finally integrated into CPython 2.6 - you can see it at http://hg.python.org/cpython/file/default/Lib/lib2to3. So, what version is more up-to-date? In svn repository there is a HACKING guide advising to use find_pattern.py script for writing new fixer. However, there is no find_pattern.py in CPython repository, no HACKING guide, no any documentation about how to write fixers or description of PATTERN format. Did I miss something? -- anatoly t.
Hi, Benjamin, Is your repository for 2to3 is still actual? http://svn.python.org/view/sandbox/trunk/2to3/ Which should I use to start hacking on 2to3? -- anatoly t. On Wed, Mar 23, 2011 at 9:01 AM, anatoly techtonik <techtonik@gmail.com> wrote:
Hi,
Currently 2to3 page at http://wiki.python.org/moin/2to3 lists http://svn.python.org/view/sandbox/trunk/2to3 as a repository for 2to3 tool. There is also an outdated repository at http://hg.python.org/ and the page says that the code is finally integrated into CPython 2.6 - you can see it at http://hg.python.org/cpython/file/default/Lib/lib2to3. So, what version is more up-to-date?
In svn repository there is a HACKING guide advising to use find_pattern.py script for writing new fixer. However, there is no find_pattern.py in CPython repository, no HACKING guide, no any documentation about how to write fixers or description of PATTERN format. Did I miss something? -- anatoly t.
The main cpython repo. 2011/3/25 anatoly techtonik <techtonik@gmail.com>:
Hi, Benjamin,
Is your repository for 2to3 is still actual? http://svn.python.org/view/sandbox/trunk/2to3/
Which should I use to start hacking on 2to3?
-- anatoly t.
On Wed, Mar 23, 2011 at 9:01 AM, anatoly techtonik <techtonik@gmail.com> wrote:
Hi,
Currently 2to3 page at http://wiki.python.org/moin/2to3 lists http://svn.python.org/view/sandbox/trunk/2to3 as a repository for 2to3 tool. There is also an outdated repository at http://hg.python.org/ and the page says that the code is finally integrated into CPython 2.6 - you can see it at http://hg.python.org/cpython/file/default/Lib/lib2to3. So, what version is more up-to-date?
In svn repository there is a HACKING guide advising to use find_pattern.py script for writing new fixer. However, there is no find_pattern.py in CPython repository, no HACKING guide, no any documentation about how to write fixers or description of PATTERN format. Did I miss something? -- anatoly t.
-- Regards, Benjamin
Is there any high-level overview of 2to3 tool that people can use as a quick start for writing their own fixers? Source doesn't explain much (to me at least), and some kind of "learn by example" would really help a lot. In particular, I find the syntax of tree matchers the most unclear part. -- anatoly t. On Fri, Mar 25, 2011 at 9:12 PM, Benjamin Peterson <benjamin@python.org> wrote:
The main cpython repo.
2011/3/25 anatoly techtonik <techtonik@gmail.com>:
Hi, Benjamin,
Is your repository for 2to3 is still actual? http://svn.python.org/view/sandbox/trunk/2to3/
Which should I use to start hacking on 2to3?
-- anatoly t.
On Wed, Mar 23, 2011 at 9:01 AM, anatoly techtonik <techtonik@gmail.com> wrote:
Hi,
Currently 2to3 page at http://wiki.python.org/moin/2to3 lists http://svn.python.org/view/sandbox/trunk/2to3 as a repository for 2to3 tool. There is also an outdated repository at http://hg.python.org/ and the page says that the code is finally integrated into CPython 2.6 - you can see it at http://hg.python.org/cpython/file/default/Lib/lib2to3. So, what version is more up-to-date?
In svn repository there is a HACKING guide advising to use find_pattern.py script for writing new fixer. However, there is no find_pattern.py in CPython repository, no HACKING guide, no any documentation about how to write fixers or description of PATTERN format. Did I miss something? -- anatoly t.
-- Regards, Benjamin
2011/5/1 anatoly techtonik <techtonik@gmail.com>:
Is there any high-level overview of 2to3 tool that people can use as a quick start for writing their own fixers?
No.
Source doesn't explain much (to me at least), and some kind of "learn by example" would really help a lot. In particular, I find the syntax of tree matchers the most unclear part.
I think you can learn a lot by reading through the current fixers in lib2to3/fixers/. -- Regards, Benjamin
participants (2)
-
anatoly techtonik
-
Benjamin Peterson