dummy, underscore and unused local variables

Chris Angelico rosuav at gmail.com
Mon Jun 13 12:28:48 EDT 2011


On Tue, Jun 14, 2011 at 2:02 AM, Steven D'Aprano
<steve+comp.lang.python at 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 at 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



More information about the Python-list mailing list