Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Why has python3 been created as a seperate language where thereis still python2.7 ?

Reply
Thread Tools

Re: Why has python3 been created as a seperate language where thereis still python2.7 ?

 
 
Andrew Berg
Guest
Posts: n/a
 
      06-25-2012
On 6/23/2012 10:46 PM, gmspro wrote:
> What's wrong editing/customizing/changin python2.7 instead of making a
> seperate language?

py3k is not a separate language. In fact, it is possible to maintain a
codebase that supports 2.2 (maybe even older), 3.3, and every version in
between.

> What's wrong working with python2.7?

A lot. Off the top of my head:
In 2.7, the print statement has arbitrary and unobvious syntax. The
print() function has arguments.
In 2.7, input() evaluates incoming strings, which is almost always not
appropriate and can lead to exploits. In py3k, input() doesn't do this.
It returns exactly what it receives.

I barely work with 2.x at all; others will be able to list many more in
much more detail.

> As python3 is not backward compatible, so many packages built on
> python2.7 will be gone someday. Or you have to re-write/upgrade to
> python3. That's a tedious/labourious task.

Indeed. Backward compatibility is important, but it should not be king.
Python had (and arguably still has) major issues that could only be
fixed by breaking backward compatibility.
AFAIK, people use 2.x mainly because they depend on libraries that are
not compatible with py3k yet (e.g., Twisted) or because their preferred
implementation does not implement 3.x (e.g., Jython, PyPy).

> So after 5 years will we get another python4 as seperate language?

No, but there may be changes that aren't backward compatible.

--
CPython 3.3.0a4 | Windows NT 6.1.7601.17803
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why the destructor executes after its friend operator (in which thereis a copy constructor) runs fl C++ 5 01-06-2013 08:32 PM
Re: Why has python3 been created as a seperate language where thereis still python2.7 ? Michiel Overtoom Python 28 06-28-2012 10:14 AM
Re: Why has python3 been created as a seperate language where thereis still python2.7 ? Stefan Behnel Python 3 06-26-2012 10:37 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
The printing has been stopped and this job has been add to the queu? dejola Computer Support 6 12-30-2005 03:26 AM



Advertisments