Skip to content

Instantly share code, notes, and snippets.

@graingert
Created Mar 17, 2014
Embed
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):
... self.target = target,
... self.attribute = attribute,
... self.new = new
...
>>> PatchArg("foo", "bar", "blat")
<__main__.PatchArg object at 0x7fd4f0c34510>
>>> PatchArg("foo", "bar", "blat").target
('foo',)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment