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

Add ipython support #4795

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

itsankitkp
Copy link
Contributor

@itsankitkp itsankitkp commented Mar 31, 2023

This PR aim to address issue #4791
This work is still in WIP, opened PR for reference

vm/src/stdlib/ast.rs Outdated Show resolved Hide resolved
@@ -75,6 +75,8 @@ mod _ast {

#[pyattr(name = "PyCF_ONLY_AST")]
use super::PY_COMPILE_FLAG_AST_ONLY;
#[pyattr(name = "PyCF_ALLOW_TOP_LEVEL_AWAIT")]
use super::PyCF_ALLOW_TOP_LEVEL_AWAIT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
use super::PyCF_ALLOW_TOP_LEVEL_AWAIT;
use super::PY_COMPILE_FLAG_ALLOW_TOP_LEVEL_AWAIT;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@fanninpm
Copy link
Contributor

RustPython's bytecode may not be compatible with CPython's dis.py.

Co-authored-by: fanninpm <fanninpm@miamioh.edu>
@itsankitkp
Copy link
Contributor Author

RustPython's bytecode may not be compatible with CPython's dis.py.

This is fair point, shouldn't we include only bytecode which is supported by RustPython and ignore/exclude rest ?

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.

None yet

2 participants