Skip to content
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

Fix dead links to the tokenizer's source code #1250

Merged
merged 3 commits into from
Dec 19, 2023
Merged

Fix dead links to the tokenizer's source code #1250

merged 3 commits into from
Dec 19, 2023

Conversation

MahadMuhammad
Copy link
Contributor

@MahadMuhammad MahadMuhammad commented Dec 17, 2023

Fixed token.c hyperlink in compiler design


📚 Documentation preview 📚: https://cpython-devguide--1250.org.readthedocs.build/

Copy link

cpython-cla-bot bot commented Dec 17, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! It's not quite correct currently, however. The tokenizer was refactored into two new directories, Parser/lexer/ and Parser/tokenizer/, in python/cpython#110684. The link here should point to one or both of those directories rather than token.c.

@AlexWaygood AlexWaygood dismissed their stale review December 17, 2023 17:36

requested changes were made

@AlexWaygood
Copy link
Member

@lysnikolaou, does this look okay to you? Should we be linking to both directories in these places, or just one of the two?

Copy link
Member

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just change this one occurrence to point to the lexer, which contains the pure tokenization code. The following sentence makes more sense this way.

Thanks for the ping @AlexWaygood!

developer-workflow/grammar.rst Outdated Show resolved Hide resolved
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AlexWaygood AlexWaygood changed the title Fixed token.c hyperlink in compiler design Fix dead link to the tokenizer's source code Dec 19, 2023
@AlexWaygood AlexWaygood changed the title Fix dead link to the tokenizer's source code Fix dead links to the tokenizer's source code Dec 19, 2023
@AlexWaygood AlexWaygood merged commit 78fc0d7 into python:main Dec 19, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants