Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dannguyen opened this issue Jan 2, 2017 · 0 comments · Fixed by #830
Closed

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

dannguyen opened this issue Jan 2, 2017 · 0 comments · Fixed by #830
Labels
Improvement This is regarding an improvement to an existing feature
Milestone

Comments

@dannguyen
Copy link

This is for tweepy 3.5.0, Python 3.5.2

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

  myStream.filter(follow=[2211149702])

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/streaming.py:

          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.

@Harmon758 Harmon758 added the Improvement This is regarding an improvement to an existing feature label Jun 1, 2019
@Harmon758 Harmon758 linked a pull request Dec 30, 2020 that will close this issue
@Harmon758 Harmon758 added this to the 4.0 milestone Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement This is regarding an improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants