Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2015 15:26
Show Gist options
  • Save anonymous/7a850da66fb24e619b0a to your computer and use it in GitHub Desktop.
Save anonymous/7a850da66fb24e619b0a to your computer and use it in GitHub Desktop.
class Topic(object):
def __init__(self, obj_id, top_name):
# for globals, define before you assign
global object_id
global topic_name
object_id = obj_id
topic_name = top_name
def get_object_id(self):
return object_id
def get_topic_name(self):
return topic_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment