The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Thu, 23 Aug 2012 15:26:10 +1000
Local: Thurs, Aug 23 2012 1:26 am
Subject: Re: Objects in Python
On Thu, Aug 23, 2012 at 2:11 PM, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info> wrote:
But it's the same thing that's wrong with having one variable called
> On Thu, 23 Aug 2012 12:02:16 +1000, Chris Angelico wrote: >> 2) Related to the above, you can infinitely nest scopes. There's nothing
> Well, there you go. There *is* something wrong with having six variables
'q', when that variable would be better called 'invoice' because it's iterating over your invoices, or 'item' when it's iterating over the lines of one invoice. Python doesn't stop you from doing that; it's not the language's job to enforce useful variable names. ChrisA
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||