This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tseaver
Recipients tseaver
Date 2009-04-07.12:07:03
SpamBayes Score 2.4624055e-07
Marked as misclassified No
Message-id <1239106026.05.0.616331762443.issue5716@psf.upfronthosting.co.za>
In-reply-to
Content
I'm working on cleaning up deprecations for Zope and related
packages under Python 2.6.  The irony here is that I'm receiving
deprecation warnings for custom exception classes  which had a 'message'
attribute long before the abortive attempt to add them to the
BaseException type, which hardly seems reasonable.

For instance, docutils.parsers.rst defines a DirectiveError which takes
two arguments, 'level' and 'message', and therefore gets hit with the
deprecation (even though it never used the new signature).  Likewise,
ZODB.POSException defines a ConflictError type which takes 'message' as
one of several arguments, all optional, and has since at least 2002.

I don't think either of these classes should be subject to a deprecation
warning for a feature they never used or depended on.
History
Date User Action Args
2009-04-07 12:07:06tseaversetrecipients: + tseaver
2009-04-07 12:07:06tseaversetmessageid: <1239106026.05.0.616331762443.issue5716@psf.upfronthosting.co.za>
2009-04-07 12:07:04tseaverlinkissue5716 messages
2009-04-07 12:07:03tseavercreate