Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 5, 2023. It is now read-only.
Open more actions menu
 
 

Repository files navigation

RustPython

A Python interpreter written in Rust

Installation

virtualenv venv --python=python3
source venv/bin/activate
pip install bytecode

Run

Given a python file test.py

python compile_code.py test.py > test.bytecode

cd RustPython
cargo run ../test.bytecode 

TODOs

  • Native types => Partial
  • Control flow => if(v)
  • assert => OK
  • Structural types (list, tuple, object)
  • Strings
  • Function calls => Blocked by bytecode serializer
  • Modules import
  • Generators

Goals

  • Support all builtin functions
  • Runs the pybenchmark benchmark test
  • Run famous/popular python modules (which?)
  • Compatible with CPython 2.7

About

A Python interpreter written in Rust

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.