From: cocoatomo Date: Tue, 9 Apr 2019 05:43:11 +0000 (+0900) Subject: bpo-30134: add an explanation of BytesWarning (GH-1249) X-Git-Tag: v2.7.17rc1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d012d64b6a513e760abb6745f7f7ce5e6a31f274;p=thirdparty%2FPython%2Fcpython.git bpo-30134: add an explanation of BytesWarning (GH-1249) --- diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 8757c6cb4468..2bc2bce00adc 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -524,6 +524,13 @@ module for more information. .. versionadded:: 2.5 +.. exception:: BytesWarning + + Base class for warnings related to :class:`str` and :class:`bytearray`. + + .. versionadded:: 2.6 + + Exception hierarchy -------------------