update docs/tests

This commit is contained in:
InspectorCaracal 2022-07-03 20:31:08 -06:00
parent aeaff1d663
commit f55959336b
2 changed files with 5 additions and 0 deletions

View file

@ -388,6 +388,8 @@ def iter_to_str(iterable, sep=",", endsep=", and", addquote=False):
```python
>>> list_to_string([1,2,3], endsep=',')
'1, 2, 3'
>>> list_to_string([1,2,3], endsep='')
'1, 2 3'
>>> list_to_string([1,2,3], ensdep='and')
'1, 2 and 3'
>>> list_to_string([1,2,3], sep=';', endsep=';')