Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why has python3 been created as a seperate language where there is still python2.7 ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 42 of 42 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Serhiy Storchaka  
View profile  
 More options Jun 27 2012, 2:58 pm
Newsgroups: comp.lang.python
From: Serhiy Storchaka <storch...@gmail.com>
Date: Wed, 27 Jun 2012 21:58:53 +0300
Local: Wed, Jun 27 2012 2:58 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
On 27.06.12 17:34, Christian Tismer wrote:

> That's why I was unhappy with py3's missing flexibility.

Excessive flexibility is amorphism.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Serhiy Storchaka  
View profile  
 More options Jun 27 2012, 3:08 pm
Newsgroups: comp.lang.python
From: Serhiy Storchaka <storch...@gmail.com>
Date: Wed, 27 Jun 2012 22:08:07 +0300
Local: Wed, Jun 27 2012 3:08 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
On 27.06.12 14:22, Stefan Behnel wrote:

> For comparison, the revival of the "u" string prefix in Py3.3 is a simple
> change in the parser grammar that's easy to maintain but that has a huge
> impact on the Py3 compatibility of code that accepts to drop support for
> Py2.5 and earlier (as well as Py3.[012]) but wants to keep working in
> Py2.[67] (which supports the opposite "b" prefix).

And even this simple change has caused unexpected issues (see issues
#15054 and #15096), which were not predicted by the preceding stormy
discussion. IMHO, the negative consequences of this change are undervalued.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Terry Reedy  
View profile  
 More options Jun 27 2012, 5:14 pm
Newsgroups: comp.lang.python
From: Terry Reedy <tjre...@udel.edu>
Date: Wed, 27 Jun 2012 17:14:42 -0400
Local: Wed, Jun 27 2012 5:14 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
On 6/27/2012 3:08 PM, Serhiy Storchaka wrote:

> On 27.06.12 14:22, Stefan Behnel wrote:
>> For comparison, the revival of the "u" string prefix in Py3.3 is a simple
>> change in the parser grammar that's easy to maintain
> And even this simple change has caused unexpected issues (see issues
> #15054 and #15096), which were not predicted by the preceding stormy
> discussion.

#15054 was mostly not about 'u'.

http://bugs.python.org/issue15096 is about 'u', or rather about the post
discussion extension of 'u' to 'ur'. During the discussion of 'u', I
predicted that adding 'innocuous' 'u' would lead to efforts to add other
things. Adding 'ur' was the first example of that. We are fortunate that
someone decided to test the new feature at the alpha stage. At least the
near fiasco is a lesson.

> IMHO, the negative consequences of this change are undervalued.

Another prediction: people who code Python without reading the manual,
at least not for new features, will learn about 'u' somehow (such as by
reading this list) and may do either of the following, both of which are
bad.

1. They will confuse themselves by thinking that 'u' actually means
somethings. They may then confuse others by writing about its supposed
meaning. This might get amusing.

2. They will use 'u' in Python 3 only code, thereby making it
incompatible with 3.2-, even if it otherwise would not be.

These two actions will reinforce each other.

--
Terry Jan Reedy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Tismer  
View profile  
 More options Jun 27 2012, 6:11 pm
Newsgroups: comp.lang.python
From: Christian Tismer <tis...@stackless.com>
Date: Thu, 28 Jun 2012 00:11:05 +0200
Local: Wed, Jun 27 2012 6:11 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
On 6/27/12 8:58 PM, Serhiy Storchaka wrote:

> On 27.06.12 17:34, Christian Tismer wrote:
>> That's why I was unhappy with py3's missing flexibility.

> Excessive flexibility is amorphism.

Random notes without context and reasoning are no better than spam.
My answer as well, of course, so let's stop here.

--
Christian Tismer             :^)   <mailto:tis...@stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* http://starship.python.net/
14482 Potsdam                :     PGP key -> http://pgp.uni-mainz.de
work +49 173 24 18 776  mobile +49 173 24 18 776  fax n.a.
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
       whom do you want to sponsor today?   http://www.stackless.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alex23  
View profile  
 More options Jun 27 2012, 8:44 pm
Newsgroups: comp.lang.python
From: alex23 <wuwe...@gmail.com>
Date: Wed, 27 Jun 2012 17:44:23 -0700 (PDT)
Local: Wed, Jun 27 2012 8:44 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
On Jun 28, 8:11 am, Christian Tismer <tis...@stackless.com> wrote:

> Random notes without context and reasoning are no better than spam.
> My answer as well, of course, so let's stop here.

It's more that all of this has been discussed at length. Repeatedly.
It's very easy to criticise the current state of affairs when you
didn't actively participate in the lead up to it and, by your own
admission, really just want tools to "abuse" existing libraries
without putting effort into migration. It's fine that you want this,
but don't expect anyone else to put in effort where you're not
prepared.

If you believe providing a complementary __past__ namespace will work
- even though I believe Guido has explicitly stated it will never
happen - then the onus is on you to come up with an implementation.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rantingrickjohn...@gmail.com  
View profile  
 More options Jun 27 2012, 11:25 pm
Newsgroups: comp.lang.python
From: rantingrickjohn...@gmail.com
Date: Wed, 27 Jun 2012 20:25:29 -0700 (PDT)
Local: Wed, Jun 27 2012 11:25 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On Monday, June 25, 2012 10:35:14 PM UTC-5, Steven D&#39;Aprano wrote:
> (Rick, don't make me regret communicating with you again.)

Well unfortunately Steven i am not sure what causes you to stop communicating with me for these seeming random periods of time -- although i can deduce from past experiences that you have difficulty accepting diverse opinions, then, your emotions take control causing you to wield the only weapon of recourse you have available to you: the kill file --  so in that sense, i cannot provide a solution for a problem that exists beyond my control. HTH.

> On Mon, 25 Jun 2012 19:28:01 -0700, rantingrickjohnson wrote:
> There's no real difference between typing print(...) and all the other
> functions in Python. Do you lament having to type len(obj) instead of
> "len obj" or list(zip(a, b, c)) instead of "list zip a b c"?

No. I actually like the forced parenthesis -- even when on a function declaration with no arguments. I think this is a consistent approach. And boy do i love consistency!

> Making print a statement in the first place was a mistake, but
> fortunately it was a simple enough mistake to rectify once the need for
> backward compatibility was relaxed.

Agreed. However, my comment was not a rant against the new print function, more that, it is a warning against pushing people to learn Python 2.x FIRST, and therby "training" them with the bad habit of using a "naked print syntax" that they will surely lament in the future.

For me the print statement is like a big old delicious chocolate chip cookie and the print function is like a plate of leafy vegetables. I know i should eat my vegetables; but that damn cookie is just too tempting!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rantingrickjohn...@gmail.com  
View profile  
 More options Jun 27 2012, 11:32 pm
Newsgroups: comp.lang.python
From: rantingrickjohn...@gmail.com
Date: Wed, 27 Jun 2012 20:32:03 -0700 (PDT)
Local: Wed, Jun 27 2012 11:32 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On Tuesday, June 26, 2012 1:24:43 AM UTC-5, Stefan Behnel wrote:
> Maybe we should add a remote error reporting mode to Python that sends all
> syntax error messages not only to the local screen but also directly to the
> PSF so that they can fund developers who are able to delete that error
> message from the interpreter based on real world statistical evidence. That
> would eventually make the language match the powerset of what all users
> have in their fingers. A very worthy goal, if you ask me.

I'm sure you meant this a joke, however, some feedback like this would be greatly beneficial to the developers and community. It's not something you'd want to send each time an exception is thrown, but a log could be requested for delivery from time to time. I think it would be a great addition to any python editor; especially those geared toward neophytes: like IDLE and such.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rantingrickjohn...@gmail.com  
View profile  
 More options Jun 27 2012, 11:32 pm
Newsgroups: comp.lang.python
From: rantingrickjohn...@gmail.com
Date: Wed, 27 Jun 2012 20:32:03 -0700 (PDT)
Local: Wed, Jun 27 2012 11:32 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On Tuesday, June 26, 2012 1:24:43 AM UTC-5, Stefan Behnel wrote:
> Maybe we should add a remote error reporting mode to Python that sends all
> syntax error messages not only to the local screen but also directly to the
> PSF so that they can fund developers who are able to delete that error
> message from the interpreter based on real world statistical evidence. That
> would eventually make the language match the powerset of what all users
> have in their fingers. A very worthy goal, if you ask me.

I'm sure you meant this a joke, however, some feedback like this would be greatly beneficial to the developers and community. It's not something you'd want to send each time an exception is thrown, but a log could be requested for delivery from time to time. I think it would be a great addition to any python editor; especially those geared toward neophytes: like IDLE and such.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rantingrickjohn...@gmail.com  
View profile  
 More options Jun 27 2012, 11:53 pm
Newsgroups: comp.lang.python
From: rantingrickjohn...@gmail.com
Date: Wed, 27 Jun 2012 20:53:59 -0700 (PDT)
Local: Wed, Jun 27 2012 11:53 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

Unfortunately, even though "print" is supposedly only used by the neophytes, the python<3.0 stdlib is full of print statements. For instance, out of 3173 files, 986 contained the word "print"[1]. Heck just in the Lib folder alone (without recusing down sub directories) there are 1352 instances of "print" in a "py" file!

Naive Nancy Mused: "If only neophtes use print, and the Python Lib is full of prints statements, then the python developers must be...OH DEAR GAWD!"

[1] of course that is when using `filestr.count("print")` -- I assume that the word "print" is not used excessively in comments or docstrings. Someone else can do a less naive search if they like.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rantingrickjohn...@gmail.com  
View profile  
 More options Jun 27 2012, 11:53 pm
Newsgroups: comp.lang.python
From: rantingrickjohn...@gmail.com
Date: Wed, 27 Jun 2012 20:53:59 -0700 (PDT)
Local: Wed, Jun 27 2012 11:53 pm
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

Unfortunately, even though "print" is supposedly only used by the neophytes, the python<3.0 stdlib is full of print statements. For instance, out of 3173 files, 986 contained the word "print"[1]. Heck just in the Lib folder alone (without recusing down sub directories) there are 1352 instances of "print" in a "py" file!

Naive Nancy Mused: "If only neophtes use print, and the Python Lib is full of prints statements, then the python developers must be...OH DEAR GAWD!"

[1] of course that is when using `filestr.count("print")` -- I assume that the word "print" is not used excessively in comments or docstrings. Someone else can do a less naive search if they like.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alex23  
View profile  
 More options Jun 28 2012, 12:05 am
Newsgroups: comp.lang.python
From: alex23 <wuwe...@gmail.com>
Date: Wed, 27 Jun 2012 21:05:56 -0700 (PDT)
Local: Thurs, Jun 28 2012 12:05 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
Rick, fix your mail reader/sender, your lines aren't wrapping
properly.

On Jun 28, 1:53 pm, rantingrickjohn...@gmail.com wrote:

> Unfortunately, even though "print" is supposedly only used by the neophytes, the python<3.0 stdlib is full of print statements. For instance, out of 3173 files, 986 contained the word "print"[1]. Heck just in the Lib folder alone (without recusing down sub directories) there are 1352 instances of "print" in a "py" file!

Stefan said "rarely used". Until you count all keywords & built-ins in
those files and provide a relative basis of comparison, you're not
saying anything here.

> Naive Nancy Mused: "If only neophtes use print, and the Python Lib is full of prints statements, then the python developers must be...OH DEAR GAWD!"

It's a good thing there's no open flame around given the sheer number
of strawmen you stuff into your posts.

No one made any such claim about "neophytes", just that logging can be
better than print() as a general debugging tool.

> [1] of course that is when using `filestr.count("print")` -- I assume that the word "print" is not used excessively in comments or docstrings. Someone else can do a less naive search if they like.

So you couldn't even be bothered to do it right, but you're happy to
form a noisy opinion on this crap, and now the onus is on someone else
to correct the ignorance you've pushed onto this list. Again.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven D'Aprano  
View profile  
 More options Jun 28 2012, 12:32 am
Newsgroups: comp.lang.python
From: Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info>
Date: 28 Jun 2012 04:32:23 GMT
Local: Thurs, Jun 28 2012 12:32 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On Wed, 27 Jun 2012 17:44:23 -0700, alex23 wrote:
> If you believe providing a complementary __past__ namespace will work -
> even though I believe Guido has explicitly stated it will never happen -
> then the onus is on you to come up with an implementation.

Guido speaks only for CPython. Other implementations can always do
differently.

The Python 3 naysayers are welcome to fork Python 2.7 and support it
forever, with or without a __past__ namespace. That's the power of open
source software.

And who knows, if it becomes popular enough, perhaps it will be ported to
CPython too.

--
Steven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Serhiy Storchaka  
View profile  
 More options Jun 28 2012, 1:36 am
Newsgroups: comp.lang.python
From: Serhiy Storchaka <storch...@gmail.com>
Date: Thu, 28 Jun 2012 08:36:15 +0300
Local: Thurs, Jun 28 2012 1:36 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
On 28.06.12 00:14, Terry Reedy wrote:

> Another prediction: people who code Python without reading the manual,
> at least not for new features, will learn about 'u' somehow (such as by
> reading this list) and may do either of the following, both of which are
> bad.

> 1. They will confuse themselves by thinking that 'u' actually means
> somethings. They may then confuse others by writing about its supposed
> meaning. This might get amusing.

> 2. They will use 'u' in Python 3 only code, thereby making it
> incompatible with 3.2-, even if it otherwise would not be.

> These two actions will reinforce each other.

Yes, this is what I mean. I can even make a prediction: in just 5 years,
as this feature would be banned in a decent society. The authors of the
books will be strongly advise not to use it, and in software companies
'u' will be prohibited in coding style. But get rid of this will be
difficult.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Behnel  
View profile  
 More options Jun 28 2012, 1:47 am
Newsgroups: comp.lang.python
From: Stefan Behnel <stefan...@behnel.de>
Date: Thu, 28 Jun 2012 07:47:24 +0200
Local: Thurs, Jun 28 2012 1:47 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?
Serhiy Storchaka, 28.06.2012 07:36:

Once Py2.7 is out of maintenance, we can deprecate that feature in one
release and start warning about it in the next one. You're then free to use
the corresponding 2to3 fixer to get it back out of your code with a single
patch.

Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wxjmfa...@gmail.com  
View profile  
 More options Jun 28 2012, 5:34 am
Newsgroups: comp.lang.python
From: wxjmfa...@gmail.com
Date: Thu, 28 Jun 2012 02:34:41 -0700 (PDT)
Local: Thurs, Jun 28 2012 5:34 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On the other side, one can argue this (elegancy):

b'a serie of bytes'
u'a unicode, a serie of code points'

'python2? str? python3? encoded _unicode?'

jmf


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wxjmfa...@gmail.com  
View profile  
 More options Jun 28 2012, 5:34 am
Newsgroups: comp.lang.python
From: wxjmfa...@gmail.com
Date: Thu, 28 Jun 2012 02:34:41 -0700 (PDT)
Local: Thurs, Jun 28 2012 5:34 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On the other side, one can argue this (elegancy):

b'a serie of bytes'
u'a unicode, a serie of code points'

'python2? str? python3? encoded _unicode?'

jmf


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Angelico  
View profile  
 More options Jun 28 2012, 6:14 am
Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Thu, 28 Jun 2012 20:14:35 +1000
Local: Thurs, Jun 28 2012 6:14 am
Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ?

On Thu, Jun 28, 2012 at 7:34 PM,  <wxjmfa...@gmail.com> wrote:
> On the other side, one can argue this (elegancy):

> b'a series of bytes'
> u'a unicode, a series of code points'

Alas, not perfectly so. A 'bytes' object and a 'unicode' object can be
described that way (with 'str' an alias for one or t'other), but
literal strings are never that simple. (Backslash escapes, delimiters,
newlines, etc, etc, etc.) However, it is a nice idea, to the extent
that it's possible.

ChrisA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »