[Python-3000-checkins] r65862 - in python/branches/py3k: Include/memoryobject.h Misc/NEWS Modules/_json.c Objects/memoryobject.c Objects/unicodeobject.c
Nick Coghlan
ncoghlan at gmail.com
Wed Aug 20 11:29:50 CEST 2008
antoine.pitrou wrote:
> +/* The struct is declared here so that macros can work, but it shouldn't
> + be considered public. Don't access those fields directly, use the macros
> + and functions instead! */
> +typedef struct {
> + PyObject_HEAD
> + PyObject *base;
> + Py_buffer view;
> +} PyMemoryViewObject;
If we don't want people to use this struct directly, we should start the
name with an underscore.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000-checkins
mailing list