Skip to content

Instantly share code, notes, and snippets.

View jkinred's full-sized avatar
🐵

Jonathan Kinred jkinred

🐵
View GitHub Profile
class BuildResultKey(object):
def __init__(self, project_key, plan_key, job_key, build_number=None):
self.project_key = project_key
self.plan_key = plan_key
self.job_key = job_key
self.build_number = build_number
def __str__(self):
return "%s-%s-%s" % (self.project_key, self.plan_key, self.job_key)
@jkinred
jkinred / gist:3478641
Created August 26, 2012 12:41
Is this thread unsafe?
class Foo(object):
def __init__(self, client):
self._cache = {}
self.client = client
def get():
client.get_from_server()
class Bar(object):
def __init__(self, client):