Example #1
import stringbuilder
@stringbuilder
def buildstring():
yield "foo"
yield 1234
yield object()
yield "bar"
mystring = buildstring(delim='\n')
print(mystring)
Output:
foo
1234
<object object at 0xdeadbeefcafe>
bar
Example #2
@stringbuilder.build(delim='\n')
def mystring():
yield "foo"
yield 1234
yield object()
yield "bar"
print(mystring)
Output:
foo
1234
<object object at 0xdeadbeefcafe>
bar
Metadata
Release files for stringbuilder.py 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stringbuilder.py-2.0.1.tar.gz | 1.3 kB | Details |
Release files / stringbuilder.py-2.0.1.tar.gz
| Download URL | stringbuilder.py-2.0.1.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14a1e25092541805f908e9f673d2ef2825baf4c8a8275860e6f3116e723df4d9
|
|
BLAKE2b-256 checksum How to use checksums |
1b7f9f2036649d977eb873a19cd0831b9936cf69cc47b4c7f863f66044609c5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|