However, Python 2.7 has backported the Py3 `memoryview` type, and its use
is preferred over Py2 `buffer` for cross-compatible code:
https://docs.python.org/2/c-api/buffer.html
`GEOSGeometry` should accept Py2 `memoryview` instances.
(For backwards-compatibility reasons, even though Python 2.7 is now the
minimum supported version, we probably can't remove
`django.util.six.memoryview` or change it to refer to `memoryview` on Py2,
because Py2 `buffer` and `memoryview` don't have fully compatible APIs.)
--
Ticket URL: <https://code.djangoproject.com/ticket/27088>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* keywords: => py2
* stage: Unreviewed => Accepted
Comment:
Patches accepted by January 2017 at which point we're dropping Python 2
support in master and could close this as wontfix.
--
Ticket URL: <https://code.djangoproject.com/ticket/27088#comment:1>
Comment (by jtiai):
Documentation
https://docs.djangoproject.com/en/1.10/ref/contrib/gis/geos/#django.contrib.gis.geos.GEOSGeometry.wkb
at refers value type to be "Python buffer". Couldn't actually to find any
examples where buffer is used as an input so wonder how many would be
affected by the change.
--
Ticket URL: <https://code.djangoproject.com/ticket/27088#comment:2>
* status: new => assigned
* owner: nobody => Michał Ociepka
--
Ticket URL: <https://code.djangoproject.com/ticket/27088#comment:3>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/7503
--
Ticket URL: <https://code.djangoproject.com/ticket/27088#comment:4>
* status: assigned => closed
* resolution: => wontfix
Comment:
From the person who worked on the pull request, "There is not elegant way
to solve this issue. If Django drops support to python 3 it is pointless
to continue."
--
Ticket URL: <https://code.djangoproject.com/ticket/27088#comment:5>