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
  • Using this I could end up calling any function, right? Isn't this somewhat unsafe? Commented Oct 8, 2009 at 21:09
  • you could only call function that are within namespace of funcs. of course you should filter all user input, it's rule correct even in Python, but you can make funcs to be a clean interface module, which you probably should do anyway. getattr also allows for a default fallback values. Commented Oct 8, 2009 at 21:30