This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients amaury.forgeotdarc, belopolsky, ncoghlan, pitrou, teoliphant
Date 2008-12-10.21:02:02
SpamBayes Score 2.3126072e-09
Marked as misclassified No
Message-id <1228942925.2.0.111181115578.issue4580@psf.upfronthosting.co.za>
In-reply-to
Content
Antoine's latest patch looks to me like it will fix the current actual
errors in the 1-D case.

Something that may also be considered part of this bug is the fact that
"m[i] = m[i]" doesn't currently work for itemsize > 1.

There is a XXX comment in the memory view implementation as to whether
we should require "itemsize == itemsize" in addition to "len == len"
when replacing sections of a memoryview. I think the failure of
self-assignment shows that we should only be caring about whether or not
the total memory size being overwritten matches, rather than the
underlying format or size.

Alternatively, we could just special case it and say that assignemnt
from buffers with itemsize=1 (i.e. raw bytes) is always acceptable,
regardless of the itemsize of the buffer underlying the memoryview.
History
Date User Action Args
2008-12-10 21:02:05ncoghlansetrecipients: + ncoghlan, teoliphant, amaury.forgeotdarc, belopolsky, pitrou
2008-12-10 21:02:05ncoghlansetmessageid: <1228942925.2.0.111181115578.issue4580@psf.upfronthosting.co.za>
2008-12-10 21:02:04ncoghlanlinkissue4580 messages
2008-12-10 21:02:02ncoghlancreate