-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing description for dictionary indentation #640
Comments
Hi, I find the 2nd issue in google_python_style.vim file and I would like to change it. Can I take that issue and fix it? |
That would be great if you can fix it! |
@westlake-moonlight Okk. I thought its a Open source project. What is the Github User name of Google's open source project?? |
The Googlers that maintain this repo are likely subscribed to issues and get emails when people open or comment on issues. Many of the style guide docs are maintained internally and exported to GitHub using tools like copybara. That means that fixes need to happen internally and pushed from there. And pull request needs to be copied and applied internally and cannot be directly merged into this repo. The missing 3.9 section is likely an "internal only" section which appears in the internal style guide and talks about internal style or tooling but gets removed by copybara on export. That makes the fix a bit more tricky than just changing the numbers. The style guide maintenance is largely managed by loosely organized volunteers who have some degree of expertise in the area, which means they probably have a lot of other projects also pulling at their attention - projects that are part of their actual responsibilities, unlike dealing with messing around to get the section numbers on the external version of the guide to line up. Fiddly bits on unstaffed projects tend to not get prioritized, but someone will probably get around to it eventually. |
Regarding the missing 3.9, we intentionally do not re-number sections as various things link to stuff by number. A 3.9 must've existed in the past. (1) For the # Aligned with opening delimiter in a dictionary
foo = {
'long_dictionary_key': value1 +
value2,
...
} example, the alignment is for the continued value's implied continuation. The wording of that comment could indeed be better... (2) If you have an issue with |
@gpshead (2) For the section 3.9, maybe it's better to put a comment before section 3.10: "Section 3.9 is obsoleted, skipped here intentionally." That way, it could save a lot of Python users' time all around the globe. I'm still trying to figure out how to assign this issue to you. I will let you know once I made it. Thanks! |
@IsaacG Thanks for your information! |
@gpshead |
refining summary because it's as @gpshead said -- there was a section 3.9, but there isn't one anymore. the internal Google style guide is the same way. it's confusing, but the alternative (breaking links) is worse. maybe this should be explained in the intro chapters. as for the example, it is correct, but I can see how it's confusing. when it says "opening delimiter", it's referring to the |
Hello there,
I'm seeing 2 issues in Python style guide:
https://google.github.io/styleguide/pyguide.html#34-indentation
The text was updated successfully, but these errors were encountered: