5

I have been looking into various game design modules for python such as pyglet and pyGame. I have noticed that both of these seem to only be compatible with python 2. Seeing as python 3 is the most current version, why is this? My experience with python has been with python 3, so are there good frameworks/modules out there for python 3 game development? Or would I be better off learning python 2 and using pyglet or pyGame?

edit: I would be using pyGame on a mac. The downloads page, http://www.pygame.org/download.shtml, only has links for py2.6, py2.5, and py2.4, which is what leads me to believe it is not python 3 compatible.

5 Answers 5

5

I don't even get your question, as PyGame is compatible with Python 3 since version 1.9: http://www.pygame.org/wiki/python3porting?parent=todo

There are a few minor issues, but it is usable with Python 3.

Sign up to request clarification or add additional context in comments.

1 Comment

Oh, that's good to hear, based on the downloads page I got the impression that pyGame was only compatible up to py2.6.
1

I'm developing a pygame-based application on Mac OSX with python 3. It definitely works fine, and so far I haven't run into any compatibility problems, though there are certainly other mac-specific pygame bugs that I have found.

That said, I can definitely confirm that it works.

Comments

0

The fifth link from the top under "Windows" on the page you linked to clearly has py-3.1 in the name.

2 Comments

So there is python 3 support on windows but not mac?
@user530718: Yes, that would appear to be the case.
0

They don't support Python 3, because nobody has made them support Python 3 yet. It's a bizarre question. :-)

PyGame seems to mostly support Python 3. There are some issues: (from http://www.pygame.org/wiki/python3porting?parent=todo )

  • Complete unicode file name handling (fsencoding branch), then merge back into trunk (by mid Sept/10).
  • update documentation to explain Unicode in Pygame
  • work out final solution for open Python 3 IOBase objects: how to check abstract types from C. (Sept. 1, 2010) Probably the most practical solution is to just do duck typing.
  • _movie - deferred until module is ready for release
  • scrap (does some C string stuff that makes porting difficult)
  • camera - what is the status of this module?

Nowhere does it say that it doesn't work for Python 3 on mac, and it seems unlikely to that that this would be the case. So you can try, but you will have to compile it yourself.

Pyglet doens't mention Python 3, so it's probably not ported.

Comments

0

pyglet 1.2 (alpha as of July 2012) works with Python 3.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.