[MERGE] symbol_versioning.deprecation_string
Martin Pool
mbp at sourcefrog.net
Tue Sep 5 13:58:01 BST 2006
On Tue, 2006-09-05 at 20:37 +1000, Robert Collins wrote:
> This adds a helper to symbol_versioning to give you the deprecation
> string that will be emitted for a given symbol, deprecation_format pair.
>
> This is primarily of use with callDeprecated.
-0
The way the format strings are handled here makes me distinctly
uncomfortable. We are using strings when we really should be using
objects.
There is obvious duplication in the "%s was duplicated in version ..."
between the symbol_versioning parameters.
Warnings are raised and reported as objects. We can raise an instance
which contains a deprecated_since field, being a version like (0, 9).
Factoring out something which returns a nicely formatted name for a
callable is fine with me.
--
Martin Pool <mbp at sourcefrog.net>
More information about the bazaar
mailing list