[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Python 3.0 to be backwards incompatible ?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Python 3.0 to be backwards incompatible ?
- From: "Paulo Silva" <nitrofurano@xxxxxxxxx>
- Date: Fri, 1 Aug 2008 00:40:52 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 31 Jul 2008 19:40:56 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=p1Jr1X1X491oGmSedG2oL/OzQ0hVhna3624ZEOyog7o=; b=fgHCiXf9yCnIPGPwDOYDHdpcYaGFwNZhvjhbr1A3sgoThs7uYiZvG/2crLoK1eGjM8 YRslyirXurxzRbgIwDisKRdX3QrMguVwY/yhXJgBkHiqaUkgdQ/zongSP8I8t2PoSXnE vU4p30RvZPwBCDgS4k/4p6IqML2EsPA0b8FHk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EopteGgHLjPSl+6jZWbClzWqWzdmko3a7ddBkpBBPKUxaWIHW6TKqxB67RcCZmaI8V WEM07q3TQ0G36zn2G/BcXzBAANk4MhHXlVFofW85v0xZAPqQrojwxdhJz73tLZU4uBec u0nZnLzB4KyFUGdHNBIuBml3BHRfdX5+QHEng=
- In-reply-to: <48924547.4050904@xxxxxxxxx>
- References: <9b711ec60807311332s18e6469cl7cf73a04332b8f28@xxxxxxxxxxxxxx> <48924547.4050904@xxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
division operator were the first thing came on mind when reading about
this - i'ts really annoying having to do 'c=operator.truediv(a,b)'
instead of merelly' 'c=a/b', and having to set 'import operator' at
the start of the code...
----------------------------
On Fri, Aug 1, 2008 at 12:05 AM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
> Paulo Silva wrote:
>>
>> http://it.slashdot.org/article.pl?sid=08/02/01/1624247
>>
>> well, this sounds to me as a huge headache... but i'd like to know
>> oppinions about (what will be improved, what will be changed),
>> specially all Pygame coders, and how far it may affect Pygame games
>> supposed to be 'considered' done...
>>
>
> Pygame has been built for Python 2.6 on Windows as a first step in the
> migration to Python 3.0. Getting SDL to link against the Visual Studio 2008
> C runtime was a headache, but it is done. Also all the unit tests being
> added will help in the migration to 3.0. They exercise the various execution
> paths with Pygame for Python 2.6's compatibility warnings. My concern is the
> C api. I assume it has settled down for Python 3.0 and will not differ much
> from 2.x. But there will likely be enough subtle differences to create
> confusion.
>
> One thing a Pygame for 3.0 can use is the new buffer protocol. The new
> protocol explicitly signals the release of shared memory. Traditionally only
> the reference to the owning object is decremented. This makes surface
> locking problematic. A surface is locked when its buffer is accessed.
> Currently an intermediary buffer object unlocks the surface when it is
> garbage collected. With 3.0 the unlocking can be direct. Though the new
> protocol is present in 2.6, the 2.x version of Pygame needs to remain
> backwards compatible.
>
> --
> Lenard Lindstrom
> <len-l@xxxxxxxxx>
>
>