[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame and Python 3.0 (3000)





Ron Dippold schrieb:
Hi Gregor,

I'm not officially involved at all (thanks, Phil!) but pygame 1.8.1 has already been ported to python 2.6, which means it should be an easy port (if there's any more work involved at all) to 3.0 when it's released.
I wouldn't take this for granted, as Python 3.0 will not be compatible to 2.6 any more. Things that changed are described here, for instance:

http://docs.python.org/dev/3.0/whatsnew/3.0.html

One particular change that almost certainly will make problems (if not with pygame itself at least with some pygame applications) is the change of the division operator: 3/2 return a float in Python 3.0. If you need an integer you have to use 3//2. That means, that games that you have written for Python 2.6 or earlier will not necessarily run under Python 3.0 and thus will also have to be ported to 3.0 (if one decides to use this new version). On the other side the Python 2.x branch will be maintained for several years from now and there are also plans to release a 2.7 and probably a 2.8 in the future.

So perhaps someone who is 'officially involved' could answer my original question

Regards,
Gregor

http://pygame.org/download.shtml

Ron

Gregor Lingl wrote:
does anybody know if there are plans to port Pygame to Python 3.0, which is going to be released in the near future (approx. beginning of December; now there is release candidate 1)