1

I wonder if someone can explain what a @withparser method in python does? if I see @withparser before a method what does it mean?

Thanks in advance

1
  • To be more specific, pleas show us the code of the function withparser(), wherever it is defined. It seems to be something project-specific; nothing from the standard library.
    – glglgl
    Jul 29, 2013 at 8:18

2 Answers 2

3

It's probably a decorator see http://wiki.python.org/moin/PythonDecorators for more infos. It's like a "wrapper" for your function

1

It's a decorator. More info - http://www.artima.com/weblogs/viewpost.jsp?thread=240808

Not the answer you're looking for? Browse other questions tagged or ask your own question.