Language Selection

English French German Italian Portuguese Spanish

What's New in Python 2.5

Filed under
Software

It's hard to believe Python is more than 15 years old already. While that may seem old for a programming language, in the case of Python it means the language is mature. In spite of its age, the newest versions of Python are powerful, providing everything you would expect from a modern programming language. This article provides a rundown of the new and important features of Python 2.5.

I assume that you're familiar with Python and aren't looking for an introductory tutorial, although in some cases I do introduce some of the material, such as generators.

Changes and Enhancements to the Language Itself

Python 2.5 includes many useful improvements to the language. None of the changes are huge; nor do they require changes to your existing 2.4 code.

Conditional Expressions

Other languages, particularly C and C++, have for years allowed conditional expressions, which are expressions that include an if statement. The idea is simple: You have a variable, and you want to set the variable to one value if some condition is true; otherwise, you want to set the variable to another variable.

Certainly, you could always do this in Python using a block if statement like so:

Full Story.

More in Tux Machines

6 key points about Intel's hot new Linux distro

The great thing about Linux is is that anyone possessing the wherewithal and dedication can produce a distribution to satisfy their own needs. That's also the bad thing, as it means many Linux distributions, even those with name backing, fight to distinguish themselves or to be recognized at all. Read more

Microsoft Demise (More Layoffs), UNIX Demise, Rise of GNU/Linux

  • Microsoft expected to cut more jobs
    Microsoft will announce the final 700 job cuts for FY 2016-17 next week at its quarterly earnings report. Analysts are saying that is not too bad for a company employing more than 114,000 people. Indeed, these layoffs had already been announced last June as part of a 2850 right-sizing that was to be completed by end of January 2017, presumably after the US holiday season and before the end of Microsoft’s financial year.
  • Oracle lays off more than 1,000 employees
    According to the Mercury News, Oracle is laying off approximately 450 employees in its Santa Clara hardware systems division. Reports at The Layoff, a discussion board for technology business firings, claim about 1,800 employees company-wide are being pink-slipped.
  • A Night On The Town
    We talked for an hour about teaching in the North and how I came to GNU/Linux. He could relate because he had also done work in the North and served customers there. There was absolutely no discussion of the flaws of GNU/Linux or why it’s inferior to That Other OS. We both found GNU/Linux far superior for reliable IT. Amen.

Ultimate Linux on the Desktop

Over the past couple of years I have set out to create the ultimate Linux on the desktop experience for myself. Obviously everyone who runs Linux has their own opinions on things. What this post will outline is my ultimate Linux on the desktop experience. So just remember that before you get your panties in a knot on HackerNews because you live and die by Xmonad (I live and die by i3, fight me). First, you should already know that I run everything on my laptop in containers. I outlined this in my posts about Docker Containers on the Desktop and Runc Containers on the Desktop. Read more Also: Optimizing Linux for Slow Computers

Dedoimedo interviews: DistroWatch

I don't there's much for me to add. Jesse provided a very detailed drilldown into what DistroWatch is, what it does, and most importantly, how you can help, whether you're a reader or a distro developer. Getting involved may be intimidating, but it also has its rewards. And there's potential for blooming tech writers to spread their wings, too. Anyhow, I'd like to thank Jesse, introspect on our uncanny pseudo-genetic similarity, and go back to plotting and hatching additional stories, reviews and interviews. To wit, if you have any ideas or recommendations, or if you crave some spotlight yourself, feel free to contact me. WARP 9, engage. Read more