Skip to content

gh-93378: make obvious the distinction between source vs. compiled module #93711

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

Closed
wants to merge 1 commit into from
Closed

gh-93378: make obvious the distinction between source vs. compiled module #93711

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 11, 2022

The suggested changes in this PR are based on issue #93378.

The distinction between a source versus a corresponding compiled module appears to be unclear for some reading this portion of the tutorial.

@AA-Turner Apologies, I accidentally closed the other PR. I have duplicated it here after adjusting the line lengths.

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting review labels Jun 11, 2022
Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

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

Thanks!

A

automatic process. Also, the compiled modules are platform-independent, so the
same library can be shared among systems with different architectures.
Python checks the modification date of the source (``.py``) against the compiled
(``.pyc``) version to see if it's out of date and needs to be recompiled. This
Copy link
Member

Choose a reason for hiding this comment

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

Lines 223-224 just above have an example of spam.py and spam.cpython-33.pyc; I think it would be better to work the term source there.

module.
corresponding source module. To support a non-source (compiled only)
distribution, the compiled module must be in the source directory, and there
must not be a source module.
Copy link
Member

Choose a reason for hiding this comment

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

These lines were not changed but appear changed. To keep the history useful, please avoid rewrapping paragraphs. It’s fine if one line is a little too long, or quite short, this doesn’t impact the rendered output.

@ghost ghost closed this by deleting the head repository Oct 22, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review docs Documentation in the Doc dir needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants