[Python-Dev] Re: deprecated-removed

2021-09-08 Thread Victor Stinner
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

[Python-Dev] Re: @deprecated (was: Useful thread project for 2.5?)

2005-03-11 Thread Reinhold Birkenfeld
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

RE: [Python-Dev] Re: @deprecated

2005-03-09 Thread Michael Chermside
[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

Re: [Python-Dev] Re: @deprecated

2005-03-09 Thread Michael Hudson
"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

Re: [Python-Dev] Re: @deprecated

2005-03-09 Thread Irmen de Jong
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

[Python-Dev] Re: @deprecated

2005-03-09 Thread Michael Hudson
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

[Python-Dev] Re: Deprecated xmllib module

2004-12-04 Thread Fredrik Lundh
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