Message7923

Author oberstet
Recipients amak, fwierzbicki, oberstet, pjac, zyasoft
Date 2013-03-08.11:08:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362740887.01.0.082297497793.issue1521@psf.upfronthosting.co.za>
In-reply-to
Content
This currently prevents Twisted to run (tested with Jython 2.7 beta).

Monkey patching (in twisted/python/compat.py)

      # workaround for Jython, see: http://bugs.jython.org/issue1521
      import __builtin__
      if not hasattr(__builtin__, 'buffer'):
          def _buffer(object, offset = None, size = None):
             if offset is None:
                offset = 0
             if size is None:
                size = len(object)
             return object[offset:offset+size]
          __builtin__.buffer = _buffer

works, but is less than ideal.

Would you agree to increase the prio of this ticket, so that it gets fixed before Jython 2.7 release?
History
Date User Action Args
2013-03-08 11:08:07oberstetsetmessageid: <1362740887.01.0.082297497793.issue1521@psf.upfronthosting.co.za>
2013-03-08 11:08:07oberstetsetrecipients: + oberstet, fwierzbicki, amak, zyasoft, pjac
2013-03-08 11:08:06oberstetlinkissue1521 messages
2013-03-08 11:08:06oberstetcreate