Skip to content

Conversation

s3bw
Copy link
Contributor

@s3bw s3bw commented Aug 2, 2025

Reference to bpo issue: https://bugs.python.org/issue13734 made in an inline comment, I've added the bpo- prefix and gh reference to disambiguate to which issue tracker the reference is making.

I'm not sure if it's preferred to get rid of bpo references and keep only gh references. 🤷🏼

gh ref: #57943

@picnixz
Copy link
Member

picnixz commented Aug 2, 2025

We prefer GH issues rather than BPO numbers but I would suggest something like: "See gh-XXXX" or "See https://github.com/..." where with links I can click on them from the IDE.

@picnixz picnixz changed the title Disambiguate issue number gh-57943: disambiguate issue number in os._fwalk comment Aug 2, 2025
@picnixz
Copy link
Member

picnixz commented Aug 2, 2025

I think it's an improvement but at the same time it's a borderline cosmetic. But since such comments are meant to be read, I would indeed consider it a real improvement.

@AA-Turner Are you ok with such change? I don't want to encourage cosmetic changes but I feel that this one is half-cosmetic half-improvement. Or maybe you would prefer a PR that edits the BPO issue numbers in the code base? (not everyone knows what BPO is actually and it doesn't necessarily come up directly when googling)

@s3bw
Copy link
Contributor Author

s3bw commented Aug 2, 2025

I think it's an improvement but at the same time it's a borderline cosmetic. But since such comments are meant to be read, I would indeed consider it a real improvement.

I agree, which is why I was hesitant to open the PR. In order to track down the issue I opened up github issues had to understand it was the wrong one before looking for it in bpo. Perhaps I should have gone to bpo first.

@serhiy-storchaka
Copy link
Member

There are perhaps thousands of references to the bpo issues there. I do not see a point in only changing this one.

@picnixz
Copy link
Member

picnixz commented Aug 3, 2025

Arf. Ok. If there are that many references, then it's better to change them in one go if we do it.

@s3bw
Copy link
Contributor Author

s3bw commented Aug 3, 2025

I can close this PR and log an issue.

@serhiy-storchaka
Copy link
Member

Who would review such large change? We can also rewrite commit messages and old discussions on the tracker and in mailing lists.

Just remember that there are two different numbering systems. And if not specified explicitly, the issue number is most likely refers to BPO.

@picnixz
Copy link
Member

picnixz commented Aug 3, 2025

Mmh, ok. I wouldn't have thought that there were that many occurrences. Let's forget about updating the references then. However, it would make sense to indicate that BPO historically existed, and for that reason, if contributors want to references issues, they should either add a full link (like me) or gh-XXXXXX (we can document this in the devguide).

In summary: let's do nothing in CPython's code itself. Sorry for giving false merging hope.

@picnixz picnixz closed this Aug 3, 2025
@s3bw
Copy link
Contributor Author

s3bw commented Aug 3, 2025

Thanks for the reviews ^_^

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants