← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1343177] Re: Lack of singleton guarantee

 

Not sure if it's needed at all.
There are plenty of things python don't give guarantees about, like class interface, parameter types, etc.
That's because python is for grown ups.

** Changed in: neutron
       Status: In Progress => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1343177

Title:
  Lack of singleton guarantee

Status in OpenStack Neutron (virtual network service):
  Opinion

Bug description:
  The current neutron's code require a singleton in some case, e.g., some class requires to be singleton.
  However, there is no mechanism to guarantee this.
  For example, in neutron.manager.NeutronManager class, the comments say "The caller should make sure that NeutronManager is a singleton".
  This kind of implementation is not only unsafe to assure the protection, but also make the caller to handler unnecessary efforts.

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


References