@deprecated (was Re: [Python-Dev] Re: Useful thread project for 2.5?)
Greg Ward
gward at python.net
Wed Mar 9 03:24:35 CET 2005
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 exactly does "@deprecated" DO in
> Java? Why it causes the compiler to emit a warning if you use the function in
> question. Not a bad idea.
Isn't it, though?
> Amusingly enough, the syntax is even the same in
> Python:
[...code omitted...]
Cooool. So simple, and yet so powerful. One might even call it Pythonic!
> So... shall I go add this to the cookbook?
Hell yes!
Greg
--
Greg Ward <gward at python.net> http://www.gerg.ca/
Always look on the bright side of life.
More information about the Python-Dev
mailing list