yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #15365
[Bug 1327473] [NEW] Don't use mutables as default args
Public bug reported:
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this.
This is an example show the pitfall:
http://docs.python-guide.org/en/latest/writing/gotchas/
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1327473
Title:
Don't use mutables as default args
Status in OpenStack Compute (Nova):
New
Bug description:
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this.
This is an example show the pitfall:
http://docs.python-guide.org/en/latest/writing/gotchas/
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1327473/+subscriptions
Follow ups
-
[Bug 1327473] Re: Don't use mutables as default args
From: Michael Johnson, 2016-03-01
-
[Bug 1327473] Re: Don't use mutables as default args
From: Doug Hellmann, 2015-12-04
-
[Bug 1327473] Re: Don't use mutables as default args
From: Bertrand Lallau, 2015-10-30
-
[Bug 1327473] Re: Don't use mutables as default args
From: Steve Baker, 2015-05-11
-
[Bug 1327473] Re: Don't use mutables as default args
From: Russell Bryant, 2014-07-24
-
[Bug 1327473] Re: Don't use mutables as default args
From: Russell Bryant, 2014-07-23
-
[Bug 1327473] Re: Don't use mutables as default args
From: Russell Bryant, 2014-07-23
-
[Bug 1327473] Re: Don't use mutables as default args
From: Russell Bryant, 2014-07-23
-
[Bug 1327473] Re: Don't use mutables as default args
From: Liusheng, 2014-07-03
-
[Bug 1327473] Re: Don't use mutables as default args
From: Liusheng, 2014-07-01
-
[Bug 1327473] Re: Don't use mutables as default args
From: ChangBo Guo(gcb), 2014-06-07
-
[Bug 1327473] [NEW] Don't use mutables as default args
From: ChangBo Guo(gcb), 2014-06-07
References