From 4710c49b2865b0d1fd8a253b4bdaa980c66a08fa Mon Sep 17 00:00:00 2001 From: Mesar Hameed Date: Wed, 30 Nov 2011 14:29:51 +0000 Subject: [PATCH] Allow for easier debugging/development, by registering endpoints directly into Twython3k. --- twython3k/twython.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twython3k/twython.py b/twython3k/twython.py index f30cfcd..53cab7c 100644 --- a/twython3k/twython.py +++ b/twython3k/twython.py @@ -156,6 +156,9 @@ class Twython(object): else: # If they don't do authentication, but still want to request unprotected resources, we need an opener. self.client = httplib2.Http(**client_args) + # register available funcs to allow listing name when debugging. + for key in api_table.keys(): + self.__dict__[key] = self.__getattr__(key) def __getattr__(self, api_call): """