Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • The thing I though about after asking the question. I like it, although: does it have any pitfalls? Touching __dict__ feels like it may cause some trouble. Commented Nov 9, 2012 at 17:41
  • The main pitfall is you'll get fields you didn't know your objects had. Besides the fields, you'll get passed the methods and various other stuff that's normally invisible. That's why the sample dostuff function has to accept and ignore other keyword arguments. Commented Nov 9, 2012 at 17:49