openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15338
Re: [glance] legacy client removal and python-glanceclient
On Wed, 2012-08-01 at 19:50 +0000, Gabriel Hurley wrote:
> Personally I'd recommend using Python's built-in warnings module and
> the standard DeprecationWarning and PendingDeprecation warning
> classes:
>
> http://docs.python.org/library/warnings.html#warning-categories
>
> For an example of this in action (outside OpenStack) check out
> Django's usage here:
>
> https://github.com/django/django/blob/stable/1.4.x/django/core/management/sql.py#L99
Indeed. I even wrote a whole suite of deprecation decorators for
marking functions and classes as deprecated, using the
DeprecationWarning…but it got ripped out by someone because it wasn't
used anywhere.
--
Kevin L. Mitchell <kevin.mitchell@xxxxxxxxxxxxx>
References
-
[glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Christoph Hellwig, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Christoph Hellwig, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Matt Joyce, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Vishvananda Ishaya, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Gabriel Hurley, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Kevin L. Mitchell, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Gabriel Hurley, 2012-08-01