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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lpython_emulation-0.0.16.0.tar.gz.
File metadata
- Download URL: lpython_emulation-0.0.16.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a23d99075e2e559f4d4c4fa0cf9ed2d08234f86f0e3c84632ae6bcd8c0189b
|
|
| MD5 |
4841dfe170543302a3826c921a77f799
|
|
| BLAKE2b-256 |
21a49f0bdc16eaf7633d303c8f0f9bdf69b3a2020404b760996e2a9fdb99afac
|
File details
Details for the file lpython_emulation-0.0.16.0-py3-none-any.whl.
File metadata
- Download URL: lpython_emulation-0.0.16.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f3d6f2bb4d1f76f364b8f702a28f0caf51aa00009657597049be17d81b3ab0a
|
|
| MD5 |
e18abb128bcc48b762298d8be81b710c
|
|
| BLAKE2b-256 |
e2acc3308841d127e14f18f2463d6008af8566839855f3650b6d0af2ab4eaa07
|