Skip to content

Instantly share code, notes, and snippets.

@pvanheus
Created November 14, 2015 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvanheus/2f213c2a49974b06291c to your computer and use it in GitHub Desktop.
Save pvanheus/2f213c2a49974b06291c to your computer and use it in GitHub Desktop.
class pendingObject(object):
def __init__(self, obj, contentID, type):
self.obj = obj
self.contentID = contentID
self.type = type
class pendingObjectContainer(object):
def __init__(self):
self.data = dict()
self.users = []
self.size = 0
self.contentID = 1
def add(self, user, obj, objType):
obj = pendingObject(obj, self.contentID, objType)
self.contentID = 1
self.size += 1
def add2(self):
self.size += 1
something = pendingObjectContainer()
print something.size
something.add(None, None, None)
print something.size
print "got here"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment