summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-10-02 12:06:54 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-10-02 12:06:54 (GMT)
commita0f169cde878f08c2873b0cdf42118439113a96f (patch)
tree8b9911ccf09128706ab58573512a640a354bec36 /Objects/memoryobject.c
parentdff9e2535f5bf73f1491edc45928eef51a701074 (diff)
downloadcpython-a0f169cde878f08c2873b0cdf42118439113a96f.zip
cpython-a0f169cde878f08c2873b0cdf42118439113a96f.tar.gz
cpython-a0f169cde878f08c2873b0cdf42118439113a96f.tar.bz2
Close #19078: memoryview now supports reversed
Patch by Claudiu Popa
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index abd069b..e57af18 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -2402,7 +2402,7 @@ static PyMappingMethods memory_as_mapping = {
/* As sequence */
static PySequenceMethods memory_as_sequence = {
- 0, /* sq_length */
+ (lenfunc)memory_length, /* sq_length */
0, /* sq_concat */
0, /* sq_repeat */
(ssizeargfunc)memory_item, /* sq_item */