Functional String Building
Project description
Example
import stringbuilder
@stringbuilder
def mystring():
yield "foo"
yield 1234
yield '
'
yield object()
yield '
'
yield "bar"
print(mystring)
## foo1234
## <object object at 0xdeadbeefcafe>
## bar
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file stringbuilder.py-1.0.0.tar.gz
.
File metadata
- Download URL: stringbuilder.py-1.0.0.tar.gz
- Upload date:
- Size: 1.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225fde0e8c48b6a28766d1238466dba690fb92b35f9368fcf5117df6d436dc18 |
|
MD5 | 6402fd9e37dc4fe2ccc2ff62a545f85b |
|
BLAKE2b-256 | d623c4976adcce6650e8a09da96cc7dd77c99dbf18937165c66144727dbd72ae |