From 650a69ec17918bf37ec6d60168fc7debfa52e8ff Mon Sep 17 00:00:00 2001 From: Mesar Hameed Date: Thu, 24 Nov 2011 13:15:23 +0000 Subject: [PATCH] Allow for easier debugging/development, by registering endpoints directly into Twython. --- twython/twython.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twython/twython.py b/twython/twython.py index d8db763..bb67474 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -168,6 +168,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): """