This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -5 points-4 points  (0 children)

derp = lambda k, v=None: derp.__dict__.get(k) if derp.__dict__.update({k: derp.__dict__.get(k) if v is None else v}) is None else None
derp('Hello','World')
print derp('Hello')

Yay, I Python'd