]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Specify default order in memoryview.tobytes() docs (GH-27936)
authorandrei kulakov <andrei.avk@gmail.com>
Thu, 9 Sep 2021 08:30:56 +0000 (04:30 -0400)
committerGitHub <noreply@github.com>
Thu, 9 Sep 2021 08:30:56 +0000 (11:30 +0300)
Doc/library/stdtypes.rst

index f0a3eda8213e93245ce37915db7f3b688e54bbf6..4900bc21914692fac4e5d38e0f5af092d0e34967 100644 (file)
@@ -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. ::