Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6432 > unrolled thread
| Started by | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| First post | 2011-05-27 14:33 -0700 |
| Last post | 2011-05-28 18:18 -0400 |
| Articles | 3 — 3 participants |
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.
Re: Beginner needs advice Ethan Furman <ethan@stoneleaf.us> - 2011-05-27 14:33 -0700
Re: Beginner needs advice Uncle Ben <bgreen@nycap.rr.com> - 2011-05-28 11:57 -0700
Re: Beginner needs advice Terry Reedy <tjreedy@udel.edu> - 2011-05-28 18:18 -0400
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2011-05-27 14:33 -0700 |
| Subject | Re: Beginner needs advice |
| Message-ID | <mailman.2173.1306531260.9059.python-list@python.org> |
Lew Schwartz wrote: > So, if I read between the lines correctly, you recommend Python 3? Does > the windows version install with a development environment? Dabo, last I checked, uses wxPython, which uses wxWidgets (sp?), which is not yet ported to Python 3. So if you got that route you'll need to stay with 2.7. ~Ethan~
[toc] | [next] | [standalone]
| From | Uncle Ben <bgreen@nycap.rr.com> |
|---|---|
| Date | 2011-05-28 11:57 -0700 |
| Message-ID | <11eb08a3-9cea-462f-ad1b-bf01d53f687a@z13g2000yqg.googlegroups.com> |
| In reply to | #6432 |
On May 27, 5:33 pm, Ethan Furman <et...@stoneleaf.us> wrote: > Lew Schwartz wrote: > > So, if I read between the lines correctly, you recommend Python 3? Does > > the windows version install with a development environment? > > Dabo, last I checked, uses wxPython, which uses wxWidgets (sp?), which > is not yet ported to Python 3. So if you got that route you'll need to > stay with 2.7. > > ~Ethan~ Just this past Tuesday, I blindly downloaded 3.1 and found that at the level I am workloing, all it took to get my 2.7 code to run was to put parens around the print arguments and double the slashes in integer division. I didn't even use the 2to3 automation. But I am a noob to Python, which is my tenth computer language. Maybe when I get more ambitious I will find more serious differences.
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-05-28 18:18 -0400 |
| Message-ID | <mailman.2205.1306621158.9059.python-list@python.org> |
| In reply to | #6484 |
On 5/28/2011 2:57 PM, Uncle Ben wrote:
> Just this past Tuesday, I blindly downloaded 3.1 and found that at the
> level I am workloing, all it took to get my 2.7 code to run was to put
> parens around the print arguments and double the slashes in integer
> division. I didn't even use the 2to3 automation.
1//2 works in 2.7 and earlier.
from __future__ import division
gives 1/2 == 0.5 and in 3.x
print('abc') is the same as print 'abc'
The parens only make a difference with 2 or more items.
--
Terry Jan Reedy
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web