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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf2e6979b33063b1632c5eee5a8a9906332d5edb215fb45b3ee173bc5ccbd94 |
|
MD5 | 01925e93a1c92464adb2acca90716d41 |
|
BLAKE2b-256 | 6a7e65cd06c15e345771c153326f869c3f12596d3f933538faec49c4ada9a2de |
Close
Hashes for lpython_emulation-0.0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f6995013e26c5f72f793ad169aa07970f283cf7e53e7ba903bf365c351b3df |
|
MD5 | 0b31952997029329eb51054ab1aa2134 |
|
BLAKE2b-256 | 4b7e08402ee22d19de4b8d7f7551249fb560432b2a399aa1c7624c8b00c88ed1 |