An Unknown Indian

Thoughts of a FOSS enthusiast

Py3k looks like a new language

Posted by Balachandran on October 21, 2008

    Hi folks, another long gap. I had been trying to work with Py3k, but in vain. I had not updated myself even to Python 2.6, when I read about the release of RC1 for python 3.0(Py3k), and its documentation I was totally stunned to know that everything right from the basic “print” statement to the use of strings has changed. When I weent through the “What’s new”, I just understod that my knowledge has been just repositioned to 0(Though I need to agree that it was always close to zero 😦 ).

      Looking at all these, I am certain that all my previous code will shout hundreds of errors when I use the python3.0 interpreter with those code. Also, I had the habit of working with the python interpreter shell for quick needs. And now am getting errors very very frequesntly with that. Though I had been reading about the huge changes between the 2.x versions and the (then)impending 3.0 version for the past few months, I didn’t realise how grave it was until I started using the new version.

    Luckily, they have a converter that will convert code from the 2.6 version to the Py3k. And it seems they had made 2.6 with an hint of the appraoching storm. So, I think the best way to convert any old 2.x code of mine,  that I might want to use, to 3.0 is to convert the code to 2.6 first and then to 3.0 using the converter.

 

     Oh God, I think I have a new language to learn before I can say “I know something in Python”.

Advertisements

2 Responses to “Py3k looks like a new language”

  1. googleurmind said

    Oh… Means, all our preparations and hours of coding got expired ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: