Changes immutable data types (in-place)
pip install evilvars
Important: As the module's name suggests, it should not be used in a real project.
go_to_purgatory(v, new):
"""
Copies the bytes of a new value to a buffer of an existing value.
Args:
v (Any): The existing value to copy the bytes to.
new (Any): The new value to copy the bytes from.
Returns:
bool: True if the bytes were successfully copied, False otherwise.
"""
from evilvars import go_to_purgatory
t = ("275", 54000, "0.0", "5000.0", "0.0")
newvar = "200" # the new string needs to be <= the old string
index = 0
print(id(t), t)
go_to_purgatory(v=t[index], new=newvar)
print(id(t), t)
index = 1
newvar = 20.1
go_to_purgatory(v=t[index], new=newvar)
print(id(t), t)
mystring = "hallo"
newvar = "XallY"
print(mystring)
print(id(mystring))
go_to_purgatory(v=mystring, new=newvar)
print(mystring)
print(id(mystring))
mystringb = b"hallo"
newvarb = b"XallY"
print(mystringb)
print(id(mystringb))
go_to_purgatory(v=mystringb, new=newvarb)
print(mystringb)
print(id(mystringb))
2218474368960 ('275', 54000, '0.0', '5000.0', '0.0')
2218474368960 ('200', 54000, '0.0', '5000.0', '0.0')
2218474368960 ('200', 20.1, '0.0', '5000.0', '0.0')
hallo
2218646391856
XallY
2218646391856
b'hallo'
2218646405792
b'XallY'
2218646405792
Metadata
Release files for evilvars 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evilvars-0.10.tar.gz | 20.0 kB | Without provenance | Details for evilvars-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evilvars-0.10-py3-none-any.whl | Python 3 | none | any | Details for evilvars-0.10-py3-none-any.whl |
Total release size: 40.9 kB
Release files / evilvars-0.10.tar.gz
| Download URL | evilvars-0.10.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64f8fb1712709353f18511fc5a2e1d6f3b0bd66c3d41a655847285e3ce980dd2
|
|
BLAKE2b-256 checksum How to use checksums |
29fed5c72316dee8d490c5a59844a776ef34d42e519fc9160f9ac7996afaf520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / evilvars-0.10-py3-none-any.whl
| Download URL | evilvars-0.10-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
717e113143799a8d41cfd525235edeb8ef0412d73afebfb80a85e36b040c834f
|
|
BLAKE2b-256 checksum How to use checksums |
efad096f019f18f117ae384d5d1f3ec0b1662bbe0b3cfcc6fa5aff1bd9c7337e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for evilvars 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.