Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80948
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Subject | Re: Messages from code analysis tools |
| Date | 2014-11-16 20:49 -0500 |
| References | <mailman.15896.1416169228.18130.python-list@python.org> <54693cc4$0$13000$c3e8da3$5496439d@news.astraweb.com> <m4bf84$pg3$1@ger.gmane.org> <85h9xy39ml.fsf_-_@benfinney.id.au> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15937.1416189002.18130.python-list@python.org> (permalink) |
On 11/16/14 8:21 PM, Ben Finney wrote: > Ned Batchelder <ned@nedbatchelder.com> writes: > >> Pylint isn't useful until you've tailored the messages. > > Definitely agreed. > >> The pylint message that always irked me was: >> >> W0142: Used * or ** magic >> >> "magic"? They're features of the language! > > It's a warning, because the use of that feature clobbers the static code > inspection you've asked for. PyLint is warning you “because the code > uses this feature, I can't say anything about undefined names”. > That's the best explanation I've heard for why they warn about it. I wish they would find a more sophisticated word than "magic". -- Ned Batchelder, http://nedbatchelder.com
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Using map() Pavel Volkov <sailor@lists.xtsubasa.org> - 2014-11-16 16:01 +0300
Re: Using map() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-17 11:09 +1100
Re: Using map() Ned Batchelder <ned@nedbatchelder.com> - 2014-11-16 19:24 -0500
Re: Using map() Chris Angelico <rosuav@gmail.com> - 2014-11-17 12:08 +1100
Messages from code analysis tools (was: Using map()) Ben Finney <ben+python@benfinney.id.au> - 2014-11-17 12:21 +1100
Re: Using map() Dan Stromberg <drsalists@gmail.com> - 2014-11-16 17:31 -0800
Re: Messages from code analysis tools (was: Using map()) Chris Angelico <rosuav@gmail.com> - 2014-11-17 12:36 +1100
Re: Messages from code analysis tools Ned Batchelder <ned@nedbatchelder.com> - 2014-11-16 20:49 -0500
csiph-web