]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Improve clarity for bytes.hex() (#95257)
authorTim Burke <tim.burke@gmail.com>
Tue, 30 Aug 2022 11:09:56 +0000 (04:09 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 11:09:56 +0000 (13:09 +0200)
Doc/library/stdtypes.rst

index 2480e71dded321acb9c0c17bba45283a5d1b3dfa..2c021866e295d94a31e06ce6d206cee79a5c9149 100644 (file)
@@ -2548,9 +2548,10 @@ data and are closely related to string objects in a variety of other ways.
 
       If you want to make the hex string easier to read, you can specify a
       single character separator *sep* parameter to include in the output.
-      By default between each byte.  A second optional *bytes_per_sep*
-      parameter controls the spacing.  Positive values calculate the
-      separator position from the right, negative values from the left.
+      By default, this separator will be included between each byte.
+      A second optional *bytes_per_sep* parameter controls the spacing.
+      Positive values calculate the separator position from the right,
+      negative values from the left.
 
       >>> value = b'\xf0\xf1\xf2'
       >>> value.hex('-')