Why no warnings when re-assigning builtin names?

Seebs usenet-nospam at seebs.net
Wed Aug 31 17:57:06 EDT 2011


On 2011-08-31, Chris Torek <nospam at torek.net> wrote:
> (I realize this thread is old.  I have been away for a few weeks.
> I read through the whole thread, though, and did not see anyone
> bring up this one particular point: there is already a linting
> script that handles this.)

Yes.  I've found pylint... A weird mix of "very helpful, thanks" and
"oh, come off it".  A thread about pylint is where I got my example of
the natural Python way to express a parabola:
	theValueRepresentingTheYAxisLocationOfThePoint = 
		theValueRepresentingTheXAxisLocationOfThe Point *
		theValueRepresentingTheXAxisLocationOfThe Point

I still say that there are times when short names are natural and
idiomatic, and much clearer than long names.  :P

But I do think that, given the basic assumption that pylint is a core
tool for vetting code, it is probably adequate for it to provide the
warnings.

-s
-- 
Copyright 2011, all wrongs reversed.  Peter Seebach / usenet-nospam at seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.



More information about the Python-list mailing list