Skip to content

Add ipython support#4795

Open
itsankitkp wants to merge 3 commits into
RustPython:mainfrom
itsankitkp:add-ipython-support
Open

Add ipython support#4795
itsankitkp wants to merge 3 commits into
RustPython:mainfrom
itsankitkp:add-ipython-support

Conversation

@itsankitkp
Copy link
Copy Markdown
Contributor

@itsankitkp itsankitkp commented Mar 31, 2023

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

Comment thread vm/src/stdlib/ast.rs Outdated
Comment thread vm/src/stdlib/ast.rs
#[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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@fanninpm fanninpm requested a review from coolreader18 March 31, 2023 16:59
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
@itsankitkp
Copy link
Copy Markdown
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.

2 participants