Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Re: Python 3

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


ben+python at benfinney

Nov 4, 2009, 6:27 PM

Post #1 of 8 (318 views)
Permalink
Re: Python 3

Steven D'Aprano <steven [at] REMOVE> writes:

> On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
>
> > Steven D'Aprano <steven [at] REMOVE> writes:
> >> Why would I want to use an already existing library that is fast,
> >> well- written and well-supported, when I can toss together a nasty
> >> kludge myself?
> >
> > Because using that library will ensure you can't migrate to Python 3
> > any time soon?
>
> Why would I want to migrate to Python 3 any time soon?

Sounds like you've answered the questions posed, then. Good for you!

--
\ “The whole area of [treating source code as intellectual |
`\ property] is almost assuring a customer that you are not going |
_o__) to do any innovation in the future.” —Gary Barnett |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list


steven at REMOVE

Nov 4, 2009, 7:00 PM

Post #2 of 8 (307 views)
Permalink
Re: Python 3 [In reply to]

On Thu, 05 Nov 2009 13:27:09 +1100, Ben Finney wrote:

> Steven D'Aprano <steven [at] REMOVE> writes:
>
>> On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
>>
>> > Steven D'Aprano <steven [at] REMOVE> writes:
>> >> Why would I want to use an already existing library that is fast,
>> >> well- written and well-supported, when I can toss together a nasty
>> >> kludge myself?
>> >
>> > Because using that library will ensure you can't migrate to Python 3
>> > any time soon?
>>
>> Why would I want to migrate to Python 3 any time soon?
>
> Sounds like you've answered the questions posed, then. Good for you!

I was actually only being *half* tongue in cheek, which is why I left out
the smiley.

On the python-dev list at the moment is a lot of discussion on why uptake
of Python 3.1 has been slower than hoped. But one of the things that
people haven't really discussed -- or at least that I haven't seen -- is
why one would prefer 3.1 over 2.5 or 2.6.

I've played around with 3.0, and I've read the What's New for 3.1 (and am
installing 3.1 now), and while the changes look nice, I'm not sure that
they're nice enough to deal with the pain of 2to3 migration.

So how about that, 3.1 fans? What are the most compelling reasons for you
that convinced you to change?


--
Steven
--
http://mail.python.org/mailman/listinfo/python-list


alfps at start

Nov 4, 2009, 7:33 PM

Post #3 of 8 (306 views)
Permalink
Re: Python 3 [In reply to]

* Steven D'Aprano:
> On Thu, 05 Nov 2009 13:27:09 +1100, Ben Finney wrote:
>
>> Steven D'Aprano <steven [at] REMOVE> writes:
>>
>>> On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
>>>
>>>> Steven D'Aprano <steven [at] REMOVE> writes:
>>>>> Why would I want to use an already existing library that is fast,
>>>>> well- written and well-supported, when I can toss together a nasty
>>>>> kludge myself?
>>>> Because using that library will ensure you can't migrate to Python 3
>>>> any time soon?
>>> Why would I want to migrate to Python 3 any time soon?
>> Sounds like you've answered the questions posed, then. Good for you!
>
> I was actually only being *half* tongue in cheek, which is why I left out
> the smiley.
>
> On the python-dev list at the moment is a lot of discussion on why uptake
> of Python 3.1 has been slower than hoped. But one of the things that
> people haven't really discussed -- or at least that I haven't seen -- is
> why one would prefer 3.1 over 2.5 or 2.6.
>
> I've played around with 3.0, and I've read the What's New for 3.1 (and am
> installing 3.1 now), and while the changes look nice, I'm not sure that
> they're nice enough to deal with the pain of 2to3 migration.
>
> So how about that, 3.1 fans? What are the most compelling reasons for you
> that convinced you to change?

Since I'm just learning Python and am an utter Python novice this might not
amount to much, but it's in the nature of language evolution that the new more
or less incompatible version *does* become the dominant one, and for new things
it's then a good idea to adopt the coming in future generally used version of
the language, instead of being left in a quagmire trying to catch up with new
versions of tools and libs suddenly not so compatible with the old code.

This happened with e.g. C++ standardization in 1998. The whole standard library
was revamped and put in a namespace, and old headers like [iostream.h] were
removed. And as with the Python "/" operator core language functionality was
changed: in C++98 'new' suddenly threw (Pythoneese raised) an exception instead
of returning 0 on failure, and templates were suddenly "two phase" with quite
different semantics, so that much old code didn't even compile, and when it did,
didn't work correctly.

But those who chose to stay behind paid and still for some pay the price, having
to use ages old tools and libs. One amusing or sad (depending one's point of
view) variant was where firms chose to get along with the language evolution,
tools etc., but still restrict themselves to not only pre-standard C++ but some
early 1980's version, not much more than "C with classes" or "better C". For
example, at Google they generally don't use C++ exceptions, presumably because
they have a large code base of non-exception-safe code. Still, assuming that's
the rationale, it would surprise me if they don't use exceptions in their new code.

This is perhaps an heretical view, that the new language version's advantages
don't matter so much as the fact that the new language version is incompatible,
viewing that incompatibility as a /reason/ to change.

But I think it's realistic; getting the advantages (such as with Python 3.x
improved efficiency for range etc., and thus also more clear notation) is just
an added bonus.


Cheers & hth.,

- Alf
--
http://mail.python.org/mailman/listinfo/python-list


mensanator at aol

Nov 4, 2009, 10:25 PM

Post #4 of 8 (301 views)
Permalink
Re: Python 3 [In reply to]

On Nov 4, 9:00pm, Steven D'Aprano
<ste...@REMOVE.THIS.cybersource.com.au> wrote:
> On Thu, 05 Nov 2009 13:27:09 +1100, Ben Finney wrote:
> > Steven D'Aprano <ste...@REMOVE.THIS.cybersource.com.au> writes:
>
> >> On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
>
> >> > Steven D'Aprano <ste...@REMOVE.THIS.cybersource.com.au> writes:
> >> >> Why would I want to use an already existing library that is fast,
> >> >> well- written and well-supported, when I can toss together a nasty
> >> >> kludge myself?
>
> >> > Because using that library will ensure you can't migrate to Python 3
> >> > any time soon?
>
> >> Why would I want to migrate to Python 3 any time soon?
>
> > Sounds like you've answered the questions posed, then. Good for you!
>
> I was actually only being *half* tongue in cheek, which is why I left out
> the smiley.
>
> On the python-dev list at the moment is a lot of discussion on why uptake
> of Python 3.1 has been slower than hoped. But one of the things that
> people haven't really discussed -- or at least that I haven't seen -- is
> why one would prefer 3.1 over 2.5 or 2.6.
>
> I've played around with 3.0, and I've read the What's New for 3.1 (and am
> installing 3.1 now), and while the changes look nice, I'm not sure that
> they're nice enough to deal with the pain of 2to3 migration.
>
> So how about that, 3.1 fans? What are the most compelling reasons for you
> that convinced you to change?

Itertools is worth the price of admission. As far as the "pain of
migration"
is concerned, less annoying than a mosquito bite.

>
> --
> Steven- Hide quoted text -
>
> - Show quoted text -

--
http://mail.python.org/mailman/listinfo/python-list


rustompmody at gmail

Nov 4, 2009, 11:33 PM

Post #5 of 8 (299 views)
Permalink
Re: Python 3 [In reply to]

Steven D'Aprano wrote:
> On the python-dev list at the moment is a lot of discussion on why uptake
> of Python 3.1 has been slower than hoped. But one of the things that
> people haven't really discussed -- or at least that I haven't seen -- is
> why one would prefer 3.1 over 2.5 or 2.6.

> So how about that, 3.1 fans? What are the most compelling reasons for you
> that convinced you to change?

Why I am back on 2.5/2.6

Case 1
I need to use the library construct for parsing binary files
http://construct.wikispaces.com/
I tried porting it to python 3 but was not successful.
Dont pretend to have tried very hard but...
1. The library is quite well written but I dont know its internals
2. In fact I am just familiarisng myself with its usage
3. Intricacies of 2to3 changes their whys and wherefores are quite
foreign to me -- specifically unicode matters have always frightened
me.

Case 2
I prefer to use python-mode in emacs for development
python 3 has broken python-mode by removing execfile
I suggested a (1-line) fix https://bugs.launchpad.net/python-mode/+bug/450552
Its still pending.

Case 3
Python3 has a windows installer but no deb packages for ubuntu/debian
I installed with the installer on windows
and compiled the sources on linux (with some help of this list)
However compilation takes time and converts my laptop into a toaster
Given the above 2 cases I seem to have wasted the wearntear of my laptop.

Summary:
The attraction of python is not primarily in the language.
Its not even in the batteries that are *included* but the non-included
ones that are available.
If that set is significantly sparser for 3 than for 2.x I dont see how
many people can adopt it even if they wish to

[.Excludes the academics in ivory towers who discuss the subtle
qualities of different languages.
Been-there-done-that (was in a university for 20 years) and if I was
in that context I would not use 2 or 3 but lisp, haskell or some other
beautiful wonderment from arcanaland]
--
http://mail.python.org/mailman/listinfo/python-list


ethan at stoneleaf

Nov 5, 2009, 8:04 AM

Post #6 of 8 (298 views)
Permalink
Re: Python 3 [In reply to]

Steven D'Aprano wrote:
> On Thu, 05 Nov 2009 13:27:09 +1100, Ben Finney wrote:
>
>
>>Steven D'Aprano <steven [at] REMOVE> writes:
>>
>>
>>>On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
>>>
>>>
>>>>Steven D'Aprano <steven [at] REMOVE> writes:
>>>>
>>>>>Why would I want to use an already existing library that is fast,
>>>>>well- written and well-supported, when I can toss together a nasty
>>>>>kludge myself?
>>>>
>>>>Because using that library will ensure you can't migrate to Python 3
>>>>any time soon?
>>>
>>>Why would I want to migrate to Python 3 any time soon?
>>
>>Sounds like you've answered the questions posed, then. Good for you!
>
>
> I was actually only being *half* tongue in cheek, which is why I left out
> the smiley.
>
> On the python-dev list at the moment is a lot of discussion on why uptake
> of Python 3.1 has been slower than hoped. But one of the things that
> people haven't really discussed -- or at least that I haven't seen -- is
> why one would prefer 3.1 over 2.5 or 2.6.
>
> I've played around with 3.0, and I've read the What's New for 3.1 (and am
> installing 3.1 now), and while the changes look nice, I'm not sure that
> they're nice enough to deal with the pain of 2to3 migration.
>
> So how about that, 3.1 fans? What are the most compelling reasons for you
> that convinced you to change?

Python 3 is more pythonic. ;-)

Cleaner, more consistent, etc.

~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list


tjreedy at udel

Nov 5, 2009, 2:31 PM

Post #7 of 8 (289 views)
Permalink
Re: Python 3 [In reply to]

Steven D'Aprano wrote:

> I've played around with 3.0, and I've read the What's New for 3.1 (and am
> installing 3.1 now), and while the changes look nice, I'm not sure that
> they're nice enough to deal with the pain of 2to3 migration.

I am in a different position since I did not have current code that
would need migrating.

> So how about that, 3.1 fans? What are the most compelling reasons for you
> that convinced you to change?

I am writing a book on algorithms that uses a subset of 3.1 as the
algorithm language. It it simply cleaner and easier to explain to people
not already familiar with the quirks of 2.x. One small but
important-to-me example. I do not need to put 'from __future__ import
integerdivision' (or whatever the incantation is) as the top of files.
Hence I do not need to waste energy (mime and readers) explaining
furture imports and the specifics of the old versus new meaning of int/int.

While I initially resisted the text==unicode change, I now see it as
essential to the future of Python as a world algorithm language.

I admit that I am more bothered about the leftover quirks (to me --
sludge) in 2.x than most.

Unless you are the author/maintainer of an essential library, I have no
opinion as to what you do with old code, or even what you use for new code.

I do care about people trying to disparage or sabotage 3.x.

Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list


debatem1 at gmail

Nov 5, 2009, 2:42 PM

Post #8 of 8 (287 views)
Permalink
Re: Python 3 [In reply to]

On Thu, Nov 5, 2009 at 5:31 PM, Terry Reedy <tjreedy [at] udel> wrote:
> Steven D'Aprano wrote:
>
>> I've played around with 3.0, and I've read the What's New for 3.1 (and am
>> installing 3.1 now), and while the changes look nice, I'm not sure that
>> they're nice enough to deal with the pain of 2to3 migration.
>
> I am in a different position since I did not have current code that would
> need migrating.
>
>> So how about that, 3.1 fans? What are the most compelling reasons for you
>> that convinced you to change?
>
> I am writing a book on algorithms that uses a subset of 3.1 as the algorithm
> language. It it simply cleaner and easier to explain to people not already
> familiar with the quirks of 2.x. One small but important-to-me example. I do
> not need to put 'from __future__ import integerdivision' (or whatever the
> incantation is) as the top of files. Hence I do not need to waste energy
> (mime and readers) explaining furture imports and the specifics of the old
> versus new meaning of int/int.

I agree. Most of my code is primarily mathematical, and while I personally
see the move away from functional programming techniques as a minor
misstep, the cleanliness of it all more than makes up for that.

Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.