Contextual Value Shifter is a Python module that implements a contextual “shift” function.
Usage
from cxvshifter import shift
# Shifting to variables
x = 5
shift(10, 'x')
print(x)
# => 10
# Shifting to a file
shift("hello", 'file', "hello.txt")
# Shifting to stdout
shift("Hello, shifting world!", 'stdout')
# Shifting to return
shift(24, 'return')
# -> 24
Improper usage
x = 5
shift(10, x)
# Will attempt to shift to a variable named 5
# In ctxvalue-shifter, this will result in a TypeError
Metadata
Release files for ctxvalue-shifter 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ctxvalue_shifter-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / ctxvalue_shifter-1.2.1-py3-none-any.whl
| Download URL | ctxvalue_shifter-1.2.1-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88970a83656042a12c7db36fdd96e7d18fdfe8a4634bb4d08da204aa80f9d701
|
|
BLAKE2b-256 checksum How to use checksums |
7a73b68afed7b4cde51f0619e2e4b29e38862691f9375b1675c05d36edd75ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|