Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7533

Re: dummy, underscore and unused local variables

References <mailman.175.1307979321.11593.python-list@python.org> <4df6349d$0$30002$c3e8da3$5496439d@news.astraweb.com>
Date 2011-06-14 02:28 +1000
Subject Re: dummy, underscore and unused local variables
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.181.1307982531.11593.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Jun 14, 2011 at 2:02 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Mon, 13 Jun 2011 07:37:02 -0800, Tim Johnson wrote:
>
>> Consider the following code:
> [...]
>
> You know Tim, if you hadn't blocked my email address in a fit of pique
> over something that didn't even involve you, you would have seen my
> answer to your question on the tutor@python.org mailing list yesterday.
>
> http://code.activestate.com/lists/python-tutor/83236/
>
> Yes, I realise that Tim probably won't see this either. I'm just making a
> point.
>
>
>
> --
> Steven
> --
> http://mail.python.org/mailman/listinfo/python-list
>

As he says, edification comes from a variety of odd sources... I
didn't know the linting ignored a variable called 'dummy' or '_'.
Worth knowing!

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

dummy, underscore and unused local variables Tim Johnson <tim@johnsons-web.com> - 2011-06-13 07:37 -0800
  Re: dummy, underscore and unused local variables Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-13 16:02 +0000
    Re: dummy, underscore and unused local variables Chris Angelico <rosuav@gmail.com> - 2011-06-14 02:28 +1000
  Re: dummy, underscore and unused local variables Ben Finney <ben+python@benfinney.id.au> - 2011-06-14 10:39 +1000

csiph-web