Created
July 9, 2015 15:26
-
-
Save anonymous/7a850da66fb24e619b0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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