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

Najat
  • 47
  • 2
  • 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 '13 at 08:18

2 Answers2

3

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

Freelancer
  • 4,459
  • 2
  • 22
  • 28
1

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

Antonio Beamud
  • 2,281
  • 1
  • 15
  • 26