[3.12] gh-126341: add release check to `__iter__` method of `memoryview` (GH-126759) (#126779)
gh-126341: add release check to `__iter__` method of `memoryview` (GH-126759)
(cherry picked from commit
a12690ef49e8fc8a3af4c5f1757eb3caffb35e03)
Co-authored-by: Ritvik Pasham <ritvikpasham@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: sobolevn <mail@sobolevn.me>