← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1471349] Re: Eliminate default value as a mutable object

 

I find this check highly valuable and think it could be generalized for
other OpenStack projects as well. Particularly, for Horizon.

** Also affects: horizon
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1471349

Title:
  Eliminate default value as a mutable object

Status in OpenStack Dashboard (Horizon):
  In Progress
Status in Magnum:
  Fix Committed

Bug description:
  The default value is evaluated only once. This makes a difference when
  the default is a mutable object such as a list, dictionary, or
  instances of most classes. Magnum should follow what Python suggests:
  Do not to use mutable object as a default value.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1471349/+subscriptions