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


Groups > comp.lang.python > #98536

Re: Using tuple as parameter to a function

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Using tuple as parameter to a function
Date 2015-11-10 02:24 +1100
Message-ID <mailman.180.1447082701.16136.python-list@python.org> (permalink)
References <87io5b5m1b.fsf@Equus.decebal.nl> <mailman.175.1447077487.16136.python-list@python.org> <87egfz5i9x.fsf@Equus.decebal.nl>

Show all headers | View raw


On Tue, Nov 10, 2015 at 2:01 AM, Cecil Westerhof <Cecil@decebal.nl> wrote:
>     for no_of_threads, no_of_records in values:

Beautiful! Though I'd shorten the names to just "threads" and
"records"; saying "number of X" isn't usually necessary, plus, the
general principle of Huffman coding your names recommends using
something shorter for a short-lived iteration variable. But otherwise,
that's exactly what I'd be looking at - descriptive and clear.

ChrisA

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


Thread

Using tuple as parameter to a function Cecil Westerhof <Cecil@decebal.nl> - 2015-11-09 14:40 +0100
  Re: Using tuple as parameter to a function Chris Angelico <rosuav@gmail.com> - 2015-11-10 00:58 +1100
    Re: Using tuple as parameter to a function marco.nawijn@colosso.nl - 2015-11-09 06:57 -0800
    Re: Using tuple as parameter to a function Cecil Westerhof <Cecil@decebal.nl> - 2015-11-09 16:01 +0100
      Re: Using tuple as parameter to a function Chris Angelico <rosuav@gmail.com> - 2015-11-10 02:24 +1100
        Re: Using tuple as parameter to a function Cecil Westerhof <Cecil@decebal.nl> - 2015-11-09 18:54 +0100

csiph-web