Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22211
| Date | 2012-03-26 17:24 -0400 |
|---|---|
| From | Dan Sommers <dan@tombstonezero.net> |
| Subject | Re: best way to create warning for obsolete functions and call new one |
| References | <jkqjd4$1cp$1@dough.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1019.1332797092.3037.python-list@python.org> (permalink) |
On Mon, 26 Mar 2012 22:26:11 +0200 Gelonida N <gelonida@gmail.com> wrote: > As these modules are used by quite some projects and as I do not want > to force everybody to rename immediately I just want to warn users, > that they call functions, that have been renamed and that will be > obsoleted. You want a DeprecationWarning. HTH, Dan
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: best way to create warning for obsolete functions and call new one Dan Sommers <dan@tombstonezero.net> - 2012-03-26 17:24 -0400
csiph-web