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

Re: [pygame] Name self not defined



how do you use the or statement in arguments?
i have never seen it done.

--- On Wed, 1/28/09, Ian Mallett <geometrian@xxxxxxxxx> wrote:

From: Ian Mallett <geometrian@xxxxxxxxx>
Subject: Re: [pygame] Name self not defined
To: pygame-users@xxxxxxxx
Date: Wednesday, January 28, 2009, 4:25 PM

Frankly, I like this solution:
self.rect = self.rect.move(speedv or (0,0))
Looks Pythonic to me.