Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80930 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2014-11-16 18:22 -0500 |
| Last post | 2014-11-16 18:22 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Using map() Terry Reedy <tjreedy@udel.edu> - 2014-11-16 18:22 -0500
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-11-16 18:22 -0500 |
| Subject | Re: Using map() |
| Message-ID | <mailman.15922.1416180154.18130.python-list@python.org> |
On 11/16/2014 8:01 AM, Pavel Volkov wrote: > I checked my modules with pylint and saw the following warning: > > W: 25,29: Used builtin function 'map' (bad-builtin) > > Why is the use of map() discouraged? > It' such a useful thing. I consider that to be a bug in pylint. It misstates a careless 'bad' opinion as a fact. If pylint sees 'map(lambda ...: ', it would be appropriate to suggest using a comprehension or generator expression instead. This avoids the unneeded creation and repeated call of a new function. If it sees 'map(<identifier>,', I think it should say nothing. -- Terry Jan Reedy
Back to top | Article view | comp.lang.python
csiph-web