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

Linux Mint Xfce: Moving From Maya to Rebecca

Here’s the problem. For the last couple of years or so we’ve been using Mint’s Xfce edition of Maya (that would be version 13 for those who read the box scores) on nearly all of the machines here at FOSS Force. As Maya will be supported until 2017, we had absolutely no plans to make any upgrades until then, as taking time out for the tedious process of upgrading our machines isn’t one of my favorite things to do — and I’m the one who’d be doing the upgrading. Read more

Google turns its Android font Roboto into an open source project

Designed by Christian Robinson, the Roboto font files were first released in 2011 under the Apache license. Now, the company is organizing the files and the font production toolchain into a fully realized open source project on Github. Read more

New websites for Fedora 22

We started not long time ago, just a few days after F22 Beta release and it was challenging to finish all the work for these websites, collect informations from Spin SIGs, get legal approval, make new translation resources and and and. Read more Also: Fedora 22 will contain some fc21 packages statscache - thoughts on a new Fedora Infrastructure backend service

Here’s how to make your Ubuntu Desktop beautiful

So instead of hurling insults at the confused penguin nestlings, I have decided to help by giving you my own guide on how to make Ubuntu beautiful. Please note there are many ways to do this, this is just my way and because I detest the Dock-style launchers (bottom of the screen) do not ask me about them.If I wanted a Mac I would buy a Mac and use their Docking feature. Who am I kidding here, If I wanted a Mac, I would not be able to afford a Mac. Read more