开发者

Why there are UglyCase method names in Google API Python libraries? [closed]

开发者 https://www.devze.com 2023-03-03 16:09 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_Python百科 Closed 11 years ago.

I just wonder why Google is using in API client libraries such UglyCase method names instead of existing_coding_standards? Actually, I am not happy to mess my PEP8 code with something like this (GetEditLink() ...wtf? class name?).


Well, quoting the PEP8 Code:

mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.

So either that, or they just like it better.

0

精彩评论

暂无评论...
验证码 换一张
取 消