Package for adding type information to python
Project description
lpython_emulation
This is a python package to add typing information to python code.
Example
from lpython import i32, f64
def add(a: i32, b: i32) -> i32:
return a + b
def area_of_circle(radius: f64) -> f64:
pi: f64 = 3.14
return pi * (radius * radius)
def main0():
print("The sum of 5 and 3 is", end=" ")
print(add(5, 3))
print("Area of circle with radius 5.0 is", end=" ")
print(area_of_circle(5.0))
main0()
$ python main.py
The sum of 5 and 3 is 8
Area of circle with radius 5.0 is 78.5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lpython_emulation-0.0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64ad065ddef187bc85e34fc211ce7db9a030744471c3623e274e8074f96bd27e |
|
MD5 | 35ebdcb00510f6b2e79a01eddcbf7619 |
|
BLAKE2b-256 | cd2c2e4b3385927fd147d6dcbcae8168827492826e92130870960489f376abe9 |
Close
Hashes for lpython_emulation-0.0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd4d31156e8b2b936949480d79d10893bd0c6d7a863fc44f99b9cd71fca97a9 |
|
MD5 | a2b6256f9f16f190cd6a16edbbf232bb |
|
BLAKE2b-256 | aa136aea4a098bd979a0838f5918a620e9d5e6ac680a45a2a86f96ffcd6f913a |