rbrewer123 / pycsp

Automatically exported from code.google.com/p/pycsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pycsp.process does not behave

GoogleCodeExporter opened this issue · comments

This patch makes the pycsp.process decorator use functools.wraps internally
in order to preserve the name, documentation and instance state of
decorated functions. This solves the following problem:

  @pycsp.process
  def foo()
      """ Some method """
      pass
  foo.__name__ # => "_call"
  foo.__doc__  # => None

Original issue reported on code.google.com by daniel.schierbeck@gmail.com on 26 Feb 2009 at 5:54

Attachments:

Patch applied, thanks :-) 

Original comment by jmbjornd...@gmail.com on 19 Mar 2009 at 2:58

Original comment by runedren...@gmail.com on 19 Mar 2009 at 3:13

  • Changed state: Fixed