Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22263 > unrolled thread

Re: best way to create warning for obsolete functions and call new one

Started byGelonida N <gelonida@gmail.com>
First post2012-03-28 09:31 +0200
Last post2012-03-28 09:31 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: best way to create warning for obsolete functions and call new one Gelonida N <gelonida@gmail.com> - 2012-03-28 09:31 +0200

#22263 — Re: best way to create warning for obsolete functions and call new one

FromGelonida N <gelonida@gmail.com>
Date2012-03-28 09:31 +0200
SubjectRe: best way to create warning for obsolete functions and call new one
Message-ID<mailman.1062.1332919885.3037.python-list@python.org>
Hi Dan,

On 03/26/2012 11:24 PM, Dan Sommers wrote:
> 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.


Yes, this is a good idea.
In my case I had to combine it with
 logging.captureWarnings()


[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web