954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Python 2 vs Python 3

Hi Friends,
(i) I'm very new to python.so i wanna know which version of python is suitable for me.I have python 2 and python 3 in my choices..which one is best for me???
(ii)Also give me the list of GUI toolkits for respective versions..
(iii)which version has the best library for web development?


Note: I will be mostly working on GUI & Web development.


Thanks in advance...

idiotguy
Newbie Poster
9 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

python 2 is more stable and alot of people still use it and prefer it , I heard 3.2 is way better than 3.1 which is why alot of people still used 2.6 although 3.2 is supposed to work decently now, but alot of people use 2.6 so I would recommend that, although you wont have some new features that are in the 3.x version you will have less errors and problems some things aren't compatible with 3.x versions etc.

ret801
Junior Poster in Training
51 posts since Jan 2011
Reputation Points: 1
Solved Threads: 4
 

@idiotguy To start learning, Python 2 is way better and it has lots of modules that aren't yet ported to Python 3, and no way I'll write you a list of GUI Toolkits. You should use PyQt, by the way.

P.S. I use Python 3, and I love it, for me its way better than Python 2, but to start learning with this one you'll have some problems cuz' there you'll need to find modules to work with and most as I said before, aren't yet ported.

telmo96
Newbie Poster
16 posts since Nov 2011
Reputation Points: 10
Solved Threads: 2
 

I would use Python 2.7, it has some features of Python 3 built in.

HiHe
Posting Whiz in Training
236 posts since Oct 2008
Reputation Points: 137
Solved Threads: 22
 

Python3 is the best way to go at this point in your development. For a GUI toolkit that also allows some scripting look at PySide (PyQT).

For example:
http://www.daniweb.com/software-development/python/threads/191210/1597999#post1597999

Something to play with:

# PySide is the official LGPL-licensed version of PyQT
# You can download and use the Windows self-extracting installer
# PySide-1.1.0qt474.win32-py3.2.exe
# from: http://developer.qt.nokia.com/wiki/PySide_Binaries_Windows
# modified example from:
# http://www.pyside.org/docs/pyside/PySide/QtWebKit/
# tested with PySide474 and Python32
 
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *
 
# create a Qt application
app = QApplication([])

# create a PySide.QtWebKit.QWebView() to display a web page
# (your computer needs to be connected to the internet)
view = QWebView()
url = "http://qt.nokia.com/"
view.load(QUrl(url))
view.show()

# run the application event loop
app.exec_()
vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

I have been waiting for a good GUI builder to appear for Python 3.2, PySide looks very good.

I read about PySide in:
http://developer.qt.nokia.com/wiki/PySideDocumentation/

Looks like the download is at:
http://developer.qt.nokia.com/wiki/PySideDownloads

HiHe
Posting Whiz in Training
236 posts since Oct 2008
Reputation Points: 137
Solved Threads: 22
 

PyQt rules, and you can use QtDesigner to help.

telmo96
Newbie Poster
16 posts since Nov 2011
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: