Opened 11 years ago

Closed 11 years ago

#20016 closed Bug (fixed)

buffer buildin not supportet in jython

Reported by: andreas@… Owned by: nobody
Component: Python 2 Version: 1.5
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Jython, version 2.7b1, does not support the buffer buildin, which is needed in the django/utils/six.py. However memoryview is supported, which can be used in this case.

Attachments (1)

jython_buffer_fix.diff (494 bytes ) - added by andreas@… 11 years ago.

Download all attachments as: .zip

Change History (5)

by andreas@…, 11 years ago

Attachment: jython_buffer_fix.diff added

comment:1 by Florian Apolloner, 11 years ago

Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted

comment:2 by Jacob, 11 years ago

It's not clear to me this is a bug we should be fixing; how is the omission of buffer not a Jython bug? Is that considered an optional interface for Python implementations?

comment:3 by andreas@…, 11 years ago

buffer is part of the so called "Non-essential Built-in Functions" (http://docs.python.org/2/library/functions.html#non-essential-built-in-functions), so I guess it would be OK for Django to cope with the absence of this buildin.

comment:4 by Jacob Kaplan-Moss <jacob@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 35cab0f8e43c01a7d5ede4ebc96e5e8723a04338:

Fixed #20016: worked around Jython not having a buffer.

Note: See TracTickets for help on using tickets.
Back to Top