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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d4623c0bd88c833443162bfbf7d42c2ed1db07f1c2306f481c9910f85ed229 |
|
MD5 | 16a2bfeeb69daacc425240db49fc6da2 |
|
BLAKE2b-256 | 2b5ede4ce8aab8bb111a7a6c3a4a01b94e39794fa59febf3a371329ca1ed4164 |
Close
Hashes for lpython_emulation-0.0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06cc66a2388aec867df62ed2c7fcbfb984faa050a30fa772e57f3e6052bad9a3 |
|
MD5 | d11878a90d072d6b8f1e95d63a2e8264 |
|
BLAKE2b-256 | 8d9452554b343f1fcfc3ff38241be249cec8a44e3959c9e9a48b8478570a5961 |