[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Philosophical Question On Naming
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Philosophical Question On Naming
- From: "Jason Massey" <jason.massey@xxxxxxxxx>
- Date: Mon, 23 Apr 2007 15:03:55 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 23 Apr 2007 16:04:07 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kOHp98YE7Y0dWdryaPU5Jop9i2IvVYRoEIZt2GXQKiAY1zEnnZMONdssnBGBwLTr8mqee4eYvUkiRSZcpA6BtM4uldPXszS4QIRzBTNK99E1qug5HHUCksASaZp3LkRgf6qsiKMi9iDRZ9iU1SmrQ7HNalTYXtktGSe5+ts1icE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SysJsYElv2qaio1LObOSBSzUQlwKXdNWXSHYKOGrZRZY1bmzohW/4Cl5DJLg2+U+eQybFKhgh0rKUNCBKzqMWutZD3TPinGaN7qxKOiYmeZsu94jTQgn1F+FP/mZ+RPlZdKqTfeSaxIZQhPGNVfA6Rn0eMusqjEPRf8Hiufshpo=
- In-reply-to: <462D0C88.7090906@xepher.net>
- References: <462D0C88.7090906@xepher.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Don't you think that the "explicit is better than implicit" in import this gives you some help?
I'd stick with the self.location
On 4/23/07,
Kris Schnee <kschnee@xxxxxxxxxx> wrote:
A trivial question that's bugging me:
A Widget object currently has a variable called "location," which is a
Pygame.Rect object. It _is_ a Rect, but what it _means_ is the Widget's
location. Is it better to call it "
self.location" or "self.rect"?
Even typing "import this" at the IDLE console gives no clear insight.
Kris