| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Why would you ever need this
from pointers import _
text: str = "hello world"
ptr = _&text # creates a new pointer object
ptr <<= "world hello"
print(text) # world hellofrom pointers import c_malloc as malloc, c_free as free, strcpy, printf
ptr = malloc(3)
strcpy(ptr, "hi")
printf("%s\n", ptr)
free(ptr)The main purpose of pointers.py is to simply break the rules of Python, but has some other use cases:
python3 -m pip install -U pointers.py
py -3 -m pip install -U pointers.py
| Back | FazBrowse Home | New Git URL |