pylint -- should I just ignore it sometimes?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Oct 21 09:19:40 EDT 2010


On Thu, 21 Oct 2010 11:27:57 +0200, Jean-Michel Pichavant wrote:


> There is another important point: the time where code size matters is
> over. 

That's ridiculous. Which would you rather write?


import os
if os.path.exists("myfile"):
    print open("myfile").read()


or this?

import the module called "os";
get the attribute named "exists" of the attribute named "path" of the 
module called "os";
if it returns a true value when called with argument "myfile":
    get the function called "open" and call it with argument "myfile";
    get the attribute called "read" of it;
    print the result to standard output;


Even by the standards of Apple's (much missed) Hypertalk, that's overly 
verbose! Even Hypertalk compromised on perfect English grammar for 
brevity and conciseness.


> You
> won't be that happy everyone wrote their mail in this list like a mobile
> text message, if u c what I mean.

I never suggested that. What I am trying to get across is that long names 
are not automatically better than short names, and even one letter names 
can be as good or better than long names *when appropriate*.



-- 
Steven



More information about the Python-list mailing list