diff options
author | Tim Burke <tim.burke@gmail.com> | 2022-08-30 11:09:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 11:09:56 (GMT) |
commit | 860fa351452de1502da12ec6f027d3f72dfc309f (patch) | |
tree | 21da130743aab887794dfc152042bae5276dbd99 | |
parent | 9625de6fab4597bcd04ec390b680b053b0533816 (diff) | |
download | cpython-860fa351452de1502da12ec6f027d3f72dfc309f.zip cpython-860fa351452de1502da12ec6f027d3f72dfc309f.tar.gz cpython-860fa351452de1502da12ec6f027d3f72dfc309f.tar.bz2 |
Docs: Improve clarity for bytes.hex() (#95257)
-rw-r--r-- | Doc/library/stdtypes.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 2480e71..2c02186 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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('-') |