Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Conversation

@jeremylow
Copy link
Collaborator

This changes some of the keyword arguments so that they are a little more consistently named in the API and avoid renaming the builtin function id. Kind of a small change, but I wanted to get it in before v3. Basically anything that was passed as id has a more descriptive argument now: id in the context of a Status object changes to status_id, message_id for DirectMessages, and woeid for the Where On Earth ids. Similarly, for DestroyBlock, it's now user_id rather than just id.

Documentation is included for everything here. All previous tests still pass, but some of the behavior is breaking since kwargs have been renamed.

I also noticed that make clean kept deleting my vim undo files, so I hope no one minds that those are excluded from the target.

Sound good, @bear?


This change is Reviewable

"status_id" is more common within the api, but there are a couple methods that use "id" to spec the same thing, which is confusing and inconsistent.
"woeid" avoids shadowing a builtin, but is also more expressive.
@bear
Copy link
Owner

bear commented Mar 28, 2016

:shipit:

@jeremylow jeremylow merged commit bd7e6af into master Mar 28, 2016
@bear bear deleted the kwargs-consistency branch March 28, 2016 15:25
xezpeleta added a commit to xezpeleta/twitter-unfav that referenced this pull request Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants