[issue7976] warnings should provide a public API for accessing its option parsing code

Éric Araujo report at bugs.python.org
Thu Nov 29 03:38:26 CET 2012


Éric Araujo added the comment:

About the name: I think it’s good.  “Warnings” is at the start, meaning this is related to the warnings system; an exception with “Warning” at the end would however not be good.

I started to comment that the name could be just OptionParsingError, given that we don’t need prefixes when we have namespaces (i.e. modules: warnings.OptionParsingError is not ambiguous), but most other names in the modules contain “warning” so let’s keep the convention.

You will have noticed that I prefer Option to Opt :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7976>
_______________________________________


More information about the Python-bugs-list mailing list