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

Dan Sommers dan at tombstonezero.net
Mon Mar 26 17:24:40 EDT 2012


On 2012年3月26日 22:26:11 +0200
Gelonida N <gelonida at 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


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /