Commit Graph

7 Commits

Author SHA1 Message Date
Antoine Pitrou
4c8aa71566 Merged revisions 68200 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68200 | antoine.pitrou | 2009-01-03 17:59:18 +0100 (sam., 03 janv. 2009) | 8 lines

  Issue #4580: slicing of memoryviews when itemsize != 1 is wrong.
  Also fix len() to return number of items rather than length in bytes.

  I'm sorry it was not possible for me to work on this without reindenting
  a bit some stuff around. The indentation in memoryobject.c is a mess,
  I'll open a separate bug for it.
........
2009-01-03 17:10:05 +00:00
Antoine Pitrou
f041c5b97d Merged revisions 67650 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r67650 | antoine.pitrou | 2008-12-07 21:14:49 +0100 (dim., 07 déc. 2008) | 5 lines

  Issue #4569: Interpreter crash when mutating a memoryview with an item size larger than 1.

  (together with a bit of reindenting)
........
2008-12-07 20:26:34 +00:00
Benjamin Peterson
5e19e44413 kill memoryview.size in favor of len(view)
Reviewer: Antoine Pitrou #3827
2008-09-10 21:47:03 +00:00
Antoine Pitrou
c6b09ebe58 #3712: The memoryview object had a reference leak and didn't support cyclic garbage collection.
Reviewed by Benjamin Peterson.
2008-09-01 15:10:14 +00:00
Antoine Pitrou
616d28566b Issue #2394: implement more of the memoryview API. 2008-08-19 22:09:34 +00:00
Benjamin Peterson
ee8712cda4 #2621 rename test.test_support to test.support 2008-05-20 21:35:26 +00:00
Christian Heimes
7b6fc8e19d Fixed memoryview constructor. It allowed arbitrary keyword arguments. The bug was found by mykhal from #python. I've also added a small test case in the new test_memoryview.py 2007-11-08 02:28:11 +00:00