Skip to content

Moves Python code out of interpreter file #207

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

Merged
merged 18 commits into from
May 6, 2022
Merged

Conversation

fpliger
Copy link
Contributor

@fpliger fpliger commented May 5, 2022

Addresses #154, moving all the PyScript Python logic out of the interpreter.ts file and loading at runtime. Performance tests do not show any significant performance impacts.

@fpliger fpliger added tag: interpreter Related to the Python interpreter configuration status: WIP PR that is not yet ready for review labels May 5, 2022
Copy link
Contributor

@verhulstm verhulstm left a comment

Choose a reason for hiding this comment

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

this makes a lot of sense to me

@philippjfr philippjfr self-requested a review May 5, 2022 14:53
@@ -35,7 +37,7 @@ def identity(value, meta):
'image/svg+xml': identity,
'application/json': identity,
'application/javascript': lambda value, meta: f'<script>{value}</script>'
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It won't let me comment below but line 48 indentation is slightly off. Please fix before merging now that it's actually being used.

Copy link
Contributor

@philippjfr philippjfr left a comment

Choose a reason for hiding this comment

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

One small comment about an indentation issue. Otherwise this will be so much cleaner!

@fpliger fpliger added status: accepted PR that has been reviewed and accepted and removed status: WIP PR that is not yet ready for review labels May 6, 2022
@fpliger fpliger changed the title [WIP] Moves Python code out of interpreter file Moves Python code out of interpreter file May 6, 2022
@fpliger fpliger merged commit b7d748c into main May 6, 2022
@fpliger fpliger deleted the fpliger/154_move_py_code_out branch May 6, 2022 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted PR that has been reviewed and accepted tag: interpreter Related to the Python interpreter configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants