Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7835
| Date | 2011-06-17 10:18 -0700 |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Subject | Re: How to avoid "()" when writing a decorator accepting optional arguments? |
| References | <BANLkTi=WtyyPMEv+BN-CW4+qB686-05Sew@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.81.1308330272.1164.python-list@python.org> (permalink) |
Giampaolo RodolĂ wrote: > I've written this decorator to deprecate a function and (optionally) > provide a callable as replacement I can see providing the replacement function so that you can say, for example, "you are calling a deprecated function -- <function xyz> is the replacement". If your replacement function is drop-in compatible, though, why bother with the whole deprecate decorator? Just drop it in! :) ~Ethan~
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to avoid "()" when writing a decorator accepting optional arguments? Ethan Furman <ethan@stoneleaf.us> - 2011-06-17 10:18 -0700
csiph-web