MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/577524_Python_Sessions/recipe-577524.py:45–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43class Session(object):
44
45 def __init__(self):
46 self.data = {}
47 self.started = False
48 self._flock = None
49 self.expires = 0 # delete right away
50
51 self.__sid = sid = self.__getsid()
52 self.path = os.path.join(S_DIR, sid+S_EXT)
53
54 def isset(self, name):
55 """Is the variable set in the session?"""

Callers

nothing calls this directly

Calls 2

__getsidMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected