Allow for long's as well as ints for request params #207
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
_params['max_id']
330122291755220993L
type(_params['max_id'])
<type 'long'>
isinstance(_params['max_id'], int)
False
isinstance(_params['max_id'], (long,int))
True
Actually, you'd want to change the
compat.pyfile and update it like this:and in
helpers.pyThis is to keep Python 3 compatibility. You can either make the changes I've stated or if you wish that I make them.. let me know!
May need to drop this pull request/fork, didn't realize you had Travis CI covering Twython and made the commits out of order.
@devdave It seems to not work for PR anyways because secure variables aren't available in PR's ... -___-
That being said, don't be discouraged if Travis says your build fails
Alright, numeric_types was added to .compat and implemented into helpers._transparent_params. Currently ransacking twitter with this via my "test in prod" integration system.
Cool, cool! Be sure to add yourself to AUTHORS.rst and I'll merge this in tomorrow morning! :)