Functional String Building
Project description
Example
import stringbuilder
@stringbuilder
def mystring():
yield "foo"
yield 1234
yield '\n'
yield object()
yield '\n'
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.1.tar.gz
.
File metadata
- Download URL: stringbuilder.py-1.0.1.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 | 7e426cce5c8dc9a3cd9584d247eb00325825c0cc791c92931771eb0f85bf9672 |
|
MD5 | faf09a5f34c4f6dabdb419a261d17cf0 |
|
BLAKE2b-256 | 8308773e21861e333b7284dcaf3bc5462c39d08ef7be7cdfbcb47a70db85ac08 |