Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-14 Thread Alf P. Steinbach
* Lie Ryan -> Alf P. Steinbach: why do you think it is "impossible" to write a complex and portable python script? I don't. You're not quoting me. Though keeping everything in one code base may often be difficult and only of little practical benefit, it is not impossible. Modern version cont

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-14 Thread Lie Ryan
On 01/14/10 11:08, Alf P. Steinbach wrote: > * Daniel Fetchinson: >> >> Nobody is deliberately trying to keep people from porting! I think you >> misunderstand what is being said, these two statements are very >> different: (1) single code base working on both python versions (2) >> creating a seco

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Gabriel Genellina
En Wed, 13 Jan 2010 17:11:18 -0300, Daniel Fetchinson escribió: Again, django has been ported to python 3, that's fine, everybody acknowledges that, but it's not the case that one code base works with both python versions. Well, if the port is done via 2to3, you can install the same code ba

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Alf P. Steinbach
* Daniel Fetchinson: Nobody is deliberately trying to keep people from porting! I think you misunderstand what is being said, these two statements are very different: (1) single code base working on both python versions (2) creating a second code from a code so that the second code works with py

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Terry Reedy
On 1/13/2010 11:30 AM, Daniel Fetchinson wrote: Example? Just to be clear I'm looking for an example where one given code runs on python 2 and 3 unmodified. I think django and cheetah doesn't count because they simply take their python 2 code, run it through 2to3 which gives them a python 3 code

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Daniel Fetchinson
>> Again, django has been ported to python 3, that's fine, everybody >> acknowledges that, but it's not the case that one code base works with >> both python versions. > > Well, if the port is done via 2to3, you can install the same code base in > Python 2 and Python 3, and the distutils install me

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Daniel Fetchinson
>> One code base of cheetah works under python 2 and 3? I doubt it, but I >> could be wrong. What I can easily imagine is that somebody ported >> cheetah to python 3. In this case there are two code bases, one for >> python 2 and another for python 3. So it's not the same program that >> runs under

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Steve Holden
Daniel Fetchinson wrote: >>> Also, I would replace >>> >>> "in practice it’s very hard to create programs" >>> >>> with >>> >>> "in practice it’s very hard to create complex programs" >>> >>> because for small programs it's very possible to write code that will >>> work with both python 2 and 3. Th

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Stefan Behnel
Daniel Fetchinson, 13.01.2010 17:30: Again, django has been ported to python 3, that's fine, everybody acknowledges that, but it's not the case that one code base works with both python versions. Well, if the port is done via 2to3, you can install the same code base in Python 2 and Python 3, a

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread André
On Jan 13, 12:30 pm, Daniel Fetchinson wrote: > > One code base of cheetah works under python 2 and 3? I doubt it, but I > could be wrong. What I can easily imagine is that somebody ported > cheetah to python 3. In this case there are two code bases, one for > python 2 and another for python 3. S

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Daniel Fetchinson
>> Also, I would replace >> >> "in practice it’s very hard to create programs" >> >> with >> >> "in practice it’s very hard to create complex programs" >> >> because for small programs it's very possible to write code that will >> work with both python 2 and 3. The question is of course what progra

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Stefan Behnel
Daniel Fetchinson, 13.01.2010 16:23: Also, I would replace "in practice it’s very hard to create programs" with "in practice it’s very hard to create complex programs" because for small programs it's very possible to write code that will work with both python 2 and 3. The question is of cours

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Daniel Fetchinson
>> As of this writing two main variants of the Python language are in use, >> namely Python 2.x and Python 3.x (versions 3.0 and greater). Mostly >> they’re the same but the effect of e.g. the / division operator changed in >> 3.0, so in practice it’s very hard to create programs that work the sam

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Peter Otten
Alf P. Steinbach wrote: > As of this writing two main variants of the Python language are in use, > namely Python 2.x and Python 3.x (versions 3.0 and greater). Mostly > they’re the same but the effect of e.g. the / division operator changed in > 3.0, so in practice it’s very hard to create progr

Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread Alf P. Steinbach
Referring to http://tinyurl.com/programmingbookP3> Due to especially Steven D'Aprano's comments I've replaced "hopeless" with "very hard" in paragraph 1 of section 1.1 -- I know he'll disagree with that also but I think any more downplaying of the difficulties would be misleading. According