﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27088	GEOSGeometry should accept Python 2.7 memoryview	Carl Meyer	Michał Ociepka	"Django's custom `django.util.six` module has its own `memoryview` alias which is `buffer` on Py2 and `memoryview` on Py3, and `GEOSGeometry` enforces that its input (if any kind of buffer) be an instance of `django.util.six.memoryview` (https://github.com/django/django/blob/master/django/contrib/gis/geos/geometry.py#L73).

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.)"	Bug	closed	GIS	1.10	Normal	wontfix	py2		Accepted	1	0	0	1	0	0
