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.

Required fields*

3
  • Interesting indeed, but very complicated for routine tasks, I think. Commented Dec 12, 2013 at 16:12
  • 1
    What is somewhat horrid is the way I must follow to find the function whose result has caused the Assertion error: traceback object converted to a string, regex searching in this string, passing the group to glabals to find the function object, getting the doc of the function ! I didn't succeed to extract the function or its name more directly from the traceback object. - But the basic idea may be interesting: conditional functions can be added simply without changing the except block. Commented Dec 12, 2013 at 16:22
  • @henrebotha I got a strong simplification Commented Dec 12, 2013 at 16:59