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
pydoc.py: Wrapping (output) text at col 72 (PEP 8) #20295
Conversation
Signed-off-by: ed <[email protected]>
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
|
Hi @edneville, PR that only make stylistic changes are usually refused as they create code churn without improving the codebase. If you are looking to contribute to Python, you can have a look at https://bugs.python.org for the issues marked |
|
@remilapeyre, well, looking at the --help it make me itchy so I thought I should do something about it. Not sure what you mean by churn, it's either beneficial or not. I can create a ticket if it needs it, the PR auto comment said trivial didn't need a ticket IIRC. |
|
@edneville, thank you for the suggestion and for the PR. @remilapeyre pretty much defined what he meant by churn in his explanation - But as he also said, please take a look at the bug tracker if you're interested in contributing to the project. Thanks! :-) |
|
Hi @csabella, actually I made a mistake because despite the PR title this is not a change to make pydoc.py respect PEP8, it's to improve the help message in the command line so it is a user visible change that may be worth merging. Here's what The messages do not wrap consistently. This change tries to fix that but it fails to account for the length of the |
|
@remilapeyre, thanks for clarifying. I still think it's code churn since the longer line lengths don't seem to be causing any issues. If @edneville is interested in changing pydoc to use |
|
@csabella/@remilapeyre, the line wrapping and inconsistent spacing after fullstops looked peculiar to me so I just wanted to fix that. Since that's the important part for me feel free to create a bug ticket and tag me, or reference it here and I'll look at implementing it using your choice of method otherwise I could just end up going round in circles. |


Trivial change, pydoc --help had different length line wraps which didn't line up well.
Signed-off-by: ed [email protected]