diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-09-18 21:57:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-09-18 21:57:33 (GMT) |
commit | e8ee03dbc64385404ac6d7b3e602f7bf39388ca3 (patch) | |
tree | 05ea2d827d3bb2e3c67a674bb93eb3ddf1e8491b | |
parent | 86089f0b0cc7489936b1c4dac89be328d0879d4c (diff) | |
download | cpython-e8ee03dbc64385404ac6d7b3e602f7bf39388ca3.zip cpython-e8ee03dbc64385404ac6d7b3e602f7bf39388ca3.tar.gz cpython-e8ee03dbc64385404ac6d7b3e602f7bf39388ca3.tar.bz2 |
adjust signature
-rw-r--r-- | Doc/library/stdtypes.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a11c2d3..115eff4 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -813,7 +813,7 @@ functions based on regular expressions. interpreted as in slice notation. -.. method:: str.encode([encoding[, errors]]) +.. method:: str.encode(encoding=sys.getdefaultencoding(), errors="strict") Return an encoded version of the string as a bytes object. Default encoding is the current default string encoding. *errors* may be given to set a @@ -1529,8 +1529,8 @@ Wherever one of these methods needs to interpret the bytes as characters b = a.replace(b"a", b"f") -.. method:: bytes.decode([encoding[, errors]]) - bytearray.decode([encoding[, errors]]) +.. method:: bytes.decode(encoding=sys.getdefaultencoding(), errors="strict") + bytearray.decode(encoding=sys.getdefaultencoding(), errors="strict") Return a string decoded from the given bytes. Default encoding is the current default string encoding. *errors* may be given to set a different |