Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'beginner': 0.05; '2to3': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'itself.': 0.14; 'programs.': 0.14; 'jennifer': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:2to3': 0.16; 'wrote:': 0.18; 'written': 0.21; 'header :User-Agent:1': 0.23; 'sort': 0.25; 'post': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'am,': 0.29; 'needed.': 0.30; 'work.': 0.31; 'program,': 0.31; 'url:python': 0.33; 'minimal': 0.33; 'not.': 0.33; 'problem': 0.35; 'classes': 0.35; 'editor': 0.35; 'but': 0.35; 'idle': 0.36; 'useful': 0.36; 'url:org': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'list,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'manually': 0.60; 'conversion': 0.61; 'materials': 0.61; 'received:173': 0.61; 'simple': 0.61; 'education': 0.64; 'teaching': 0.64; 'charset:windows-1252': 0.65; 'programs,': 0.74; 'received:fios.verizon.net': 0.84; 'can\x92t': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Jan Reedy Subject: Re: to a human - about 2to3 Date: Wed, 01 May 2013 14:59:06 -0400 References: <3C8565F3435F024E9BB3B36BE06393D80120F355@albyn-exch.albyn-sch.local.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <3C8565F3435F024E9BB3B36BE06393D80120F355@albyn-exch.albyn-sch.local.co.uk> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367434738 news.xs4all.nl 15897 [2001:888:2000:d::a6]:51284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44600 On 5/1/2013 10:52 AM, Jennifer Butler wrote: > I will start teaching Python to my pupils shortly. I have been looking > for materials and have gathered a collection of programs. The problem is > they are written in v2 and I have v3 installed in my classroom. I read > about the 2to3 conversion program, but I can’t get it to work. You might find this page http://www.python.org/community/sigs/current/edu-sig/ and the education list itself. I am sure many programs useful in education have already been ported. Many simple programs, of the sort used in beginner classes need minimal change. Oftem 'print x' to 'print(x)' is all that is needed. 2to3 will do that for you, once you learn how to use it, but I have not. For the programs people post on the list, with just 1 or 2 prints, I make the change manually in the Idle editor before running. I often want to change other things as well, so no big deal.