Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44600

Re: to a human - about 2to3

From Terry Jan Reedy <tjreedy@udel.edu>
Subject Re: to a human - about 2to3
Date 2013-05-01 14:59 -0400
References <3C8565F3435F024E9BB3B36BE06393D80120F355@albyn-exch.albyn-sch.local.co.uk>
Newsgroups comp.lang.python
Message-ID <mailman.1221.1367434738.3114.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: to a human - about 2to3 Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-01 14:59 -0400

csiph-web