Message10777

Author seletz
Recipients seletz
Date 2016-02-24.12:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456318458.66.0.78926759548.issue2476@psf.upfronthosting.co.za>
In-reply-to
Content
The standard functools.py package breaks on functools.fraps():

Jython 2.7.1b3 (default:df42d5d6be04, Feb 3 2016, 03:22:46)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_60
Type "help", "copyright", "credits" or "license" for more information.
>>> import pathlib2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/seletz/develop/jython/jython271b3/Lib/site-packages/pathlib2.py", line 476, in <module>
    class _NormalAccessor(_Accessor):
  File "/Users/seletz/develop/jython/jython271b3/Lib/site-packages/pathlib2.py", line 494, in _NormalAccessor
    open = _wrap_strfunc(os.open)
  File "/Users/seletz/develop/jython/jython271b3/Lib/site-packages/pathlib2.py", line 479, in _wrap_strfunc
    @functools.wraps(strfunc)
  File "/Users/seletz/develop/jython/jython271b3/Lib/functools.py", line 33, in update_wrapper
    setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'reflectedfunction' object has no attribute '__module__'


The same is happening on Jython 2.7.0
History
Date User Action Args
2016-02-24 12:54:18seletzsetrecipients: + seletz
2016-02-24 12:54:18seletzsetmessageid: <1456318458.66.0.78926759548.issue2476@psf.upfronthosting.co.za>
2016-02-24 12:54:18seletzlinkissue2476 messages
2016-02-24 12:54:18seletzcreate