Skip to content

Instantly share code, notes, and snippets.

Created Mar 17, 2014
What would you like to do?
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class PatchArg(object):
... def __init__(self, target, attribute, new):
... = target,
... self.attribute = attribute,
... = new
>>> PatchArg("foo", "bar", "blat")
<__main__.PatchArg object at 0x7fd4f0c34510>
>>> PatchArg("foo", "bar", "blat").target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment