update docs/tests
This commit is contained in:
parent
aeaff1d663
commit
f55959336b
2 changed files with 5 additions and 0 deletions
|
|
@ -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=';')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue