Hello.
Tell me please, which Python is better to learn and use? 2 or 3?
Are there any libraries for games, sound in Python 3?
Thanks in advance!
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → Python 2 or 3?
Hello.
Tell me please, which Python is better to learn and use? 2 or 3?
Are there any libraries for games, sound in Python 3?
Thanks in advance!
Well it is all your choice.
If you learn python 3, wel... then you can say that you have the latest version of python.
But if you are learning python 2, it is a little better.
Because if you make a game in python 3, you will have to make a driver for other people to play the game in python.
Because python 2 is a little bit more stable than python 3.
And with python 2 you can get a lot more tutorials than python 3.
Because python 2 is a little older than python 3, so more people created tutorials for python 2.
You will also find that python 2 has a little bit more librarys than python 3, altho some of the librays are going to be ported for python i guess.
Hope it helps you.
As i said it is all your choice.
I personally believe Python 2 right now, as at least in terms of Python 3 and writing audio games, you'd be breaking new ground. Not a bad thing, depends if you're happy to invest the research time required though.
Python 3 overall is better, but adoption has been... rocky. For whatever reason. So you won't get all the good stuff that Python 3 brings. You'll have to find things that fill in that gap if you need them.
@ashleygrobler04, Python3 is probably far more stable than Python 2 is. The only reason I'd suggest Python2 is because currently there are more libraries available for it. Python3 is the new and revised Python, as they say. I don't get why people won't switch to Python3... but hey, when Python2 is officialy deprecated, it will be their fault. Either way, I'd go for Python3. It has far more features and is far easier to use.
Go with whatever you are comfortable with, the language are not that different in terms of sintax. And if you discover that you didn't make the right choise, you can easyly switch.
Python 3 makes a number of improvements over Python 2, proper Unicode support for example. The problem though was that Python 3 completely broke compatibility with Python 2 in the process, along with all of its 3rd party libraries. This naturally caused a bit of a rift in the community and adoption for Python 3 has been quite slow.
Over the decade since its release though compatibility with Python 3 has considerably improved and is now supported by many libraries, but not all of them. There's also an extensive catalog of tutorials around for Python 2 still available, and Python 2 can usually run Python 3 scripts without much trouble.
Yeah yeah, but what, if anything is the good book to learn Py3?
There's plenty around, [Dive Into Python 3], [How To Think Like A Computer Scientist], [Think Python 2nd Edition], to name a few.
I'd like to disagree on the fact that python3 is less stable than python 2.
I'd say python 3 is faster and stable. Plus you can manage to make audiogames with python 3 as well, my last prototype has been coded in python e.6.5.
Also as others have been stating, python 3 has unicode support by default which not sure how much will it matter for you. I'd recommend you learn the concepts of python, if you then choose 2 or 3 it won't matter as you'll be able to master both of them.
Yeah, right now I'm currently in the process of learning Python3.
Thanks Magurp244
I found a way to embet python in my favourite PureBasic that's why I asked .
Thanks once more!
hi,
if you are asking me, python3
1. it is faster
2. it has a lot of features and it is under active development so you can get new features when they are released
3. for compatibility with python 2 if you need any of them, which i don't think so, you can use six
4. new libraries are coded in python 3
5. many of the python 2's libraries work in python 3 without any modifications (but not all of them)
so, i prefer python 3 over python 2.
Do the q-continuum libs work on Python 3?
I would never suggest Python 2 again now when unicode decode and encode issues are fixed and improved in Python 3, and if you need to work on apps that will work on various systems and languages, it can be nightmare with Python2 as you will hardly reproduce how your app behaves on different systems in different languages. I remember the days when my app written in Python2 had problems to run normally on russian systems (reported by russian users), and of course it took me some time and frustration to fix this as I don't speak russian language and I had no access to the russian system. So, Python3 forever!
Most libraries now support Python3 as well, including Pygame and Pyglet for gaming and Libaudioverse for 3D audio. Tolk and AccessibleOutput2 are also Python3 compatible. GUI libraries such as WXPython 4 and PyQT5 which is now accessible can both be used with Python3.
Oh, the QCOntinuum died. Can I somehow get the libs or I am fucked?
you can find the continuum libraries in carter's repository
Did any of you tried kivy? I was trying messing around with it for trying to se if it was accessible.
the entire qt is not accessible.
if you are asking me again, go with wxPython
QT is accessible; at least, as accessible as it can be at the moment. Developing anything with wX in Python can be an absolute nightmare.
WxPython isn't exactly a beginner friendly lib. That's why if PyQT can be an alternative for that it'd be great.
PyQT5 is accessible since 5.10 version, and now in 5.11 they even switched to UIA instead of MSAA for accessibility. I've used it and tested it.
as far as i have seen in qt before 5.10, or even qt4, that's not accessible at all specially in jaws. NVDA's support is better in qt.
i didn't try programming in qt, cause i thaught it won't become accessible.
Is there any proper python IDE? The downside of that lang is that I cannot just test my code while writing it./
AudioGames.net Forum → Developers room → Python 2 or 3?
Generated in 0.021 seconds (57% PHP - 43% DB) with 11 queries