Mercurial > python-compiler.rs
view example/test.py @ 1:b90e49ab734b
Factorise conversion of Python str into Rust String.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 31 May 2016 00:52:00 +0100 |
parents | 211b0df72e64 |
children |
line wrap: on
line source
value = 2 def function(a, b): return a + b if __name__ == '__main__': print(function(value, 2 + 2))