PEP8 all the functions #186
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#186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Per http://www.python.org/dev/peps/pep-0008/#function-names
Currently, functions in
Twythonare all camelCase, maybe in 2.9.0; deprecate those functions and start switching users to useget_user_timelineinstead ofgetUserTimeline?Totally up to you @ryanmcgrath - Just trying to find things that could be cleaned up!
Honestly, we could accomplish this (~90%) by just maintaining another dictionary that points to the original, or vice-versa. Could even, on instantiation of a
Twythonobject, just build an inner dict that camel-cases function names and points to the dict file (updated to PEP8 standards), so both would work, but new people would only see the PEP8 functions.Actually... that sounds like the best method, no? Something like (off the top of my head, on my phone...):
I think that'd work. That lets us get this in really easily without it actually being much of a breaking change at all.
That would get it, sir! I'll be on vacation next week so if you don't get around to it, I'll get around to it next weekend :)
Awesome sauce. If I find some time tonight I'll see if I can't make it happen right quick.
Cool beans!
Sent from my iPhone
On May 4, 2013, at 4:37 PM, Ryan McGrath notifications@github.com wrote: