Tuesday, February 22, 2011

http://getpython3.net/- info. on Python 3 packages

I just stumbled across this site(http://getpython3.net/) which is a platform for discussing Python 3 packages. I haven't used this site yet but if any of you guys find it useful, you can share your experience via comments.

Wednesday, December 1, 2010

3kpoll- Vote for your favorite Python package

Although it's been around two years since the release of Python 3, many Python packages including popular ones like django, wxPython and numpy haven't ported to Python 3. Now, the official Python website is running a poll to supposedly get volunteers and package authors to get started on porting the most "wanted" packages to Python 3, although "nominating a package will not mean that its authors now start porting it to Python 3."

According to the poll[up till now], most Python users want django to be supported by Python 3. wxPython and numpy take up the second and third places respectively.  The results of the poll can be found at http://www.python.org/3kpoll. Also, don't forget to vote or nominate your favorite Python package to be ported to Python 3.

Saturday, November 20, 2010

Basic physics problem solver GUI

I just wrote a simple GUI in wxPython which calculates speed, distance or time according to the input.

Here is the code-

And, here is what the output looks like-

As you can see, this is a very simple program, see the code, find out how it works and you can modify it yourself too!! Share any of your comment/feedbacks in the comments section below.

PS. Please note that to run the program you will need to have wxPython installed. 

Thursday, November 11, 2010

Stuck in Python 2.7

I started off with learning Python 3 in the first place but now I am working my way backwards and I'm using Python 2.7. That happened because many popular libraries that I want to use like wxPython, django and many more haven't yet ported to Python 3 yet.

I also recommend others who like me began with Python 3 to get and install Python 2.7(latest in 2.x versions). This won't be a problem though as many features have been backported to Python 2.7 in the form of the 'future' module(see here how to do it) and most of your programs will be able to run on Python 3 too.

Python awarded best programming language for second year

The Readers' Choice awards by Linux Journal picked out Python as the best programming language as well as best scripting language for the second year in a row.

In programming languages, the second position is held by C++, followed by Java, C and Perl in the 3rd, 4th and 5th places respectively.

Whereas in scripting languages PHP is the runner-up followed by bash, Perl and Ruby.

Cheers to all the Pythonistas out there!!

See the full results of the Awards at Linux Journal.

Wednesday, November 10, 2010

The Zen of Python

In this post I am going to introduce you to what began as a kind of joke by long time Pythoneer Tim Peters but later sustained through more than 20 years to become a outline of the philosophy of the Python programming language. Developers at the Python Software Foundation as well as programmers using Python have found guidance in the Zen of Python.

You can find the Zen of Python in a module called 'this' in your very own Python installation.

As you can see, the Zen of Python is written in a rather poetic and humorous way. Looks like Python programmers do have a lot of sense of humor. For one more Python joke type in:

in your command prompt.

Monday, November 8, 2010

Color-code your programming blogs with Friendpaste

I was just going through some of my earlier blog entries and I noticed how ugly all the code looks. Besides, every time I had to post a code I had to change the font just to let you guys know that the code part had begun. Well.... not any more :D!!

I just found Friendpaste which automatically color-codes a program and formats it according to the selected language. Just the service I needed!! I hope that you'll have a easier time around the blog after I start using the service.

Do give us your feedback/suggestions.