File tree 2 files changed +8
-9
lines changed 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1022,7 +1022,7 @@ are always available. They are listed here in alphabetical order.
1022
1022
1023
1023
1024
1024
.. _func-memoryview :
1025
- .. class :: memoryview(obj )
1025
+ .. class :: memoryview(object )
1026
1026
:noindex:
1027
1027
1028
1028
Return a "memory view" object created from the given argument. See
Original file line number Diff line number Diff line change @@ -3632,17 +3632,16 @@ Memory Views
3632
3632
of an object that supports the :ref: `buffer protocol <bufferobjects >` without
3633
3633
copying.
3634
3634
3635
- .. class :: memoryview(obj )
3635
+ .. class :: memoryview(object )
3636
3636
3637
- Create a :class: `memoryview ` that references *obj *. *obj * must support the
3638
- buffer protocol. Built-in objects that support the buffer protocol include
3639
- :class: `bytes ` and :class: `bytearray `.
3637
+ Create a :class: `memoryview ` that references *object *. *object * must
3638
+ support the buffer protocol. Built-in objects that support the buffer
3639
+ protocol include :class: `bytes ` and :class: `bytearray `.
3640
3640
3641
3641
A :class: `memoryview ` has the notion of an *element *, which is the
3642
- atomic memory unit handled by the originating object *obj *. For many
3643
- simple types such as :class: `bytes ` and :class: `bytearray `, an element
3644
- is a single byte, but other types such as :class: `array.array ` may have
3645
- bigger elements.
3642
+ atomic memory unit handled by the originating *object *. For many simple
3643
+ types such as :class: `bytes ` and :class: `bytearray `, an element is a single
3644
+ byte, but other types such as :class: `array.array ` may have bigger elements.
3646
3645
3647
3646
``len(view) `` is equal to the length of :class: `~memoryview.tolist `.
3648
3647
If ``view.ndim = 0 ``, the length is 1. If ``view.ndim = 1 ``, the length
You can’t perform that action at this time.
0 commit comments