Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #9041
| Newsgroups | comp.programming |
|---|---|
| Date | 2018-07-19 16:02 -0700 |
| Message-ID | <175f32d6-0bde-4090-aec9-580c10ade345@googlegroups.com> (permalink) |
| Subject | Variable naming for a list of lists |
| From | porton.victor@gmail.com |
I have a list of lists of downloaders (downloaders are function objects). I pass this list of lists as well as individual sublists and list elements between different functions. I could name the relevant fields as downloaders_list_list, downloaders_list, and downloader. But this "Microsoft-style" naming of variables accordingly their types is heavily advised against. What is recommended naming for such variables? I see nothing better than name downloaders variables containing both the list of lists and its sublists. Any better (or at least, any other) variants? What is the recommended names for such variables (local variables and class fields) accordingly the official Python naming conventions? About the usage of the list of lists: I run a download pipeline (which retrieves multiple files), which for each sublist does a number of download operations, repeating every download operation several times in a row for elements of the sublist (each of which retrieves a file in a different way, for example with different URL mappings). I repeat the entire download pipeline for every sublist of the list of lists.
Back to comp.programming | Previous | Next — Next in thread | Find similar | Unroll thread
Variable naming for a list of lists porton.victor@gmail.com - 2018-07-19 16:02 -0700 Re: Variable naming for a list of lists Richard Heathfield <rjh@cpax.org.uk> - 2018-07-20 14:53 +0100 Re: Variable naming for a list of lists Richard Damon <Richard@Damon-Family.org> - 2018-07-27 17:28 -0400 Re: Variable naming for a list of lists Julio Di Egidio <julio@diegidio.name> - 2018-07-28 04:33 -0700
csiph-web