Author zyasoft
Recipients seletz, zyasoft
Date 2016-02-24.22:46:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is because is a reflected function, that is one that is implemented in Java without being exposed using Python type system. Currently no __module__ attribute is defined:

$ dist/bin/jython
Jython 2.7.1b3 (default:08b7720fd321+, Feb 24 2016, 08:19:22)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_75
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> dir(
['__call__', '__class__', '__delattr__', '__doc__', '__ensure_finalizer__', '__format__', '__getattribute__', '__hash__', '__init__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__subclasshook__', '_doget', 'addMethod', 'argslist', 'copy', 'handles', 'isPackagedProtected', 'nargs', 'printArgs', 'refersDirectlyTo', 'toString', 'traverse']

functools.wraps expects these attributes to be defined:

WRAPPER_ASSIGNMENTS = ('__module__', '__name__', '__doc__')
WRAPPER_UPDATES = ('__dict__',)
Date User Action Args
2016-02-24 22:46:45zyasoftsetmessageid: <>
2016-02-24 22:46:45zyasoftsetrecipients: + zyasoft, seletz
2016-02-24 22:46:45zyasoftlinkissue2476 messages
2016-02-24 22:46:44zyasoftcreate