[Python-checkins] Specify default order in memoryview.tobytes() docs (GH-27936)

serhiy-storchaka webhook-mailer at python.org
Thu Sep 9 04:31:05 EDT 2021


https://github.com/python/cpython/commit/b7bb54fc10ed994d86efc425b6f667ffa6660392
commit: b7bb54fc10ed994d86efc425b6f667ffa6660392
branch: main
author: andrei kulakov <andrei.avk at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-09-09T11:30:56+03:00
summary:

Specify default order in memoryview.tobytes() docs (GH-27936)

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index f0a3eda8213e9..4900bc2191469 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -3806,7 +3806,7 @@ copying.
          Previous versions compared the raw memory disregarding the item format
          and the logical array structure.
 
-   .. method:: tobytes(order=None)
+   .. method:: tobytes(order='C')
 
       Return the data in the buffer as a bytestring.  This is equivalent to
       calling the :class:`bytes` constructor on the memoryview. ::



More information about the Python-checkins mailing list