pycsp.process does not behave
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
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:
Google Code Exporter commented
Patch applied, thanks :-)
Original comment by jmbjornd...@gmail.com
on 19 Mar 2009 at 2:58
Google Code Exporter commented
Original comment by runedren...@gmail.com
on 19 Mar 2009 at 3:13
- Changed state: Fixed