]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Improve clarity for bytes.hex() (GH-95257)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Aug 2022 11:16:34 +0000 (04:16 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 11:16:34 +0000 (04:16 -0700)
(cherry picked from commit 860fa351452de1502da12ec6f027d3f72dfc309f)

Co-authored-by: Tim Burke <tim.burke@gmail.com>
Doc/library/stdtypes.rst

index 5c0d259ba989868d7e9d00ae91d56572b8762265..529dae871d38757d027634bed03ff5a67c655b4c 100644 (file)
@@ -2508,9 +2508,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('-')