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