Skip to content

Commit ec2bd7d

Browse files
Automatically join kwargs passed as lists into comma-separated string
[ci skip]
1 parent ff7e3fa commit ec2bd7d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

HISTORY.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ History
1313
- ``twitter_token`` and ``twitter_secret`` have been replaced with ``app_key`` and ``app_secret`` respectively
1414
- ``callback_url`` is now passed through ``Twython.get_authentication_tokens``
1515
- Update ``test_twython.py`` docstrings per http://www.python.org/dev/peps/pep-0257/
16+
- Removed ``get_list_memberships``, method is Twitter API 1.0 deprecated
17+
- Developers can now pass an array as a parameter to Twitter API methods and they will be automatically joined by a comma and converted to a string
18+
- ``endpoints.py`` now contains ``EndpointsMixin`` (rather than the previous ``api_table`` dict) for Twython, which enables Twython to use functions declared in the Mixin.
1619

1720
2.10.1 (2013-05-29)
1821
++++++++++++++++++

twython/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def _transparent_params(_params):
1414
params[k] = 'false'
1515
elif isinstance(v, basestring) or isinstance(v, numeric_types):
1616
params[k] = v
17+
elif isinstance(v, list):
18+
params[k] = ','.join(v)
1719
else:
1820
continue
1921
return params, files

0 commit comments

Comments
 (0)