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 main2.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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 127d4196732e2439e23f4717198214fdf850ddf80a79af37b06bbf19f033dd80 |
|
MD5 | 665785a3f119081ad9d75b99e2cad410 |
|
BLAKE2b-256 | 0fc4bbe46df431b4d4e79e38c1bdb751a09a3531355fb88cd7d1f73491796343 |
Close
Hashes for lpython_emulation-0.0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c402a2398a088c89b83d78f90fc8ff012b19cb8576707b928444d49447e3db28 |
|
MD5 | 8a776f00c7c1a817aa4f0ec4fd011cce |
|
BLAKE2b-256 | 6e6c8439ffff09998400a0684a440c9647725084be0ba8e6bac5d567dd7d5573 |