Commits

Jason R. Coombs  committed 5006284

Cleaned up documentation a bit

  • Participants
  • Parent commits 4d11dce

Comments (0)

Files changed (1)

File jaraco/performance/cache.py

 	return traverse(starting_frame)
 
 class Cache(object):
-	sentinel = object()		# marker for looping around the queue
-	kwd_mark = object()		# separate positional and keyword
+	sentinel = object()
+	"marker for looping around the queue"
+
+	kwd_mark = object()
+	"separate positional and keyword"
 
 	def compose_key(self, args, kwargs):
 		"""
 
 	def __init__(self, maxsize=100):
 		self.maxsize = maxsize
-		self.store = dict()		   # mapping of args to results
-		self.use_count = Counter() # times each key has been accessed
+		# mapping of args to results
+		self.store = dict()
+		# times each key has been accessed
+		self.use_count = Counter()
 		self.hits = self.misses = 0
 
 	def decorate(self, user_function):
-		kwd_mark = object() # separate positional and keyword args
+		kwd_mark = self.kwd_mark
 
 		# lookup optimizations (ugly but fast)
 		store = self.store