Hi Serhiy,
For me, "deprecated" should be used if the removal is *not* planned:
the feature is too popular, and removing it would break too much 3rd
party code.
"deprecated-removal" should be used if the feature removal *is*
planned. IMO it's ok if we forget to remove the feature and keep it
long
Nick Coghlan wrote:
> Raymond Hettinger wrote:
>> Decorators like this should preserve information about the underlying
>> function:
>>
>>
>>>def deprecated(func):
>>>"""This is a decorator which can be used to mark functions
>>>as deprecated. It will result in a warning being
[I followed Greg's suggestion and proposed a "deprecated" decorator.]
Raymond writes:
> Decorators like this should preserve information about the underlying
> function
Of course! The version I posted was intended to illustrate the idea, not
to be a clean implementation. A long time ago, I propos
"Irmen de Jong" <[EMAIL PROTECTED]> writes:
> mwh wrote:
>
>
>> One difference: I imagine (hope!) the java compiler would complain if
>> the deprecated function is referenced, whereas the python version only
>> complains if it is called...
>
> The java compiler actually already produces deprecatio
mwh wrote:
> One difference: I imagine (hope!) the java compiler would complain if
> the deprecated function is referenced, whereas the python version only
> complains if it is called...
The java compiler actually already produces deprecation warnings
during the *compilation phase* (when used wi
Greg Ward <[EMAIL PROTECTED]> writes:
> On 08 March 2005, Michael Chermside said:
>> Greg writes:
>> > This is one of my top two Java features [1].
>> ...
>> > [1] The other is compiler recognition of "@deprecated" in doc comments.
>>
>> Hmm... what a good idea! Let's see... what exactl
Raymond Hettinger wrote:
> Hmph. The xmllib module has been deprecated since Py2.0 but is not
> listed in PEP 4.
>
> Question: Do we have to keep it for another two years because of that
> omission?
>
> It seems somewhat silly to keep an obsolete, supplanted module that
> doesn't full support XM