thrashnap / twipy

A Python library for accessing the Twitter API
1 stars 0 forks source link

Verbosity #2

Open shabda opened 12 years ago

shabda commented 12 years ago

Remove code duplication.

There is lot of code like this:

@api_method( path='/1/legal/privacy', subdomain='api', rate_limited=True, requires_authentication='no', response_formats=('json', 'xml'), http_method='GET') def method_name(): pass

This can be made succint by creating a wrapper for api_method with default arguments filled in and

method_name = api_method_wrapper(path="blah")

thrashnap commented 12 years ago

I am going to make wrapper with default arguments, I just wanted to know all the varieties of meta information that exists, so in this commit you see all the methods with all the information.