Larry Hastings <la...@hastings.org> added the comment:

> I don't see how this is contrary to PEP 8. PEP 8 says nothing about
> the names of function arguments.

Certainly it says *something*:

http://www.python.org/dev/peps/pep-0008/#function-and-method-arguments

But I grant you, it only specifically addresses "self", "cls", and function 
argument names that clash with keywords.

I therefore suggest that function arguments are most similar to "method names 
and instance variables"--after all, they *are* instance variables.  And "method 
names and instance variables" say "Use the function naming rules".  And 
function names "should be lowercase, with words separated by underscores as 
necessary to improve readability."

"followlinks" is comprised of two words but they are not separated by 
underscores.

(We can also reason by process of elimination: function arguments are wholly 
dissimilar to constants, package/module names, classes, and exception.  All the 
remaining types of identifiers in Python follow the above rule.)

It might actually be nice to clarify PEP 8 on this.


> Unfortunately, too little time has passed between #14626 accepting
> and shipping of 3.3b1.

I am genuinely sorry about that--but #14626 just wasn't ready earlier.  I'm 
glad you think it's an improvement--we can certainly agree on that!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15202>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to