Functions starting/ending with a dunder #9

Open
dstufft opened this Issue Feb 25, 2014 · 2 comments

Projects

None yet

4 participants

@dstufft
dstufft commented Feb 25, 2014

pep8-naming does not allow functions starting or ending with a dunder (__). This is not something that is disallowed by PEP8 and I think this rule should be removed. However if this check remains then it should be moved to it's own check and should not be part of the more general "functions should be lowercase" check so that people can disable it in their own projects without disabling the useful lowercase function check.

@treyhunner

👍 I also think dunder methods shouldn't be banned by default and even if they are the check should be coded separately from the lowercase name check.

@FichteFoll
FichteFoll commented Jul 26, 2016 edited

Dunder functions really shouldn't be marked in this check.
I do believe a separate check for this is useful because, by themselves, dunder functions have absolutely no different meaning from functions with a single underscore and thus are redundand.

Since PEP-8 doesn't have a stance regarding those, the check should probably be disabled by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment