StreamListener.filter(): `follow` argument doesn't accept integers for user ids #829

dannguyen opened this Issue Jan 2, 2017 · 0 comments


None yet

1 participant


This is for tweepy 3.5.0, Python 3.5.2

In regards to what's shown in this example: #827


That doesn't work in tweepy 3.5. Instead, you get this error message:

 TypeError: sequence item 0: expected str instance, int found

The problematic line is in tweepy/

          428         if follow:
   --> 429             self.body['follow'] = u','.join(follow).encode(encoding)

Expected behavior: the follow argument can handle integers or strings; in the former case, the int is stringified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment