-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Description
Documentation
I don't see any reason for these two pages to have slight differences in their wording, and should be made consistent to avoid any confusion.
https://docs.python.org/3/library/warnings.html#warning-categories
SyntaxWarning: Base category for warnings about dubious syntactic features.
RuntimeWarning: Base category for warnings about dubious runtime features.
https://docs.python.org/3/library/exceptions.html#SyntaxWarning
Base class for warnings about dubious syntax.
https://docs.python.org/3/library/exceptions.html#RuntimeWarning
Base class for warnings about dubious runtime behavior.
Looking at the other warning descriptions:
Warning
description should probably be synced as wellUserWarning
sameEncodingWarning
is missing from https://docs.python.org/3/library/warnings.html#warning-categories- And the order the warnings are listed in differs
The rest are either identical or have substantial differences that look intentional. Though perhaps these should be automatically synced/generated from the same source