Useless utils if you have time for puzzles, a useful one if you don't
Project description
utilless
Maybe the most useless Python library ever
Comma module
Manipulates iterables and gets results with commas
iterable: any element that has __ iter __ method, like list, tuple, set, dict or even str.
- justcomma(iterable)
>>> justcomma(['apples', 'bananas', 'tofu', 'cats'])
'apples,bananas,tofu,cats'
- commaspace(iterable)
>>> commaspace(['apples', 'bananas', 'tofu', 'cats'])
'apples, bananas, tofu, cats'
- commaand(iterable)
>>> commaand(['apples', 'bananas', 'tofu', 'cats'])
'apples, bananas, tofu, and cats'
or commaand(iterable, str)
>>> commaand(['apples', 'bananas', 'tofu', 'cats'], ' & ')
'apples, bananas, tofu & cats'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
utilless-0.1.0.tar.gz
(2.2 kB
view hashes)