Business Tech

Read all 'Python' posts in Business Tech
December 4, 2008 11:13 AM PST

Major Python update makes break with past

by Matthew Broersma
  • 5 comments

Python developers on Wednesday released the final version of Python 3.0, a major reworking of the programming language that is incompatible with the Python 2 series.

code

Python is widely used for Web applications such as YouTube. Python 3.0, also called Python 3000 or Py3K, is the first Python release that is intentionally backwards-incompatible, according to project founder Guido van Rossum.

"Nevertheless, after digesting the changes, you'll find that Python really hasn't changed all that much--by and large, we're mostly fixing well-known annoyances and warts, and removing a lot of old cruft," van Rossum said in a document outlining the changes.

The most significant changes include modifications to the workings of built-in objects, such as dictionaries and strings, and the removal of older features, according to the Python development team. The standard library has been reorganized in some prominent places, developers said.

In general, the changes are designed to simplify Python development and remove needless complexity that has built up over time, according to van Rossum. However, Python developers have long made it clear that the new release would necessitate changes in most Python-based applications.

"3.0 is also known as the release where we break all your code, but we're doing it for a good reason...Pretty much every program will need changes," said release manager Anthony Baxter in a keynote speech at Linux.conf.au in Melbourne in February.

Baxter stressed that the shift would be some time in coming. "2.x is also not going away...We'll keep maintaining (the 2.x series) as long as there is interest and need," he said.

One of the most notable changes is turning the "print" statement, used for all kinds of information output, into a function. "Currently print has awful syntax for doing all sorts of things," Baxter said.

He said another major change is that Unicode will now be the default. "There's a real shambles in Python at the moment when it comes to mixing Unicode and non-Unicode strings," Baxter said.

Other changes, such as altering models used for division and switching the symbols for "not equal" from "" to "!=", have long been discussed in the Python community but have been held back because of fears over backwards compatibility. With the shift to 3.0, the view is: "What the hell. We're breaking the code anyway; let's fix it", Baxter said.

Matthew Broersma of ZDNet.co.uk reported from London.

July 23, 2008 4:46 PM PDT

Google App Engine sort of getting Perl support

by Stephen Shankland
  • 1 comment

Google programmers are adding support for the Perl programming language to its App Engine service for hosting Web applications, but so far it's not really an official project.

The work is the project of Google employee Brad Fitzpatrick, who disclosed the project on his blog Tuesday. But he's not a member of the App Engine team, and Google isn't promising Perl support, he said. By going public with the project, he hopes to intercept other Perl fans' work in the area.

"I (along with other Perl hackers here at Google) are now allowed to work on this 20 percent project of ours out in the open where other Perl hackers can help us out, should you be so inclined," Fitzpatrick said. (Google permits engineers to spend 20 percent of their work time on pet projects.)

"Here at Google...it's not one of our big languages so I don't get to write as much Perl as I used to. I'd still like to run my personal Web apps on App Engine, though, and I'd like to write them in Perl," he said.

Google plans to add new languages to App Engine, but hasn't yet said which. Perl ranks fourth on the list of desired App Engine languages, after Java, PHP, and Ruby.

Check Fitzpatrick's post for details on the roadmap and what he thinks is necessary to make Perl a full-fledged part of App Engine.

advertisement
 
Lotus knows there's more to work than just email.
Connect with people. Get live feeds. Create widgets. Work securely online or off. Try IBM Lotus Notes.
  • prev
  • 1
  • next
advertisement

Most Popular

15 sites that went kaput in 2009

Web sites launch all the time, but they also shut their doors. We highlight 15 that bit the dust this year.

Top 10 news stories of the decade

Let the debate begin: Was the iPhone more important than iTunes? Was anything bigger than Google finding a great business model? CNET offers its list of the 10 most important stories of the '00s.

About Business Tech

Your destination for the latest news on enterprise-level information technology, from chip research and server design to software issues including programming, open source and patents.

Add this feed to your online news reader

Business Tech topics

Most Discussed



advertisement

Inside CNET News

Scroll Left Scroll Right