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
lpython_emulation-0.0.1.9.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for lpython_emulation-0.0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e08f190557f366d305d07b997c801436331377037a37d9d28d43e5a816d0367 |
|
MD5 | 91ecaf54c2ebaba2ac8eaed6289f6ed8 |
|
BLAKE2b-256 | 3beae392b1f97afe6dc0b02fcf9de606590a8a859a0dc8a50dc52bc5722ad04d |
Close
Hashes for lpython_emulation-0.0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6bb5f4abf487e65f198de2ddd1d36da2072bbeac9caba196c6940f583c1359 |
|
MD5 | 4e6519374205d942af8ea8e1d5e0272a |
|
BLAKE2b-256 | 561dea6af57e87c616cac9930f8399a1eafd9b1d27c35c022e757749d2cf10cc |