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


Groups > comp.lang.python > #44600 > unrolled thread

Re: to a human - about 2to3

Started byTerry Jan Reedy <tjreedy@udel.edu>
First post2013-05-01 14:59 -0400
Last post2013-05-01 14:59 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#44600 — Re: to a human - about 2to3

FromTerry Jan Reedy <tjreedy@udel.edu>
Date2013-05-01 14:59 -0400
SubjectRe: to a human - about 2to3
Message-ID<mailman.1221.1367434738.3114.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web